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) (unidiff)
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) (show whitespace changes)
-rw-r--r--libopie2/opiecore/oinputsystem.h38
1 files changed, 3 insertions, 35 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,49 +91,17 @@ class OInputSystem : public QObject
91class OInputDevice : public QObject 91class OInputDevice : public QObject
92{ 92{
93 public: 93 public:
94
95 enum Feature
96 {
97 Synchronous = EV_SYN,
98 Keys = EV_KEY,
99 Relative = EV_REL,
100 Absolute = EV_ABS,
101 Miscellaneous = EV_MSC,
102 Leds = EV_LED,
103 Sound = EV_SND,
104 AutoRepeat = EV_REP,
105 ForceFeedback = EV_FF,
106 PowerManagement = EV_PWR,
107 ForceFeedbackStatus = EV_FF_STATUS,
108 };
109
110 enum Bus
111 {
112 PCI = BUS_PCI,
113 ISAPNP = BUS_ISAPNP,
114 HIL = BUS_HIL,
115 BLUETOOTH = BUS_BLUETOOTH,
116 ISA = BUS_ISA,
117 I8042 = BUS_I8042,
118 XTKBD = BUS_XTKBD,
119 RS232 = BUS_RS232,
120 GAMEPORT = BUS_GAMEPORT,
121 PARPORT = BUS_PARPORT,
122 AMIGA = BUS_AMIGA,
123 ADB = BUS_ADB,
124 I2C = BUS_I2C,
125 HOST = BUS_HOST,
126 };
127
128 public:
129 OInputDevice( QObject* parent, const char* name = 0 ); 94 OInputDevice( QObject* parent, const char* name = 0 );
130 ~OInputDevice(); 95 ~OInputDevice();
131 96
97 #include "oinputsystemenums.h"
98
132 public: 99 public:
133 QString identity() const; 100 QString identity() const;
134 QString path() const; 101 QString path() const;
135 QString uniq() const; 102 QString uniq() const;
136 bool hasFeature( Feature ) const; 103 bool hasFeature( Feature ) const;
104 bool isHeld( Key ) const;
137 105
138 private: 106 private:
139 int _fd; 107 int _fd;