Skip to content
modkitv0.2

Input system demonstration

← All examples09_input

Demonstrates BOTH input approaches: 1. Polling (mk_key_down, mk_mouse_position, mk_gamepad_down, etc.) 2. Callback (input_cb in mk_app_desc) Controls: - WASD / Arrow keys / Left stick / D-pad: Move the player - Space / Left mouse / Touch / A button: "Jump" action - F1: Toggle a high-priority UI map that consumes Space/A - Mouse wheel / Right trigger: Zoom in/out - Tab: Toggle mouse capture - R / Start: Reset player position - B button: Rumble test - ESC / Q: Quit

Input system demonstration

Runs the WebAssembly build on this page. Click the canvas to give it keyboard focus.

Number
9
Tags
input
Source
examples/09_input/main.c

Build and run

./scripts/build-linux.sh release --target=09_input --run