Skip to content

Commit

Permalink
Dinput: Mouse pointer send proper return value instead of flag value
Browse files Browse the repository at this point in the history
  • Loading branch information
sonninnos committed Sep 30, 2024
1 parent 1d2c9a8 commit 7f4c260
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion input/drivers/dinput.c
Original file line number Diff line number Diff line change
Expand Up @@ -807,7 +807,7 @@ static int16_t dinput_input_state(
case RETRO_DEVICE_ID_POINTER_Y:
return res_y;
case RETRO_DEVICE_ID_POINTER_PRESSED:
return check_pos ? 1 : (di->flags & DINP_FLAG_MOUSE_L_BTN);
return check_pos ? 1 : (di->flags & DINP_FLAG_MOUSE_L_BTN) > 0;
default:
break;
}
Expand Down

0 comments on commit 7f4c260

Please sign in to comment.