summaryrefslogtreecommitdiffstats
path: root/plugins/linux/src
diff options
context:
space:
mode:
authorjeffpk <[email protected]>2005-05-01 23:25:38 +0000
committerjeffpk <[email protected]>2005-05-01 23:25:38 +0000
commitf18cd33d4220af2d27bcc796dfdcbabaea624608 (patch)
tree3a51b3cda197412c9f2ee933d85378bd13ede595 /plugins/linux/src
parent4c35a3f26b8e098741dc912c2b30b1d0375fef8d (diff)
Updated EventDevice.cpp to handle EV_SYN properly
git-svn-id: file:///home/sven/projects/JOGL/git-svn/svn-server-sync/jinput/trunk@87 e343933a-64c8-49c5-92b1-88f2ce3e89e8
Diffstat (limited to 'plugins/linux/src')
-rw-r--r--plugins/linux/src/native/EventDevice.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/linux/src/native/EventDevice.cpp b/plugins/linux/src/native/EventDevice.cpp
index 6598ab6..e616fb3 100644
--- a/plugins/linux/src/native/EventDevice.cpp
+++ b/plugins/linux/src/native/EventDevice.cpp
@@ -313,6 +313,9 @@ int EventDevice::poll(){
int numEventsRead = (int) (read_bytes / sizeof(struct input_event));
for(i=0;i<numEventsRead;i++) {
switch(events[i].type) {
+ case EV_SYN:
+ // not sure what to do with it, ignore for now -- JPK
+ break;
case EV_KEY: {
dataChanged = 1;
int buttonIndex = buttonLookup[events[i].code];