mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 02:27:39 -04:00
Use PLA in boomshine.lua instead of the awkward kbd_input context. This enables it on RaaA.
Change-Id: I616bb39c1e785e39e9369d2ccef45477911bb5a3
This commit is contained in:
parent
c406f94592
commit
7c623d577b
3 changed files with 12 additions and 7 deletions
|
@ -11,6 +11,10 @@ search.c
|
||||||
sort.c
|
sort.c
|
||||||
theme_remove.c
|
theme_remove.c
|
||||||
vbrfix.c
|
vbrfix.c
|
||||||
|
#if PLUGIN_BUFFER_SIZE >= 0x80000
|
||||||
|
boomshine.lua
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#ifdef HAVE_TEST_PLUGINS /* enable in advanced build options */
|
#ifdef HAVE_TEST_PLUGINS /* enable in advanced build options */
|
||||||
#ifdef HAVE_ADJUSTABLE_CPU_FREQ
|
#ifdef HAVE_ADJUSTABLE_CPU_FREQ
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
/* For all targets with a bitmap display and a touchscreen
|
/* For all targets with a bitmap display and a touchscreen
|
||||||
* In fact, most of the plugins aren't supposed to be used on a touch(mouse) device
|
* In fact, most of the plugins aren't supposed to be used on a touch(mouse) device
|
||||||
*/
|
*/
|
||||||
|
lua
|
||||||
#ifdef HAVE_LCD_BITMAP
|
#ifdef HAVE_LCD_BITMAP
|
||||||
|
|
||||||
#if CONFIG_CODEC == SWCODEC && PLUGIN_BUFFER_SIZE > 0x20000
|
#if CONFIG_CODEC == SWCODEC && PLUGIN_BUFFER_SIZE > 0x20000
|
||||||
|
|
|
@ -148,15 +148,15 @@ function Cursor:do_action(action)
|
||||||
if action == rb.actions.ACTION_TOUCHSCREEN and HAS_TOUCHSCREEN then
|
if action == rb.actions.ACTION_TOUCHSCREEN and HAS_TOUCHSCREEN then
|
||||||
_, self.x, self.y = rb.action_get_touchscreen_press()
|
_, self.x, self.y = rb.action_get_touchscreen_press()
|
||||||
return true
|
return true
|
||||||
elseif action == rb.actions.ACTION_KBD_SELECT then
|
elseif action == rb.actions.PLA_SELECT then
|
||||||
return true
|
return true
|
||||||
elseif (action == rb.actions.ACTION_KBD_RIGHT) then
|
elseif (action == rb.actions.PLA_RIGHT) then
|
||||||
self.x = self.x + self.size
|
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
|
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
|
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
|
self.y = self.y + self.size
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -233,8 +233,8 @@ function start_round(level, goal, nrBalls, total)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Check for actions
|
-- Check for actions
|
||||||
local action = rb.get_action(rb.contexts.CONTEXT_KEYBOARD, 0)
|
local action = rb.get_plugin_action(0)
|
||||||
if(action == rb.actions.ACTION_KBD_ABORT) then
|
if action == rb.actions.PLA_EXIT or action == rb.actions.PLA_CANCEL then
|
||||||
exit = true
|
exit = true
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue