summaryrefslogtreecommitdiff
path: root/libopie2/opiecore/oinputsystem.h
authormickeyl <mickeyl>2005-02-04 14:39:34 (UTC)
committer mickeyl <mickeyl>2005-02-04 14:39:34 (UTC)
commit93f9fcf5bbcecaf8c7c4070e42676d24caa12d87 (patch) (side-by-side diff)
treeccd643cf2cdf2d211b5cba4d09e9cc6b9dbec381 /libopie2/opiecore/oinputsystem.h
parent43213784ac3b6057f8c83f22604d75d0557e8c5a (diff)
downloadopie-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.h40
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
@@ -89,51 +89,19 @@ 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:
OInputDevice( QObject* parent, const char* name = 0 );
~OInputDevice();
+
+ #include "oinputsystemenums.h"
public:
QString identity() const;
QString path() const;
QString uniq() const;
bool hasFeature( Feature ) const;
+ bool isHeld( Key ) const;
private:
int _fd;