NEOLearn

Input examples

The engine's input examples: what each one shows, whether it runs in a browser and the command that runs it.

Updated October 20, 2026

On this page

Keyboard, mouse, gamepads, touch, text input and IME. There are 12 examples on this page. For the concepts behind them, see Input.

Run any of them from the engine core's workspace (the folder of the engine source that holds the neo crate's Cargo.toml); see Run an example.

Examples#

ExampleWhat it showsWebRun
Char Input EventsPrints out all chars as they are inputtedNocargo run --example char_input_events
Gamepad InputShows handling of gamepad input, connections, and disconnectionsNocargo run --example gamepad_input
Gamepad Input EventsIterates and prints gamepad input and connection eventsNocargo run --example gamepad_input_events
Gamepad RumbleShows how to rumble a gamepad using force feedbackNocargo run --example gamepad_rumble
Keyboard InputDemonstrates handling a key press/releaseNocargo run --example keyboard_input
Keyboard Input EventsPrints out all keyboard eventsNocargo run --example keyboard_input_events
Keyboard ModifiersDemonstrates using key modifiers (ctrl, shift)Nocargo run --example keyboard_modifiers
Mouse GrabDemonstrates how to grab the mouse, locking the cursor to the app's screenNocargo run --example mouse_grab
Mouse InputDemonstrates handling a mouse button press/releaseNocargo run --example mouse_input
Mouse Input EventsPrints out all mouse events (buttons, movement, etc.)Nocargo run --example mouse_input_events
Touch InputDisplays touch presses, releases, and cancelsNocargo run --example touch_input
Touch Input EventsPrints out all touch inputsNocargo run --example touch_input_events

See also#