From c6f6b6627874758de44f919bccf4fe0c3d37400c Mon Sep 17 00:00:00 2001 From: Twinaphex Date: Sun, 1 Jul 2012 18:30:51 +0200 Subject: [PATCH] (PS3) Add HAVE_OPENGL ifdefs to ps3_input.c --- ps3/ps3_input.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ps3/ps3_input.c b/ps3/ps3_input.c index b79059f817..4236c5b4b7 100644 --- a/ps3/ps3_input.c +++ b/ps3/ps3_input.c @@ -388,7 +388,9 @@ void ps3_input_map_dpad_to_stick(uint32_t map_dpad_enum, uint32_t controller_id) static bool ps3_key_pressed(void *data, int key) { (void)data; +#ifdef HAVE_OPENGL gl_t *gl = driver.video_data; +#endif switch (key) { @@ -413,6 +415,7 @@ static bool ps3_key_pressed(void *data, int key) case RARCH_REWIND: return CTRL_RSTICK_UP(state[0]) && CTRL_R2(~state[0]); case RARCH_QUIT_KEY: +#ifdef HAVE_OPENGL if(IS_TIMER_EXPIRED(gl)) { uint32_t r3_pressed = CTRL_R3(state[0]); @@ -431,6 +434,7 @@ static bool ps3_key_pressed(void *data, int key) retval = g_console.ingame_menu_enable ? g_console.ingame_menu_enable : g_console.menu_enable; return retval; } +#endif default: return false; }