Skip to content
StrongJoshua edited this page Feb 15, 2015 · 3 revisions

Input Processing

The Console does its processing using a Stage. When a Console is instantiated, it first checks whether there is currently an InputProcessor set. If there is, the console creates an InputMultiplexer to which it adds its Stage, followed by the original InputProcessor. If there is no InputProcessor, it makes its Stage the default.

This means that if you change the InputProcessor while a live Console exists you must call console.resetInputProcessing(). To return the default (Gdx.input.getInputProcessor()) InputProcessor to its original state (i.e. before the Console was instantiated) simply call console.dispose() (note that this will cause the Console to become unusable and you will have to create another one to be able to use a Console).

Clone this wiki locally