author | mickeyl <mickeyl> | 2005-02-04 14:39:34 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2005-02-04 14:39:34 (UTC) |
commit | 93f9fcf5bbcecaf8c7c4070e42676d24caa12d87 (patch) (side-by-side diff) | |
tree | ccd643cf2cdf2d211b5cba4d09e9cc6b9dbec381 /libopie2/opiecore/oinputsystem.h | |
parent | 43213784ac3b6057f8c83f22604d75d0557e8c5a (diff) | |
download | opie-93f9fcf5bbcecaf8c7c4070e42676d24caa12d87.zip opie-93f9fcf5bbcecaf8c7c4070e42676d24caa12d87.tar.gz opie-93f9fcf5bbcecaf8c7c4070e42676d24caa12d87.tar.bz2 |
- add definitions for keys and buttons
- add isHeld( Key )
Diffstat (limited to 'libopie2/opiecore/oinputsystem.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libopie2/opiecore/oinputsystem.h | 40 |
1 files changed, 4 insertions, 36 deletions
diff --git a/libopie2/opiecore/oinputsystem.h b/libopie2/opiecore/oinputsystem.h index 3746023..9020bc1 100644 --- a/libopie2/opiecore/oinputsystem.h +++ b/libopie2/opiecore/oinputsystem.h @@ -91,38 +91,3 @@ class OInputSystem : public QObject class OInputDevice : public QObject -{ - public: - - enum Feature - { - Synchronous = EV_SYN, - Keys = EV_KEY, - Relative = EV_REL, - Absolute = EV_ABS, - Miscellaneous = EV_MSC, - Leds = EV_LED, - Sound = EV_SND, - AutoRepeat = EV_REP, - ForceFeedback = EV_FF, - PowerManagement = EV_PWR, - ForceFeedbackStatus = EV_FF_STATUS, - }; - - enum Bus - { - PCI = BUS_PCI, - ISAPNP = BUS_ISAPNP, - HIL = BUS_HIL, - BLUETOOTH = BUS_BLUETOOTH, - ISA = BUS_ISA, - I8042 = BUS_I8042, - XTKBD = BUS_XTKBD, - RS232 = BUS_RS232, - GAMEPORT = BUS_GAMEPORT, - PARPORT = BUS_PARPORT, - AMIGA = BUS_AMIGA, - ADB = BUS_ADB, - I2C = BUS_I2C, - HOST = BUS_HOST, - }; - +{ public: @@ -130,2 +95,4 @@ class OInputDevice : public QObject ~OInputDevice(); + + #include "oinputsystemenums.h" @@ -136,2 +103,3 @@ class OInputDevice : public QObject bool hasFeature( Feature ) const; + bool isHeld( Key ) const; |