Dinput: Mouse pointer send proper return value instead of flag value (#17067)

This commit is contained in:
sonninnos 2024-10-02 03:36:49 +03:00 committed by GitHub
parent 3019b926c2
commit 5e2409471a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;
}