summaryrefslogtreecommitdiff
path: root/apps/plugins/calculator.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/calculator.c')
-rw-r--r--apps/plugins/calculator.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/plugins/calculator.c b/apps/plugins/calculator.c
index cbbbeaa293..3a3947d81a 100644
--- a/apps/plugins/calculator.c
+++ b/apps/plugins/calculator.c
@@ -265,7 +265,7 @@ PLUGIN_HEADER
265#error No keymap defined! 265#error No keymap defined!
266#endif 266#endif
267 267
268#ifdef HAVE_TOUCHPAD 268#ifdef HAVE_TOUCHSCREEN
269#ifndef CALCULATOR_LEFT 269#ifndef CALCULATOR_LEFT
270#define CALCULATOR_LEFT BUTTON_MIDLEFT 270#define CALCULATOR_LEFT BUTTON_MIDLEFT
271#endif 271#endif
@@ -1549,8 +1549,8 @@ enum plugin_status plugin_start(const struct plugin_api* api, const void* parame
1549 1549
1550 while (calStatus != cal_exit ) { 1550 while (calStatus != cal_exit ) {
1551 btn = rb->button_get_w_tmo(HZ/2); 1551 btn = rb->button_get_w_tmo(HZ/2);
1552#ifdef HAVE_TOUCHPAD 1552#ifdef HAVE_TOUCHSCREEN
1553 if(btn & BUTTON_TOUCHPAD) 1553 if(btn & BUTTON_TOUCHSCREEN)
1554 { 1554 {
1555 struct ts_raster_result res; 1555 struct ts_raster_result res;
1556 if(touchscreen_map_raster(&calc_raster, rb->button_get_data() >> 16, rb->button_get_data() & 0xffff, &res) == 1) 1556 if(touchscreen_map_raster(&calc_raster, rb->button_get_data() >> 16, rb->button_get_data() & 0xffff, &res) == 1)
@@ -1575,7 +1575,7 @@ enum plugin_status plugin_start(const struct plugin_api* api, const void* parame
1575 sciButtonsProcess(); 1575 sciButtonsProcess();
1576 break; 1576 break;
1577 } 1577 }
1578 btn = BUTTON_TOUCHPAD; 1578 btn = BUTTON_TOUCHSCREEN;
1579 } 1579 }
1580 } 1580 }
1581 } 1581 }