From 6bf5a97c15e16dd47035e03b6ebbde0757b10589 Mon Sep 17 00:00:00 2001 From: Bernhard Kaindl Date: Tue, 7 Aug 2012 11:27:06 +0200 Subject: [PATCH] Add touch input support in opentyrian menu, third commit: - Add support for changing the software scaler in the menu by touch --- project/jni/application/opentyrian/src/opentyr.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/project/jni/application/opentyrian/src/opentyr.cpp b/project/jni/application/opentyrian/src/opentyr.cpp index a28125e88..c97e0f08b 100644 --- a/project/jni/application/opentyrian/src/opentyr.cpp +++ b/project/jni/application/opentyrian/src/opentyr.cpp @@ -165,7 +165,7 @@ void opentyrian_menu( void ) JE_playSampleNum(S_CURSOR); break; case SDLK_LEFT: - if (sel == 2) + if (sel == menu_item_scaler) { do { @@ -178,7 +178,10 @@ void opentyrian_menu( void ) } break; case SDLK_RIGHT: - if (sel == 2) +#ifdef ANDROID + case SDLK_RETURN: +#endif + if (sel == menu_item_scaler) { do { @@ -189,8 +192,10 @@ void opentyrian_menu( void ) while (!can_init_scaler(temp_scaler, fullscreen_enabled)); JE_playSampleNum(S_CURSOR); } +#ifndef ANDROID break; case SDLK_RETURN: +#endif case SDLK_SPACE: switch (sel) {