mirror of https://github.com/PCSX2/pcsx2.git
onepad: Fix macOS build
This commit is contained in:
parent
34425d892c
commit
2ec8cdb86d
|
@ -333,6 +333,7 @@ PADkeyEvent()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef __unix__
|
||||||
if (g_ev_fifo.size() == 0) {
|
if (g_ev_fifo.size() == 0) {
|
||||||
// PAD_LOG("No events in queue, returning empty event\n");
|
// PAD_LOG("No events in queue, returning empty event\n");
|
||||||
s_event = event;
|
s_event = event;
|
||||||
|
@ -344,6 +345,12 @@ PADkeyEvent()
|
||||||
AnalyzeKeyEvent(s_event);
|
AnalyzeKeyEvent(s_event);
|
||||||
// PAD_LOG("Returning Event. Event Type: %d, Key: %d\n", s_event.evt, s_event.key);
|
// PAD_LOG("Returning Event. Event Type: %d, Key: %d\n", s_event.evt, s_event.key);
|
||||||
return &s_event;
|
return &s_event;
|
||||||
|
#else // MacOS
|
||||||
|
s_event = event;
|
||||||
|
event.evt = 0;
|
||||||
|
event.key = 0;
|
||||||
|
return &s_event;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(__unix__)
|
#if defined(__unix__)
|
||||||
|
|
Loading…
Reference in New Issue