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.

Code Snippets / [AGK] Improved Mouse Support

Author
Message
Raven
19
Years of Service
User Offline
Joined: 23rd Mar 2005
Location: Hertfordshire, England
Posted: 9th May 2023 10:06
AppGameKit lacks the ability to "Lock Mouse to Screen" for when in Windowed Mode
I also couldn't see any examples (but then the Search is a bit 'meh' for these boards)

It's not perfect., but this will allow you "Lock" the Mouse to the Screen
Will continue to work and improve this... as switching between modes isn't seamless.
I also add functions for the Sprite Support (for Animated Sprites)

Other than that Mouse.Position.X/Y is the Window Position, Mouse.Movement.X/Y will tell you how much the Mouse moved since the last call
These two features should make using AppGameKit in Window Mode MUCH easier for Games, such-as Mouse Look.


Attachments

Login to view attachments

Login to post a reply

Server time is: 2024-04-27 20:27:10
Your offset time is: 2024-04-27 20:27:10