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.

Dark GDK / Setting the Mouse Still Unsolved?

Author
Message
ReiKumar
16
Years of Service
User Offline
Joined: 23rd Sep 2008
Location:
Posted: 30th Sep 2008 09:44
How do I set the mouse so that:

1. It only affects the program while its within the screen.
2. Turns at a normal rate, unlike the demo game settings where moving from left to right, rotates the camera 720 deg.
Aura Art
16
Years of Service
User Offline
Joined: 29th Sep 2008
Location:
Posted: 30th Sep 2008 11:27

dbHideMouse ( ); //they use it to hide the mouse
dbPositionMouse ( dbScreenWidth()/2 , dbScreenHeight()/2 );
//keep the mouse in the center of the game window (no matter what res)
CameraAngleY = dbWrapValue ( ( dbCameraAngleY ( 0 ) + dbMouseMoveX ( ) * 0.4f ) );
CameraAngleX = dbWrapValue ( ( dbCameraAngleX ( 0 ) + dbMouseMoveY ( ) * 0.4f ) );
//camera moves base on mouse movements *adsujt multiplyer for mouse sensitivity.

Login to post a reply

Server time is: 2024-09-30 07:32:39
Your offset time is: 2024-09-30 07:32:39