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 / Reset/Set Mouse position For FreeLook Camera for 3D ? :)

Author
Message
MikeMax
AGK Academic Backer
12
Years of Service
User Offline
Joined: 13th Dec 2011
Location: Paris
Posted: 15th Oct 2012 04:23
Is there a way to set mouse position to center of the screen to create a freelook mode for 3D Camera ? (in windows/mac obviously)

i already asked a function to show/hide mouse cursor (what was done in 107) but now i would like to have the ability to "reset" or set the position of mouse where i want, to have the ability to calculate a NewPos-OldPos calculation...
Paul Johnston
TGC Developer
22
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 15th Oct 2012 15:30
SetRawMousePosition is new for 108, it will work only whilst the AppGameKit window has focus.
MikeMax
AGK Academic Backer
12
Years of Service
User Offline
Joined: 13th Dec 2011
Location: Paris
Posted: 15th Oct 2012 20:56
Great ! Already in the beta or will be in the final 108 release ? i don't see it in the new commands list.
Paul Johnston
TGC Developer
22
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 15th Oct 2012 21:51
It is in the beta but I don't think it is documented properly yet. I'll make sure it is for the next beta.
MikeMax
AGK Academic Backer
12
Years of Service
User Offline
Joined: 13th Dec 2011
Location: Paris
Posted: 15th Oct 2012 23:49
Ok it works well in 108 beta No "help at cursor" but it's a classic command


SetRawMousePosition( X , Y )

Thanks !

Login to post a reply

Server time is: 2024-11-23 23:20:42
Your offset time is: 2024-11-23 23:20:42