summaryrefslogtreecommitdiff
path: root/libopie2/opiecore/linux/oinputsystem.h
Side-by-side diff
Diffstat (limited to 'libopie2/opiecore/linux/oinputsystem.h') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opiecore/linux/oinputsystem.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/libopie2/opiecore/linux/oinputsystem.h b/libopie2/opiecore/linux/oinputsystem.h
index 9676e73..fb5f498 100644
--- a/libopie2/opiecore/linux/oinputsystem.h
+++ b/libopie2/opiecore/linux/oinputsystem.h
@@ -91,13 +91,13 @@ class OInputSystem : public QObject
class OInputDevice : public QObject
{
public:
OInputDevice( QObject* parent, const char* name = 0 );
~OInputDevice();
- #include "oinputsystemenums.h"
+ #include <opie2/oinputsystemenums.h>
public:
/**
* @returns the identity string of this input device
*/
QString identity() const;
@@ -116,15 +116,24 @@ class OInputDevice : public QObject
bool hasFeature( Feature ) const;
/**
* @returns whether a given @a Key or Button is being held at the moment
*/
bool isHeld( Key ) const;
/**
+ * @returns whether a given @a Switch is being held at the moment
+ */
+ bool isHeld( Switch ) const;
+ /**
* @internal
* @returns a string containing a printable form of the global keymask
*/
+ QString globalSwitchMask() const;
+ /**
+ * @internal
+ * @returns a string containing a printable form of the global switchmask
+ */
QString globalKeyMask() const;
/**
* @internal
* @returns whether a certain @a path corresponds to an input device
*/
static bool isValid( const QString& path );