summaryrefslogtreecommitdiff
path: root/libopie2/opiecore/oinputsystem.h
Unidiff
Diffstat (limited to 'libopie2/opiecore/oinputsystem.h') (more/less context) (show whitespace changes)
-rw-r--r--libopie2/opiecore/oinputsystem.h23
1 files changed, 22 insertions, 1 deletions
diff --git a/libopie2/opiecore/oinputsystem.h b/libopie2/opiecore/oinputsystem.h
index 9020bc1..7919610 100644
--- a/libopie2/opiecore/oinputsystem.h
+++ b/libopie2/opiecore/oinputsystem.h
@@ -73,13 +73,13 @@ class OInputSystem : public QObject
73 /** 73 /**
74 * @internal Rebuild the internal interface database 74 * @internal Rebuild the internal interface database
75 * @note Sometimes it might be useful to call this from client code, 75 * @note Sometimes it might be useful to call this from client code,
76 */ 76 */
77 void synchronize(); 77 void synchronize();
78 /** 78 /**
79 * @internal desctructor 79 * @internal destructor
80 */ 80 */
81 ~OInputSystem(); 81 ~OInputSystem();
82 82
83 protected: 83 protected:
84 OInputSystem(); 84 OInputSystem();
85 85
@@ -94,17 +94,38 @@ class OInputDevice : public QObject
94 OInputDevice( QObject* parent, const char* name = 0 ); 94 OInputDevice( QObject* parent, const char* name = 0 );
95 ~OInputDevice(); 95 ~OInputDevice();
96 96
97 #include "oinputsystemenums.h" 97 #include "oinputsystemenums.h"
98 98
99 public: 99 public:
100 /**
101 * @returns the identity string of this input device
102 */
100 QString identity() const; 103 QString identity() const;
104 /**
105 * @returns the path of this input device
106 */
101 QString path() const; 107 QString path() const;
108 /**
109 * @returns a unique identifier for this input device
110 * @note Only a few devices support this
111 */
102 QString uniq() const; 112 QString uniq() const;
113 /**
114 * @returns whether a certain @a Feature is being supported by this device
115 */
103 bool hasFeature( Feature ) const; 116 bool hasFeature( Feature ) const;
117 /**
118 * @returns whether a given @a Key or Button is being held at the moment
119 */
104 bool isHeld( Key ) const; 120 bool isHeld( Key ) const;
121 /**
122 * @internal
123 * @returns a string containing a printable form of the global keymask
124 */
125 QString globalKeyMask() const;
105 126
106 private: 127 private:
107 int _fd; 128 int _fd;
108 input_id _id; 129 input_id _id;
109 130
110}; 131};