I'm stuck on one small part of Impleamenting my mouse looking though the tutorials and other posts when ever AbsoluteMouse is used it is registered with input handler that comes with simplegame.
What am i ment to register it with in standard game?
I've created my own subclass of InputHandler which registers the absoluteMouse. In a game state, I simply create that InputHandler, I give it the absoluteMouse (currently in the constructor) and the constructor registers it:
absoluteMouse.registerWithInputHandler(this);
or just initialize your Input handler,
for Example:
....
public class MyFirstGameMainState extends PhysicsGameState {
....
public InputHandler input;
....
public MyFirstGameMainState(String s) {
super(s);
....
input = new InputHandler();
....
input.addAction(..);
}
public void update(float f)
{
super.update(f);
input.update(f);
....
}
...
}
I sloved this, instead of using an absolute mouse i'm simpling just using MouseInput. Works great