Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Mouse events - outside screen area

Author
Message
PartTimeCoder
AGK Tool Maker
9
Years of Service
User Offline
Joined: 9th Mar 2015
Location: London UK
Posted: 13th Apr 2018 12:47
I am having a problem with GetRawMouse*State(), if the mouse leaves the screen area (to 2nd screen) and release the button when the mouse returned to screen 1 the down state is still registered, if this by design? is so, is there a work-a-round?
Paul Johnston
TGC Developer
21
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 13th Apr 2018 17:11
If you press the mouse button whilst on the AppGameKit window then the mouse will be captured and GetRawMoustLeftState should remain 1 even if the mouse leaves the window. When you release the mouse then the mouse capture will be released and GetRawMouseLeftState will go to 0, even if it is on another screen. Just tested on Windows 10 and it works as expected.
PartTimeCoder
AGK Tool Maker
9
Years of Service
User Offline
Joined: 9th Mar 2015
Location: London UK
Posted: 14th Apr 2018 14:06
Yes GetRawMouseLeftState() works as expected, GetRawMouseMiddleState() and GetRawMouseRightState() however do not, the release is not registered on the 2nd screen, only a 2nd press of the middle/right button on the AppGameKit window will release the capture.
Paul Johnston
TGC Developer
21
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 16th Apr 2018 16:54
Thanks, fixed for the next version
PartTimeCoder
AGK Tool Maker
9
Years of Service
User Offline
Joined: 9th Mar 2015
Location: London UK
Posted: 16th Apr 2018 23:40 Edited at: 16th Apr 2018 23:43
Thanks Paul

oh btw, the same is also true for GetRawMouseMiddleReleased() and GetRawMouseRightReleased()
XANAX 2B
21
Years of Service
User Offline
Joined: 20th Jun 2003
Location: Corsica (France)
Posted: 4th May 2018 20:12
Hello Paul,

This problem occurs also with "GetPointerState()".

And under HTML5, only Firefox detect "GetRawMouseLeftState()" is out of the game window.
Don't let the world decrease your conatus
XANAX 2B
21
Years of Service
User Offline
Joined: 20th Jun 2003
Location: Corsica (France)
Posted: 9th May 2018 08:05
Thanks
Never trust a human

Login to post a reply

Server time is: 2024-09-30 17:24:09
Your offset time is: 2024-09-30 17:24:09