diff options
Diffstat (limited to 'apps/plugins/rocklife.c')
-rw-r--r-- | apps/plugins/rocklife.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/plugins/rocklife.c b/apps/plugins/rocklife.c index 35c848de1d..210cffa78d 100644 --- a/apps/plugins/rocklife.c +++ b/apps/plugins/rocklife.c | |||
@@ -66,11 +66,11 @@ | |||
66 | 66 | ||
67 | PLUGIN_HEADER | 67 | PLUGIN_HEADER |
68 | 68 | ||
69 | #define ROCKLIFE_PLAY_PAUSE PLA_FIRE | 69 | #define ROCKLIFE_PLAY_PAUSE PLA_SELECT |
70 | #define ROCKLIFE_INIT PLA_DOWN | 70 | #define ROCKLIFE_INIT PLA_DOWN |
71 | #define ROCKLIFE_NEXT PLA_RIGHT | 71 | #define ROCKLIFE_NEXT PLA_RIGHT |
72 | #define ROCKLIFE_NEXT_REP PLA_RIGHT_REPEAT | 72 | #define ROCKLIFE_NEXT_REP PLA_RIGHT_REPEAT |
73 | #define ROCKLIFE_QUIT PLA_QUIT | 73 | #define ROCKLIFE_QUIT PLA_CANCEL |
74 | #define ROCKLIFE_STATUS PLA_LEFT | 74 | #define ROCKLIFE_STATUS PLA_LEFT |
75 | 75 | ||
76 | #define PATTERN_RANDOM 0 | 76 | #define PATTERN_RANDOM 0 |
@@ -80,7 +80,7 @@ PLUGIN_HEADER | |||
80 | #define PATTERN_GLIDER_GUN 4 | 80 | #define PATTERN_GLIDER_GUN 4 |
81 | 81 | ||
82 | const struct button_mapping *plugin_contexts[] | 82 | const struct button_mapping *plugin_contexts[] |
83 | = {generic_directions, generic_actions}; | 83 | = {pla_main_ctx}; |
84 | 84 | ||
85 | #define GRID_W LCD_WIDTH | 85 | #define GRID_W LCD_WIDTH |
86 | #define GRID_H LCD_HEIGHT | 86 | #define GRID_H LCD_HEIGHT |
@@ -512,7 +512,7 @@ enum plugin_status plugin_start(const void* parameter) | |||
512 | show_grid(pgrid); | 512 | show_grid(pgrid); |
513 | 513 | ||
514 | while(!quit) { | 514 | while(!quit) { |
515 | button = pluginlib_getaction(TIMEOUT_BLOCK, plugin_contexts, 2); | 515 | button = pluginlib_getaction(TIMEOUT_BLOCK, plugin_contexts, ARRAYLEN(plugin_contexts)); |
516 | switch(button) { | 516 | switch(button) { |
517 | case ROCKLIFE_NEXT: | 517 | case ROCKLIFE_NEXT: |
518 | case ROCKLIFE_NEXT_REP: | 518 | case ROCKLIFE_NEXT_REP: |
@@ -537,7 +537,7 @@ enum plugin_status plugin_start(const void* parameter) | |||
537 | /* show new generation */ | 537 | /* show new generation */ |
538 | rb->yield(); | 538 | rb->yield(); |
539 | show_grid(pgrid); | 539 | show_grid(pgrid); |
540 | button = pluginlib_getaction(0, plugin_contexts, 2); | 540 | button = pluginlib_getaction(0, plugin_contexts, ARRAYLEN(plugin_contexts)); |
541 | switch(button) { | 541 | switch(button) { |
542 | case ROCKLIFE_PLAY_PAUSE: | 542 | case ROCKLIFE_PLAY_PAUSE: |
543 | case ROCKLIFE_QUIT: | 543 | case ROCKLIFE_QUIT: |