diff options
Diffstat (limited to 'firmware/target/arm/tms320dm320/mrobe-500/button-mr500.c')
-rw-r--r-- | firmware/target/arm/tms320dm320/mrobe-500/button-mr500.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/firmware/target/arm/tms320dm320/mrobe-500/button-mr500.c b/firmware/target/arm/tms320dm320/mrobe-500/button-mr500.c index 04acb71e45..7d9a43f902 100644 --- a/firmware/target/arm/tms320dm320/mrobe-500/button-mr500.c +++ b/firmware/target/arm/tms320dm320/mrobe-500/button-mr500.c | |||
@@ -108,9 +108,13 @@ inline bool button_hold(void) | |||
108 | return hold_button; | 108 | return hold_button; |
109 | } | 109 | } |
110 | 110 | ||
111 | /* Since this is a touchscreen, the expectation in higher levels is that the | ||
112 | * previous touch location is maintained when a release occurs. This is | ||
113 | * intended to mimic a mouse or other similar pointing device. | ||
114 | */ | ||
111 | int button_read_device(int *data) | 115 | int button_read_device(int *data) |
112 | { | 116 | { |
113 | static int old_data; | 117 | static int old_data = 0; |
114 | int button_read = BUTTON_NONE; | 118 | int button_read = BUTTON_NONE; |
115 | short touch_x, touch_y, touch_z1, touch_z2; | 119 | short touch_x, touch_y, touch_z1, touch_z2; |
116 | static bool hold_button_old = false; | 120 | static bool hold_button_old = false; |