LIRC libraries
LinuxInfraredRemoteControl
Main Page
Related Pages
Modules
Data Structures
Files
Examples
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Macros
Modules
Pages
input_map.h
Go to the documentation of this file.
1
2
/****************************************************************************
3
** input_map.h *************************************************************
4
****************************************************************************
5
*
6
* input_map.h - button namespace derived from Linux input layer
7
*
8
* Copyright (C) 2008 Christoph Bartelmus <lirc@bartelmus.de>
9
*
10
*/
11
18
#ifndef INPUT_MAP_H
19
#define INPUT_MAP_H
20
21
#ifdef __cplusplus
22
extern
"C"
{
23
#endif
24
25
#include <stdio.h>
26
#include <sys/types.h>
27
#include <unistd.h>
28
29
#if defined __linux__
30
#include <linux/input.h>
31
#include <linux/uinput.h>
32
#endif
33
34
#if defined __linux__
35
typedef
__u16 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 */
lib
input_map.h
Generated by
1.8.8