Allow mouse capture on internal mice even if mouse_type is not actually set to MOUSE_TYPE_INTERNAL, fixes #2682.
This commit is contained in:
@@ -104,7 +104,7 @@ void plat_setfullscreen(int on) {
|
||||
}
|
||||
|
||||
void plat_mouse_capture(int on) {
|
||||
if (!kbd_req_capture && (mouse_type == MOUSE_TYPE_NONE))
|
||||
if (!kbd_req_capture && (mouse_type == MOUSE_TYPE_NONE) && !machine_has_mouse())
|
||||
return;
|
||||
|
||||
main_window->setMouseCapture(on > 0 ? true : false);
|
||||
|
||||
Reference in New Issue
Block a user