diff options
| author | Thomas Martitz <kugel@rockbox.org> | 2012-01-30 01:03:22 +0100 |
|---|---|---|
| committer | Thomas Martitz <kugel@rockbox.org> | 2012-01-30 01:03:22 +0100 |
| commit | e7892c9851da0f3506c380983fac0c019f773489 (patch) | |
| tree | e459460d13f5af7c809f241380843734d9e5252f /apps | |
| parent | 3e13fcddc6af9ead51f35d49f2d63c6bb8c7c6aa (diff) | |
| download | rockbox-e7892c9851da0f3506c380983fac0c019f773489.zip rockbox-e7892c9851da0f3506c380983fac0c019f773489.tar.gz rockbox-e7892c9851da0f3506c380983fac0c019f773489.tar.bz2 rockbox-e7892c9851da0f3506c380983fac0c019f773489.tar.xz | |
clix: Remove redundant touchscreen mode setting. Remove blocks on touch release (to avoid accidental moves).
Change-Id: Ie758e64bff5e7e4ae0f3ffe9e954b533cafb4bed
Diffstat (limited to 'apps')
| -rw-r--r-- | apps/plugins/clix.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/apps/plugins/clix.c b/apps/plugins/clix.c index 4d6218f..614b756 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 { |