diff options
Diffstat (limited to 'firmware/target/mips/ingenic_x1000/fiiom3k')
-rw-r--r-- | firmware/target/mips/ingenic_x1000/fiiom3k/button-fiiom3k.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/firmware/target/mips/ingenic_x1000/fiiom3k/button-fiiom3k.c b/firmware/target/mips/ingenic_x1000/fiiom3k/button-fiiom3k.c index 04e3102d42..24daf2ef69 100644 --- a/firmware/target/mips/ingenic_x1000/fiiom3k/button-fiiom3k.c +++ b/firmware/target/mips/ingenic_x1000/fiiom3k/button-fiiom3k.c | |||
@@ -318,7 +318,7 @@ static void ft_step_state(uint32_t t, int evt, int tx, int ty) | |||
318 | } | 318 | } |
319 | } | 319 | } |
320 | 320 | ||
321 | static void ft_event_cb(int evt, int tx, int ty) | 321 | static void ft_event_cb(struct ft6x06_state* state) |
322 | { | 322 | { |
323 | /* TODO: convert the touch positions to linear positions. | 323 | /* TODO: convert the touch positions to linear positions. |
324 | * | 324 | * |
@@ -327,7 +327,8 @@ static void ft_event_cb(int evt, int tx, int ty) | |||
327 | * the middle of the touchpad than on the edges, so scrolling feels slow | 327 | * the middle of the touchpad than on the edges, so scrolling feels slow |
328 | * in the middle and faster near the edge. | 328 | * in the middle and faster near the edge. |
329 | */ | 329 | */ |
330 | ft_step_state(__ost_read32(), evt, tx, ty); | 330 | struct ft6x06_point* pt = &state->points[0]; |
331 | ft_step_state(__ost_read32(), pt->event, pt->pos_x, pt->pos_y); | ||
331 | } | 332 | } |
332 | 333 | ||
333 | static void ft_init(void) | 334 | static void ft_init(void) |