(Android) Get rid of do_pollblock - unnecessary now

This commit is contained in:
twinaphex 2012-10-29 13:34:03 +01:00
parent c2557e0d4f
commit 45142ed3d2
1 changed files with 0 additions and 6 deletions

View File

@ -49,7 +49,6 @@ enum {
static unsigned pads_connected;
static android_input_state_t state[MAX_PADS];
static bool do_pollblock;
static int32_t engine_handle_input(struct android_app* app, AInputEvent* event)
{
@ -73,7 +72,6 @@ static int32_t engine_handle_input(struct android_app* app, AInputEvent* event)
i = pads_connected;
}
if(!do_pollblock)
{
bool do_keydown = false;
bool do_keyrelease = false;
@ -171,7 +169,6 @@ static int32_t engine_handle_input(struct android_app* app, AInputEvent* event)
state[i].state |= (keycode == AKEYCODE_BUTTON_5 ) ? ANDROID_GAMEPAD_L1 : 0;
state[i].state |= (keycode == AKEYCODE_BUTTON_8 ) ? ANDROID_GAMEPAD_R2 : 0;
state[i].state |= (keycode == AKEYCODE_BUTTON_7 ) ? ANDROID_GAMEPAD_L2 : 0;
do_pollblock = true;
}
if(do_keyrelease)
@ -188,7 +185,6 @@ static int32_t engine_handle_input(struct android_app* app, AInputEvent* event)
state[i].state &= (keycode == AKEYCODE_BUTTON_5 ) ? ~(ANDROID_GAMEPAD_L1) : ~0;
state[i].state &= (keycode == AKEYCODE_BUTTON_8 ) ? ~(ANDROID_GAMEPAD_R2) : ~0;
state[i].state &= (keycode == AKEYCODE_BUTTON_7 ) ? ~(ANDROID_GAMEPAD_L2) : ~0;
do_pollblock = true;
}
}
@ -287,8 +283,6 @@ static int16_t android_input_state(void *data, const struct retro_keybind **bind
}
}
do_pollblock = false;
return retval;
}