Im making a game with JMonkey and im looking forward for controlling the mouse cursor whit the keyboard or the gamepad.
Is there a way to change the position of the mouse in the screen?
What is the better way for doing this?
I have tried in this way, but it havent work:
I have mapped 4 keys: up, right , left and down. When i press up i get the mouse position with “inputManager.getCursorPosition()”. then i want to make something like “cursor.setPosition().y(actualposition + 1” so that the mouse goes up when i press the key.
This is a case of smoke and daggers. Most (if not all) games won’t actually move the mouse, they just give the illusion by putting an image of a cursor next to the selection. So for example if you start using your gamepad, the real mouse will get hidden, and the fake mouse will come into play.