mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-15 06:08:35 +00:00
Confine mouse movements.
svn-id: r3562
This commit is contained in:
parent
c0c9b69851
commit
277a86b8ca
@ -124,5 +124,10 @@ void handleInput(struct mapledev *pad, int16 &mouse_x, int16 &mouse_y,
|
||||
lastkey = 0;
|
||||
else if(newkey != lastkey)
|
||||
keyPressed = lastkey = newkey;
|
||||
|
||||
if (mouse_x<0) mouse_x=0;
|
||||
if (mouse_x>319) mouse_x=319;
|
||||
if (mouse_y<0) mouse_y=0;
|
||||
if (mouse_y>199) mouse_y=199;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user