LIRC libraries
LinuxInfraredRemoteControl
 All Classes Files Functions Variables Typedefs Enumerations Macros Modules Pages
input_map.h
Go to the documentation of this file.
1 /****************************************************************************
2 ** input_map.h *************************************************************
3 ****************************************************************************
4 *
5 * input_map.h - button namespace derived from Linux input layer
6 *
7 * Copyright (C) 2008 Christoph Bartelmus <lirc@bartelmus.de>
8 *
9 */
10 
17 #ifndef INPUT_MAP_H
18 #define INPUT_MAP_H
19 
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
23 
24 #include <stdio.h>
25 #include <stdint.h>
26 #include <sys/types.h>
27 #include <unistd.h>
28 
29 #ifdef HAVE_LINUX_INPUT_H
30 #include <linux/input.h>
31 #include <linux/uinput.h>
32 #endif
33 
34 #if defined __linux__
35 typedef uint16_t linux_input_code;
36 #else
37 typedef unsigned short linux_input_code;
38 #endif
39 
40 int get_input_code(const char* name, linux_input_code* code);
41 void fprint_namespace(FILE* f);
42 int is_in_namespace(const char* name);
43 
44 #ifdef __cplusplus
45 }
46 #endif
47 
48 #endif /* INPUT_MAP_H */