diff options
author | Aleksey Lim <alsroot@member.fsf.org> | 2008-12-19 23:37:23 (GMT) |
---|---|---|
committer | Aleksey Lim <alsroot@member.fsf.org> | 2008-12-19 23:50:58 (GMT) |
commit | 8dab340933bc44e98aa3c17a7bd5fe4c861cff25 (patch) | |
tree | c9e226ceedf60e5e84b1ed4ca774e0a6833334b9 | |
parent | 757076c22902ccce95717e8d4fcc38e158d2f079 (diff) |
add FEATURES_GRAB_MOUSE
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | common/Config.py | 1 | ||||
-rw-r--r-- | common/Util/Trackpad.py | 3 |
3 files changed, 5 insertions, 0 deletions
@@ -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) |