public void addPrimaryListener ( InputListener listener ) { removeListener ( listener ) ; keyListeners . add ( 0 , listener ) ; mouseListeners . add ( 0 , listener ) ; controllerListeners . add ( 0 , listener ) ; allListeners . add ( listener ) ; }
Add a listener to be notified of input events . This listener will get events before others that are currently registered