aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/linux/src/native/EventDevice.h
diff options
context:
space:
mode:
authorendolf <[email protected]>2005-07-03 20:05:34 +0000
committerendolf <[email protected]>2005-07-03 20:05:34 +0000
commit0148692068637a1e39beb01728c96f7f548381d1 (patch)
tree1cb0afbe916c750a265f20c6be6b01c25828e9b8 /plugins/linux/src/native/EventDevice.h
parent41dc35be2b5b581e6cf85fa6ade392a149c09904 (diff)
Linux rumbler support
IT DOES NOT WORK YET though. I'm in contact with the kernel module developers as I think it's a kernel bug git-svn-id: file:///home/sven/projects/JOGL/git-svn/svn-server-sync/jinput/trunk@104 e343933a-64c8-49c5-92b1-88f2ce3e89e8
Diffstat (limited to 'plugins/linux/src/native/EventDevice.h')
-rw-r--r--plugins/linux/src/native/EventDevice.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/linux/src/native/EventDevice.h b/plugins/linux/src/native/EventDevice.h
index 58f9195..dd63269 100644
--- a/plugins/linux/src/native/EventDevice.h
+++ b/plugins/linux/src/native/EventDevice.h
@@ -56,10 +56,14 @@ class EventDevice : public Device {
uint8_t key_bitmask[KEY_MAX/8 + 1];
uint8_t rel_bitmask[REL_MAX/8 + 1];
uint8_t abs_bitmask[ABS_MAX/8 + 1];
+ uint8_t ff_bitmask[16];
struct input_absinfo *abs_features;
int absAxisLookup[ABS_MAX];
int relAxisLookup[REL_MAX];
int buttonLookup[KEY_MAX];
+ struct ff_effect effect;
+ struct input_event play, stop;
+ bool effect_playing;
public:
EventDevice(char *deviceFilename);
@@ -80,7 +84,8 @@ class EventDevice : public Device {
int getAbsAxisMaximum(int axisNumber);
int getAbsAxisFuzz(int axisNumber);
int isValidDevice();
-
+ bool getFFEnabled();
+ void rumble(float force);
};
#endif //eventInterface_eventDevice_h