Extended: Input Listeners

I’m confused how the input listeners work on extended.

The documentation says " Listener classes have events you can use to subscribe to input events, instead of having to poll for input changes."…

The only events I can see are KeyTyped, KeyPressed and KeyReleased, which are used in the example run an event for any key.

Can I use these input listeners for specific key presses? If so how?

You will need to check if the correct key was pressed:

if (args.Key == Keys.KEY_YOU_ARE_LOOKING_FOR) ...

Ah, Extended… As overcomplicated as ever.

1 Like