diff options
Diffstat (limited to 'firmware/target/arm/imx233/creative-zenxfi2')
-rw-r--r-- | firmware/target/arm/imx233/creative-zenxfi2/button-zenxfi2.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/firmware/target/arm/imx233/creative-zenxfi2/button-zenxfi2.c b/firmware/target/arm/imx233/creative-zenxfi2/button-zenxfi2.c index 74b8d649b3..4f2a2775bf 100644 --- a/firmware/target/arm/imx233/creative-zenxfi2/button-zenxfi2.c +++ b/firmware/target/arm/imx233/creative-zenxfi2/button-zenxfi2.c | |||
@@ -66,7 +66,7 @@ void button_init_device(void) | |||
66 | 66 | ||
67 | bottomright.px_x = LCD_WIDTH; | 67 | bottomright.px_x = LCD_WIDTH; |
68 | bottomright.px_y = LCD_HEIGHT; | 68 | bottomright.px_y = LCD_HEIGHT; |
69 | 69 | ||
70 | imx233_touchscreen_init(); | 70 | imx233_touchscreen_init(); |
71 | imx233_touchscreen_enable(true); | 71 | imx233_touchscreen_enable(true); |
72 | 72 | ||
@@ -104,6 +104,11 @@ static int touch_to_pixels(int *val_x, int *val_y) | |||
104 | return (x<<16)|y; | 104 | return (x<<16)|y; |
105 | } | 105 | } |
106 | 106 | ||
107 | void touchscreen_enable_device(bool en) | ||
108 | { | ||
109 | imx233_touchscreen_enable(en); | ||
110 | } | ||
111 | |||
107 | static int touchscreen_read_device(int *data) | 112 | static int touchscreen_read_device(int *data) |
108 | { | 113 | { |
109 | int x, y; | 114 | int x, y; |