From e7892c9851da0f3506c380983fac0c019f773489 Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Mon, 30 Jan 2012 01:03:22 +0100 Subject: clix: Remove redundant touchscreen mode setting. Remove blocks on touch release (to avoid accidental moves). Change-Id: Ie758e64bff5e7e4ae0f3ffe9e954b533cafb4bed --- apps/plugins/clix.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'apps') diff --git a/apps/plugins/clix.c b/apps/plugins/clix.c index 4d6218f3fb..614b7563f3 100644 --- a/apps/plugins/clix.c +++ b/apps/plugins/clix.c @@ -654,11 +654,6 @@ static int clix_menu(struct clix_game_state_t* state, bool ingame) "Playback Control", "Quit"); -#ifdef HAVE_TOUCHSCREEN - /* Entering Menu, set the touchscreen to the global setting */ - rb->touchscreen_set_mode(rb->global_settings->touch_mode); -#endif - while (!leave_menu) { switch (rb->do_menu(&main_menu, &choice, NULL, false)) { @@ -693,11 +688,6 @@ static int clix_menu(struct clix_game_state_t* state, bool ingame) } } -#ifdef HAVE_TOUCHSCREEN - /* Leaving the menu, set back to pointer mode */ - rb->touchscreen_set_mode(TOUCHSCREEN_POINT); -#endif - return ret; } @@ -792,7 +782,7 @@ static int clix_handle_game(struct clix_game_state_t* state) if(x < BOARD_WIDTH && y < BOARD_HEIGHT && state->board[XYPOS(x, y)] != CC_BLACK) { - if(state->x == x && state->y == y) + if(state->x == x && state->y == y && button & BUTTON_REL) button = CLIX_BUTTON_CLICK; else { -- cgit v1.2.3