(android_joypad.c) Small cleanup

This commit is contained in:
twinaphex 2017-06-07 21:10:06 +02:00
parent 5ef8b69c9c
commit 4a5593255f

View File

@ -30,15 +30,13 @@ static bool android_joypad_init(void *data)
static bool android_joypad_button(unsigned port, uint16_t joykey)
{
unsigned hat_dir = 0;
uint8_t *buf = android_keyboard_state_get(port);
struct android_app *android_app = (struct android_app*)g_android;
unsigned hat_dir = GET_HAT_DIR(joykey);
if (port >= MAX_PADS)
return false;
hat_dir = GET_HAT_DIR(joykey);
if (hat_dir)
{
unsigned h = GET_HAT(joykey);