InputHandler on StandardGame

Hi,

Im using StandardGame and DegubGameState.

But i have a custom InputHandler that i have to update.

I havent found another way of doing this update otherwise that in the code below:


dGameState=new DebugGameState()
      {

         @Override
         public void update(float tpf) {
         
            super.update(tpf);
            input.update(tpf);            
         }
         
      };



Is there another way that would not override DebugGameState method?

HUmm… the best way is to inherit the DebugGameState or use a Custom code of that with my InputHandler as i can see on the source code that the InputHandler of the DebugGameState is protected.



Sorry for the post.

If you really want to go through the process of creating your own input handling perhaps it is time to move away from DebugGameState?  It is meant for initial design and testing, but when you get to the point of creating your own controls it is generally time to remove it.