From cde931654d1966be6989e6c8f3cfacb23e6822a2 Mon Sep 17 00:00:00 2001 From: mickeyl Date: Wed, 31 Aug 2005 10:21:12 +0000 Subject: - add support for the new Switches type in the Linux Input System (coming with 2.6.14) - use the new Switches support to rewrite the hinge sensor handling on Zaurus models w/ 2.6 - add Switches support to SysInfo, OInputSystem, oinputsystemdemo --- (limited to 'libopie2/opiecore/linux/oinputsystem.h') 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 @@ -94,7 +94,7 @@ class OInputDevice : public QObject OInputDevice( QObject* parent, const char* name = 0 ); ~OInputDevice(); - #include "oinputsystemenums.h" + #include public: /** @@ -119,9 +119,18 @@ class OInputDevice : public QObject */ 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 -- cgit v0.9.0.2