Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThorvald Natvig <slicer@users.sourceforge.net>2007-08-10 19:24:05 +0400
committerThorvald Natvig <slicer@users.sourceforge.net>2007-08-10 19:24:05 +0400
commitc17cc96698891b1fc9a74c50df46c3d60b4b7bd9 (patch)
treedcdc2c1d9ca6bca502199e1c6b68b817d514a6f5 /src/mumble/GlobalShortcut_unix.h
parentc95963a70b6254b0fbe9064314dc0c54fa45bd37 (diff)
Support kernel input devices on Linux
git-svn-id: https://mumble.svn.sourceforge.net/svnroot/mumble/trunk@714 05730e5d-ab1b-0410-a4ac-84af385074fa
Diffstat (limited to 'src/mumble/GlobalShortcut_unix.h')
-rw-r--r--src/mumble/GlobalShortcut_unix.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/mumble/GlobalShortcut_unix.h b/src/mumble/GlobalShortcut_unix.h
index 1694ec38f..05a977412 100644
--- a/src/mumble/GlobalShortcut_unix.h
+++ b/src/mumble/GlobalShortcut_unix.h
@@ -68,24 +68,28 @@ class GlobalShortcutXConfig : public ConfigWidget {
void accept();
};
+#define NUM_BUTTONS 0x2ff
+
class GlobalShortcutX : public QThread {
Q_OBJECT
public:
Display *display;
int ref;
bool bRunning;
- bool activeMap[320];
- bool touchMap[320];
+ bool activeMap[NUM_BUTTONS];
+ bool touchMap[NUM_BUTTONS];
bool bFirstMouseReleased;
QHash<int, GlobalShortcut *> qmShortcuts;
QHash<GlobalShortcut *, Shortcut *> qhGlobalToX;
+ QList<QFile *> qlInputDevices;
bool globalEvent(XEvent *);
bool bGrabbing;
bool bNeedRemap;
void grab();
void release();
QMultiHash<int, Shortcut *> qmhKeyToShortcut;
- public:
+ void handleEvent(int evtcode, bool down);
+
GlobalShortcutX();
~GlobalShortcutX();
void run();
@@ -94,6 +98,8 @@ class GlobalShortcutX : public QThread {
void add(GlobalShortcut *);
void remove(GlobalShortcut *);
QList<int> getCurrentButtons();
+ public slots:
+ void inputReadyRead(int);
signals:
void buttonPressed(bool);
};