P
ph101
Guest
Hi guys,
I have a problem. This is the code I use to find my mouse x,y:
x = global.xwidth * (device_mouse_raw_x(0) / max(1, window_get_width()));
y = global.yheight * (device_mouse_raw_y(0) / max(1, window_get_height()));
And I draw the cursor on GUI layer. Game is in fullscreen. No problem
What I find is that on my duel monitor setup if I move the cursor off the side into the next mointor it comes out of the game screen and into windows - that is to say on the side monitor I see my windows cursor, but the game doesn't lose focus (ie not alt tabbed unless I click), but my game cursor stays where it was edge of screen. In my game if you mouse to the edgeo fthe screen it pushines a boundry, but this wont happen in said scenario.
Is there a way to lock the cursor in game on a dual screen set up? Ideally if you went off the side, because I am in full screen mode, not see the windows cursor?
Thanks
I have a problem. This is the code I use to find my mouse x,y:
x = global.xwidth * (device_mouse_raw_x(0) / max(1, window_get_width()));
y = global.yheight * (device_mouse_raw_y(0) / max(1, window_get_height()));
And I draw the cursor on GUI layer. Game is in fullscreen. No problem
What I find is that on my duel monitor setup if I move the cursor off the side into the next mointor it comes out of the game screen and into windows - that is to say on the side monitor I see my windows cursor, but the game doesn't lose focus (ie not alt tabbed unless I click), but my game cursor stays where it was edge of screen. In my game if you mouse to the edgeo fthe screen it pushines a boundry, but this wont happen in said scenario.
Is there a way to lock the cursor in game on a dual screen set up? Ideally if you went off the side, because I am in full screen mode, not see the windows cursor?
Thanks
Last edited by a moderator: