summaryrefslogtreecommitdiff
path: root/apps/plugins/dice.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/dice.c')
-rw-r--r--apps/plugins/dice.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/plugins/dice.c b/apps/plugins/dice.c
index bee9f89c6b..7bd51122ee 100644
--- a/apps/plugins/dice.c
+++ b/apps/plugins/dice.c
@@ -28,13 +28,13 @@
28#define INITIAL_NB_DICES 1 28#define INITIAL_NB_DICES 1
29#define INITIAL_NB_SIDES 2 /* corresponds to 6 sides in the array */ 29#define INITIAL_NB_SIDES 2 /* corresponds to 6 sides in the array */
30 30
31#define DICE_QUIT PLA_QUIT 31#define DICE_QUIT PLA_CANCEL
32#define DICE_ROLL PLA_START 32#define DICE_ROLL PLA_SELECT
33 33
34 34
35#define CFG_FILE "dice.cfg" 35#define CFG_FILE "dice.cfg"
36 36
37const struct button_mapping* plugin_contexts[]={generic_actions}; 37const struct button_mapping* plugin_contexts[]={pla_main_ctx};
38 38
39struct dices 39struct dices
40{ 40{
@@ -94,7 +94,7 @@ enum plugin_status plugin_start(const void* parameter) {
94 dice_print( &dice, rb->screens[i] ); 94 dice_print( &dice, rb->screens[i] );
95 while(true) { 95 while(true) {
96 action = pluginlib_getaction(TIMEOUT_BLOCK, 96 action = pluginlib_getaction(TIMEOUT_BLOCK,
97 plugin_contexts, 1); 97 plugin_contexts, ARRAYLEN(plugin_contexts));
98 switch(action) { 98 switch(action) {
99 case DICE_ROLL: 99 case DICE_ROLL:
100 dice_roll(&dice); 100 dice_roll(&dice);