Diffstat (limited to 'libopie2/opiecore/oinputsystem.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libopie2/opiecore/oinputsystem.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/libopie2/opiecore/oinputsystem.cpp b/libopie2/opiecore/oinputsystem.cpp index fde36c3..8253c18 100644 --- a/libopie2/opiecore/oinputsystem.cpp +++ b/libopie2/opiecore/oinputsystem.cpp | |||
@@ -26,25 +26,24 @@ | |||
26 | Boston, MA 02111-1307, USA. | 26 | Boston, MA 02111-1307, USA. |
27 | */ | 27 | */ |
28 | 28 | ||
29 | #include "oinputsystem.h" | 29 | #include "oinputsystem.h" |
30 | using namespace Opie::Core; | 30 | using namespace Opie::Core; |
31 | 31 | ||
32 | /* QT */ | 32 | /* QT */ |
33 | #include <qfile.h> | 33 | #include <qfile.h> |
34 | 34 | ||
35 | /* STD */ | 35 | /* STD */ |
36 | #include <errno.h> | 36 | #include <errno.h> |
37 | #include <string.h> | 37 | #include <string.h> |
38 | #include <linux/input.h> | ||
39 | #include <sys/fcntl.h> | 38 | #include <sys/fcntl.h> |
40 | #include <sys/ioctl.h> | 39 | #include <sys/ioctl.h> |
41 | 40 | ||
42 | #define BUFSIZE 256 | 41 | #define BUFSIZE 256 |
43 | #define BIT_MASK( name, numbits ) \ | 42 | #define BIT_MASK( name, numbits ) \ |
44 | unsigned short name[ ((numbits) - 1) / (sizeof( short ) * 8) + 1 ]; \ | 43 | unsigned short name[ ((numbits) - 1) / (sizeof( short ) * 8) + 1 ]; \ |
45 | memset( name, 0, sizeof( name ) ) | 44 | memset( name, 0, sizeof( name ) ) |
46 | #define BIT_TEST( bitmask, bit ) \ | 45 | #define BIT_TEST( bitmask, bit ) \ |
47 | ( bitmask[ (bit) / sizeof(short) / 8 ] & (1u << ( (bit) % (sizeof(short) * 8))) ) | 46 | ( bitmask[ (bit) / sizeof(short) / 8 ] & (1u << ( (bit) % (sizeof(short) * 8))) ) |
48 | 47 | ||
49 | /*====================================================================================== | 48 | /*====================================================================================== |
50 | * OInputSystem | 49 | * OInputSystem |