40:71e06f6d80fd | 41:7639cfa6aec0 |
---|---|
10 int level = 1; ///< Keyboard level. | 10 int level = 1; ///< Keyboard level. |
11 | 11 |
12 const char *mashTypes[] = { "Infusion", "Temperature", "Decoction" }; | 12 const char *mashTypes[] = { "Infusion", "Temperature", "Decoction" }; |
13 const char *SSR2Types[] = { "Uit", "HLT of MLT", "HLT en MLT", "Idle" }; | 13 const char *SSR2Types[] = { "Uit", "HLT of MLT", "HLT en MLT", "Idle" }; |
14 | 14 |
15 uint8_t WS_pressed = 0; ///< Websocket button received | |
16 uint16_t WS_pointer_x = 0; ///< Websocket coordinate x | |
17 uint16_t WS_pointer_y = 0; ///< Websocket coordinate y | |
15 | 18 |
16 #define EDIT_TYPE_TEXT 0 ///< Editor type is text | 19 #define EDIT_TYPE_TEXT 0 ///< Editor type is text |
17 #define EDIT_TYPE_INT 1 ///< Editor type is integer | 20 #define EDIT_TYPE_INT 1 ///< Editor type is integer |
18 #define EDIT_TYPE_FLOAT 2 ///< Editor type is float | 21 #define EDIT_TYPE_FLOAT 2 ///< Editor type is float |
19 | 22 |
132 t_pressed = false; | 135 t_pressed = false; |
133 ox = oy = -1; | 136 ox = oy = -1; |
134 return rc; | 137 return rc; |
135 } | 138 } |
136 | 139 |
137 if (v_pressed) { | 140 if (WS_pressed) { |
141 v_pressed = true; | |
142 vx = WS_pointer_x; | |
143 vy = WS_pointer_y; | |
144 WS_pressed = 0; | |
145 return -1; | |
146 } else if (v_pressed) { | |
138 rc = Buttons_Search(vx, vy); | 147 rc = Buttons_Search(vx, vy); |
139 v_pressed = false; | 148 v_pressed = false; |
140 vx = vy = -1; | 149 vx = vy = -1; |
141 return rc; | 150 return rc; |
142 } | 151 } |
143 | 152 |
144 return -1; | 153 return -1; |
154 } | |
155 | |
156 | |
157 | |
158 void WS_touched(int x, int y) | |
159 { | |
160 WS_pointer_x = x; | |
161 WS_pointer_y = y; | |
162 WS_pressed = 1; | |
145 } | 163 } |
146 | 164 |
147 | 165 |
148 | 166 |
149 static const uint8_t alphalow_tab[] = { 'q','w','e','r','t','y','u','i','o','p', | 167 static const uint8_t alphalow_tab[] = { 'q','w','e','r','t','y','u','i','o','p', |