diff options
Diffstat (limited to 'apps/plugins/rockblox.c')
-rw-r--r-- | apps/plugins/rockblox.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/plugins/rockblox.c b/apps/plugins/rockblox.c index b3767c1a15..dd0bef8c28 100644 --- a/apps/plugins/rockblox.c +++ b/apps/plugins/rockblox.c | |||
@@ -1332,7 +1332,9 @@ static int rockblox_menu(void) | |||
1332 | static int rockblox_loop (void) | 1332 | static int rockblox_loop (void) |
1333 | { | 1333 | { |
1334 | int button; | 1334 | int button; |
1335 | #if defined(ROCKBLOX_OFF_PRE) || defined(ROCKBLOX_DROP_PRE) | ||
1335 | int lastbutton = BUTTON_NONE; | 1336 | int lastbutton = BUTTON_NONE; |
1337 | #endif | ||
1336 | long next_down_tick = *rb->current_tick + level_speed(rockblox_status.level); | 1338 | long next_down_tick = *rb->current_tick + level_speed(rockblox_status.level); |
1337 | 1339 | ||
1338 | if (rockblox_menu()) { | 1340 | if (rockblox_menu()) { |
@@ -1450,8 +1452,10 @@ static int rockblox_loop (void) | |||
1450 | return PLUGIN_USB_CONNECTED; | 1452 | return PLUGIN_USB_CONNECTED; |
1451 | break; | 1453 | break; |
1452 | } | 1454 | } |
1455 | #if defined(ROCKBLOX_OFF_PRE) || defined(ROCKBLOX_DROP_PRE) | ||
1453 | if (button != BUTTON_NONE) | 1456 | if (button != BUTTON_NONE) |
1454 | lastbutton = button; | 1457 | lastbutton = button; |
1458 | #endif | ||
1455 | 1459 | ||
1456 | #ifdef HAVE_SCROLLWHEEL | 1460 | #ifdef HAVE_SCROLLWHEEL |
1457 | /* check if we should enable the scroll wheel, if events | 1461 | /* check if we should enable the scroll wheel, if events |