diff options
author | Oli <olivier.belanger@umontreal.ca> | 2007-05-11 07:31:41 (GMT) |
---|---|---|
committer | Oli <olivier.belanger@umontreal.ca> | 2007-05-11 07:31:41 (GMT) |
commit | c48fb56a36d3c0e59b43c4c9c8d370837388f8e3 (patch) | |
tree | 93413d83df2db3fa8b39f3d22c27682c039eee99 /miniTamTam | |
parent | edcfad0e4c5e22447d436c887d779eea43f351df (diff) |
reset drum loop on '/*' key (just below the enter key)
Diffstat (limited to 'miniTamTam')
-rw-r--r-- | miniTamTam/miniTamTamMain.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/miniTamTam/miniTamTamMain.py b/miniTamTam/miniTamTamMain.py index 55c3e0e..a90aa69 100644 --- a/miniTamTam/miniTamTamMain.py +++ b/miniTamTam/miniTamTamMain.py @@ -400,6 +400,13 @@ class miniTamTamMain(SubActivity): secs_per_tick) def onKeyPress(self, widget, event): + if event.hardware_keycode == 219: #'/*' button to reset drum loop + if self.playStopButton.get_active() == True: + self.handlePlayButton(self.playStopButton) + self.playStopButton.set_active(False) + self.handlePlayButton(self.playStopButton) + self.playStopButton.set_active(True) + if event.hardware_keycode == 65: #what key is this? what feature is this? if self.playStopButton.get_active(): self.playStopButton.set_active(False) |