Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/bounce.py
diff options
context:
space:
mode:
authorWalter Bender <walter.bender@gmail.com>2011-10-02 01:31:17 (GMT)
committer Walter Bender <walter.bender@gmail.com>2011-10-02 01:31:17 (GMT)
commit172de6f1253ad04f91f8a62e0f26828bdf4ccadb (patch)
treeda3637b1e8544ea3482e772909039233153b0093 /bounce.py
parent9a7565bee7f1a23da24e70255558be49b28054fd (diff)
add circle keypad button to start new bounce
Diffstat (limited to 'bounce.py')
-rw-r--r--bounce.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/bounce.py b/bounce.py
index b41fb7d..c289e15 100644
--- a/bounce.py
+++ b/bounce.py
@@ -271,6 +271,9 @@ class Bounce():
self.dx = -5
elif k in ['l', 'Right', 'KP_Right']:
self.dx = 5
+ elif k in ['KP_Page_Up']:
+ self._choose_a_fraction()
+ self._move_ball()
else:
self.dx = 0
return True