(Android) try to fix Xperia Start/Select

This commit is contained in:
ToadKing 2013-02-03 14:22:32 -05:00
parent ce023c5ab0
commit ece4064e52
3 changed files with 6 additions and 2 deletions

View File

@ -108,6 +108,8 @@ static void android_input_poll(void *data)
int source = AInputEvent_getSource(event);
int id = AInputEvent_getDeviceId(event);
if (id == zeus_second_id)
id = zeus_id;
int keycode = AKeyEvent_getKeyCode(event);
int type_event = AInputEvent_getType(event);

View File

@ -96,8 +96,8 @@ void input_autodetect_init (void)
}
}
static int zeus_id = -1;
static int zeus_second_id = -1;
int zeus_id = -1;
int zeus_second_id = -1;
static unsigned zeus_port;
void input_autodetect_setup (void *data, char *msg, size_t sizeof_msg, unsigned port, unsigned id, int source)

View File

@ -62,6 +62,8 @@ enum {
extern uint64_t keycode_lut[LAST_KEYCODE];
extern bool volume_enable;
extern int zeus_id;
extern int zeus_second_id;
void input_autodetect_init (void);
void input_autodetect_setup (void *data, char *msg, size_t sizeof_msg, unsigned port, unsigned id, int source);