mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-15 06:50:32 +00:00
(Android) try to fix Xperia Start/Select
This commit is contained in:
parent
ce023c5ab0
commit
ece4064e52
@ -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);
|
||||
|
@ -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)
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user