Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--common/Config.py1
-rw-r--r--common/Util/Trackpad.py3
3 files changed, 5 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index a6ba5b6..52ef3bc 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,6 +2,7 @@
*~
*.kpf
*.xo
+*.so
locale
._*
.DS_Store
diff --git a/common/Config.py b/common/Config.py
index 4fdb2dd..2b3de1a 100644
--- a/common/Config.py
+++ b/common/Config.py
@@ -10,6 +10,7 @@ FEATURES_OGG = True
FEATURES_MIC = None
FEATURES_LAB = None
FEATURES_NEWSOUNDS = None
+FEATURES_GRAB_MOUSE = True
if os.path.isfile("DEBUG"):
f = open("DEBUG")
diff --git a/common/Util/Trackpad.py b/common/Util/Trackpad.py
index 0ddb929..89c182e 100644
--- a/common/Util/Trackpad.py
+++ b/common/Util/Trackpad.py
@@ -11,6 +11,9 @@ KEY_MAP_PIANO = Config.KEY_MAP_PIANO
class Trackpad:
def __init__(self, win):
+ if not Config.FEATURES_GRAB_MOUSE:
+ return
+
self.win = win
self.csnd = new_csound_client()
win.add_events(gtk.gdk.POINTER_MOTION_MASK)