comparison ds.h @ 0:e70ea46d6073

Initial import from http://wouhanegaine.free.fr/dev/DSPad02b_neo07.zip
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Sun, 22 Feb 2015 01:38:06 +0100
parents
children f362b20de51e
comparison
equal deleted inserted replaced
-1:000000000000 0:e70ea46d6073
1 #ifndef DS_H
2 #define DS_H
3
4 #include <stdint.h>
5
6
7 /* Describe Device */
8 typedef struct ds_s{
9 uint8_t A:1; /* Pressed or held buttons */
10 uint8_t B:1;
11 uint8_t X:1;
12 uint8_t Y:1;
13 uint8_t L:1;
14 uint8_t R:1;
15 uint8_t Start:1;
16 uint8_t Select:1;
17 uint8_t aX;
18 uint8_t aY;
19 } __attribute__((packed)) ds_t;
20
21
22 /*
23 Throws events according to ds keys status
24 */
25 extern void ds_process_evt(ds_t* ds, int uinput_fd);
26
27
28 #endif /* DS_H */