Caputuring Keyboard input without nifty GUI controls?

Hi there,



I’m trying to make keyboard events for all visible keys + Space + Enter to be captured by a single method, however I’m not sure how to go about this. Effectively I want to make a ‘text field’.



Can anyone point me in the right direction please, because I’ve been reading up on here https://wiki.jmonkeyengine.org/legacy/doku.php/jme3:advanced:input_handling and it doesn’t look like it will work for my use-case.



Thanks in advance.

http://hub.jmonkeyengine.org/javadoc/com/jme3/input/RawInputListener.html

http://hub.jmonkeyengine.org/javadoc/com/jme3/input/InputManager.html#addRawInputListener(com.jme3.input.RawInputListener)

1 Like

Sweetness, thanks @pspeed