I'm making a LibGDX game where the player needs to tap to jump. But in this game, the player has to tap extra fast because the player needs to jump extra fast.
The problem is, the program can't register the taps fast enough to keep up with the user.
I've tried to handle the input 3 times per frame, but that turned out to be very problematic.
public void handleInput(float dt){
if(Gdx.input.justTouched()){
player.jump();
}
}
@Override
public void render(float delta) {
handleInput(dt);
handleInput(dt);
handleInput(dt);
//handle everything else down here
}
Are there any other ways to handle input at the speed of the user?