summaryrefslogtreecommitdiff
path: root/apps/plugins/boomshine.lua
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/boomshine.lua')
-rw-r--r--apps/plugins/boomshine.lua14
1 files changed, 7 insertions, 7 deletions
diff --git a/apps/plugins/boomshine.lua b/apps/plugins/boomshine.lua
index 0d0f9c518a..fe73e8cb66 100644
--- a/apps/plugins/boomshine.lua
+++ b/apps/plugins/boomshine.lua
@@ -148,15 +148,15 @@ function Cursor:do_action(action)
148 if action == rb.actions.ACTION_TOUCHSCREEN and HAS_TOUCHSCREEN then 148 if action == rb.actions.ACTION_TOUCHSCREEN and HAS_TOUCHSCREEN then
149 _, self.x, self.y = rb.action_get_touchscreen_press() 149 _, self.x, self.y = rb.action_get_touchscreen_press()
150 return true 150 return true
151 elseif action == rb.actions.ACTION_KBD_SELECT then 151 elseif action == rb.actions.PLA_SELECT then
152 return true 152 return true
153 elseif (action == rb.actions.ACTION_KBD_RIGHT) then 153 elseif (action == rb.actions.PLA_RIGHT) then
154 self.x = self.x + self.size 154 self.x = self.x + self.size
155 elseif (action == rb.actions.ACTION_KBD_LEFT) then 155 elseif (action == rb.actions.PLA_LEFT) then
156 self.x = self.x - self.size 156 self.x = self.x - self.size
157 elseif (action == rb.actions.ACTION_KBD_UP) then 157 elseif (action == rb.actions.PLA_UP) then
158 self.y = self.y - self.size 158 self.y = self.y - self.size
159 elseif (action == rb.actions.ACTION_KBD_DOWN) then 159 elseif (action == rb.actions.PLA_DOWN) then
160 self.y = self.y + self.size 160 self.y = self.y + self.size
161 end 161 end
162 162
@@ -233,8 +233,8 @@ function start_round(level, goal, nrBalls, total)
233 end 233 end
234 234
235 -- Check for actions 235 -- Check for actions
236 local action = rb.get_action(rb.contexts.CONTEXT_KEYBOARD, 0) 236 local action = rb.get_plugin_action(0)
237 if(action == rb.actions.ACTION_KBD_ABORT) then 237 if action == rb.actions.PLA_EXIT or action == rb.actions.PLA_CANCEL then
238 exit = true 238 exit = true
239 break 239 break
240 end 240 end