How to handle a event for both key as well as actor added in the screen? My problem is that at a time only one input processor is available either for button or device back button. How can I set input processor for both back button of device and button which act as actor on the screen.
I implemented following code for button input processor Gdx.input.setInputProcessor(stage); button was added in the stage so I implement input processor for the stage.
For device back button Gdx.input.setInputProcessor(this); Register actor as input processor
In keyDown event I write if (keycode == Keys.ESCAPE || keycode == Keys.BACK) LevelLoadScreen.flagResume = true;
Other solution also acceptable if it handle both the action listener