From 7c623d577beea6fce3eadaa697d5e6835d820bdf Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Fri, 27 Jan 2012 00:06:51 +0100 Subject: Use PLA in boomshine.lua instead of the awkward kbd_input context. This enables it on RaaA. Change-Id: I616bb39c1e785e39e9369d2ccef45477911bb5a3 --- apps/plugins/boomshine.lua | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'apps/plugins/boomshine.lua') 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) if action == rb.actions.ACTION_TOUCHSCREEN and HAS_TOUCHSCREEN then _, self.x, self.y = rb.action_get_touchscreen_press() return true - elseif action == rb.actions.ACTION_KBD_SELECT then + elseif action == rb.actions.PLA_SELECT then return true - elseif (action == rb.actions.ACTION_KBD_RIGHT) then + elseif (action == rb.actions.PLA_RIGHT) then self.x = self.x + self.size - elseif (action == rb.actions.ACTION_KBD_LEFT) then + elseif (action == rb.actions.PLA_LEFT) then self.x = self.x - self.size - elseif (action == rb.actions.ACTION_KBD_UP) then + elseif (action == rb.actions.PLA_UP) then self.y = self.y - self.size - elseif (action == rb.actions.ACTION_KBD_DOWN) then + elseif (action == rb.actions.PLA_DOWN) then self.y = self.y + self.size end @@ -233,8 +233,8 @@ function start_round(level, goal, nrBalls, total) end -- Check for actions - local action = rb.get_action(rb.contexts.CONTEXT_KEYBOARD, 0) - if(action == rb.actions.ACTION_KBD_ABORT) then + local action = rb.get_plugin_action(0) + if action == rb.actions.PLA_EXIT or action == rb.actions.PLA_CANCEL then exit = true break end -- cgit v1.2.3