mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-14 05:38:56 +00:00
EVENTS: Added relative mouse position in virtual mouse
This commit is contained in:
parent
d63f0e7513
commit
eb83a03208
@ -99,6 +99,9 @@ bool VirtualMouse::pollEvent(Event &event) {
|
||||
event.mouse.x = CLIP<int16>(event.mouse.x, 0, screenSize.width());
|
||||
event.mouse.y = CLIP<int16>(event.mouse.y, 0, screenSize.height());
|
||||
|
||||
event.relMouse.x = delta.x; // ResidualVM
|
||||
event.relMouse.y = delta.y; // ResidualVM
|
||||
|
||||
g_system->warpMouse(event.mouse.x, event.mouse.y);
|
||||
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user