Not sure if I understand your question clearly. I'll assume the following:
- You got a Stage set as InputProcessor
- You got another special button as InputProcessor which you refer to as "device back button"
- You want them both to process input but it seems you can only set 1 InputProcessor at a time
If above is the case, then one way is to use an InputMultiplexerInputMultiplexer which is apart of libgdx.
First, create an InputMultiplexer.
Then, set it as the InputProccessor.
Add your two InputProcessors to the InputMultiplexer: back button, then stage in this order.
- If you return false in back button event handlers, then the event gets passed to stage as well.
- If you return true in back button event handlers, then events do not get raised in stage.