| summaryrefslogtreecommitdiff | 
diff options
| author | Nathanael Sensfelder <SpamShield0@MultiAgentSystems.org> | 2015-09-01 22:48:51 +0200 | 
|---|---|---|
| committer | Nathanael Sensfelder <SpamShield0@MultiAgentSystems.org> | 2015-09-01 22:48:51 +0200 | 
| commit | 1af58bb8886673ac115f019094853fa763e79187 (patch) | |
| tree | c2ab030898e74288f82c557287272546a990e932 /src/input.h | |
Initial commit.
Diffstat (limited to 'src/input.h')
| -rw-r--r-- | src/input.h | 28 | 
1 files changed, 28 insertions, 0 deletions
| diff --git a/src/input.h b/src/input.h new file mode 100644 index 0000000..03b5c5a --- /dev/null +++ b/src/input.h @@ -0,0 +1,28 @@ +#ifndef RELABSD_INPUT_H +#define RELABSD_INPUT_H + +#include <libevdev/libevdev.h> + +struct relabsd_input +{ +   struct libevdev * dev; +   int fd; +}; + +int relabsd_input_open +( +   struct relabsd_input * const input, +   const char * const filename +); + +void relabsd_input_close (const struct relabsd_input * const input); + +int relabsd_input_read +( +   const struct relabsd_input * const input, +   unsigned int * const input_type, +   unsigned int * const input_code, +   int * const input_value +); + +#endif | 


