Skip to content

Commit

Permalink
Quick fix for mesen
Browse files Browse the repository at this point in the history
  • Loading branch information
kivutar committed Jun 23, 2022
1 parent 60877dc commit 70615e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion input.c
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ int16_t input_state(unsigned port, unsigned device, unsigned index, unsigned id)
if (port < MAX_PLAYERS && device == RETRO_DEVICE_JOYPAD)
return state[port][id];

if (device == RETRO_DEVICE_MOUSE) {
if (device == RETRO_DEVICE_MOUSE && window != NULL) {
double x = 0;
double y = 0;
glfwGetCursorPos(window, &x, &y);
Expand Down

0 comments on commit 70615e9

Please sign in to comment.