Diffstat (limited to 'libopie2/opiecore/oinputsystem.h') (more/less context) (show whitespace changes)
-rw-r--r-- | libopie2/opiecore/oinputsystem.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libopie2/opiecore/oinputsystem.h b/libopie2/opiecore/oinputsystem.h index 350656b..4d913a1 100644 --- a/libopie2/opiecore/oinputsystem.h +++ b/libopie2/opiecore/oinputsystem.h @@ -90,20 +90,20 @@ class OInputSystem : public QObject class OInputDevice : public QObject { public: - enum EventType + enum Feature { Synchronous = EV_SYN, - Keyboard = EV_KEY, + Keys = EV_KEY, Relative = EV_REL, Absolute = EV_ABS, Miscellaneous = EV_MSC, - Led = EV_LED, + Leds = EV_LED, Sound = EV_SND, AutoRepeat = EV_REP, ForceFeedback = EV_FF, PowerManagement = EV_PWR, ForceFeedbackStatus = EV_FF_STATUS, }; @@ -131,12 +131,13 @@ class OInputDevice : public QObject ~OInputDevice(); public: QString identity() const; QString path() const; QString uniq() const; + bool hasFeature( Feature ) const; private: int _fd; input_id _id; }; |