diff options
author | Ken Moore <ken@ixsystems.com> | 2016-11-17 13:53:55 -0500 |
---|---|---|
committer | Ken Moore <ken@ixsystems.com> | 2016-11-17 13:53:55 -0500 |
commit | 44c2f396902ee2a9da898fd3965a7c5600d20118 (patch) | |
tree | a54e4be458780efd501eb498c637575cd5b0d5a4 /src-qt5/core/libLumina/LInputDevice.h | |
parent | Get a bit more of the input device class working - using lumina-config for te... (diff) | |
download | lumina-44c2f396902ee2a9da898fd3965a7c5600d20118.tar.gz lumina-44c2f396902ee2a9da898fd3965a7c5600d20118.tar.bz2 lumina-44c2f396902ee2a9da898fd3965a7c5600d20118.zip |
Commit some more work on the new input device framework. Got the properties getting listed now, just need to figure out how to read/set the various properties (no documentation on what the various inputs are for the XCB functions to do that).
Diffstat (limited to 'src-qt5/core/libLumina/LInputDevice.h')
-rw-r--r-- | src-qt5/core/libLumina/LInputDevice.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src-qt5/core/libLumina/LInputDevice.h b/src-qt5/core/libLumina/LInputDevice.h index 1293ea92..f7a4713c 100644 --- a/src-qt5/core/libLumina/LInputDevice.h +++ b/src-qt5/core/libLumina/LInputDevice.h @@ -13,24 +13,33 @@ #include <QList> #include <QString> #include <QStringList> +#include <QHash> +#include <QVariant> + +#include <xcb/xproto.h> class LInputDevice{ public: LInputDevice(unsigned int id, unsigned int type); //don't use this directly - use the "listDevices()" function instead ~LInputDevice(); + //Device Information //QString name(); //Return the name of this device unsigned int devNumber(); bool isPointer(); bool isKeyboard(); bool isExtension(); - //List Properties of device + //Property Management QStringList listProperties(); + QVariant propertyValue(QString prop); private: unsigned int devID; //device ID number - assigned at class creation unsigned int devType; //device "use" identifier - assigned at class creation + QHash<QString, xcb_atom_t> devProps; //Known device properties <name, atom> + + void getProperties(); //QString devName; //device name - use this for cross-session management (id #'s can get changed every session) }; |