Hi guys, I have started to work on a 3D RTS using AGK. But there are two things im missing as far as controlls go, both regarding camera controll.
The first thing is the scroll wheel. Most RTS games use it for zooming up and down, and thats what i want to. But I can't find a command that "reads the scrollwheel". Is there such a command?
The other thing im trying to do is lock the mouse to the game. I want the camera to rotate when the mouse is on the left or right of the screen (which I have working). But the problem is that im using 2 screens and if I move the mouse off the main screen, the game dosn't recognise the mouse as being at the edge of the screen. So I tried doing this
Quote: "if (agk::GetRawMouseX() > 99){
agk::SetRawMousePosition(99, agk::GetRawMouseY());
}"
This does work, but if I move the mouse to quickly, so that it gets outside the screen the app looses focus and stops rotating because the mouse is less that 99. Is there a way to lock the mouse to the screen when the mouse is outside the screen but the app is still active. (No other window is selected)
Im using Tier 2 1085 beta.