Mercurial > remote-gamepad-server
view 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 |
line wrap: on
line source
#ifndef DS_H #define DS_H #include <stdint.h> /* Describe Device */ typedef struct ds_s{ uint8_t A:1; /* Pressed or held buttons */ uint8_t B:1; uint8_t X:1; uint8_t Y:1; uint8_t L:1; uint8_t R:1; uint8_t Start:1; uint8_t Select:1; uint8_t aX; uint8_t aY; } __attribute__((packed)) ds_t; /* Throws events according to ds keys status */ extern void ds_process_evt(ds_t* ds, int uinput_fd); #endif /* DS_H */