From 5b5a626bb6ba54ccdcd90741cea5f9cbd0f79553 Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Tue, 15 Apr 2008 10:35:11 +0000 Subject: Setup the touchpads to have two modes - stylus and button - and set them in button mode by default. in button mode the touchpad is split into a 3x3 grid for 9 seperate buttons which can be used by the action system like real buttons. Unify the keymap file for the touchpads in button mode. the target keymap file only needs to worry about real buttons. (As these ports mature each screen will need to be fixed seperatly to be able to use stylus mode (the lists can already but don't change mode just yet.) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17114 a1c6a512-1295-4272-9138-f99709370657 --- uisimulator/sdl/uisdl.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'uisimulator/sdl/uisdl.c') diff --git a/uisimulator/sdl/uisdl.c b/uisimulator/sdl/uisdl.c index 09210926b5..28aaf59f82 100644 --- a/uisimulator/sdl/uisdl.c +++ b/uisimulator/sdl/uisdl.c @@ -83,6 +83,12 @@ void gui_message_loop(void) printf("Mouse at: (%d, %d)\n", event.button.x, event.button.y); } break; +#else + case SDL_MOUSEBUTTONUP: + sim_enter_irq_handler(); + button_event(BUTTON_TOUCHPAD, false); + sim_exit_irq_handler(); + break; #endif case SDL_QUIT: done = true; -- cgit v1.2.3