i have locked my curser in the middle of the screen but i have a menu on the left of the screen which i need to be able to click.
does anyone know how i can get around this?
i have locked my curser in the middle of the screen but i have a menu on the left of the screen which i need to be able to click.
does anyone know how i can get around this?
Most games use a key on the keyboard to switch between game mode and UI mode. In game mode the cursor is invisible and locked and in UI mode the cursor is visible and can be moved.
If you are talking about freeing the mouse up from the editor then a trick (at least in Windows 7) is to press the meta key (it has a windows logo on it). This will temporarily release the cursor, disable any mouse events and allow you to reach the menu. This is very useful if your are doing an FPS shooter and want to tweak something without causing the camera to hurl around while you move your mouse out of the game window.
any hints on some script which would enable me to switch between game mode and gui mode?
The scripting reference provides a good example: