winzik/skeleton/config/input.yaml
David Nurdin a74fe529a5 Web APIs: WebGL, page lifecycle, phone features, async HTTP, PWA, gamepads
- JsBridge both ways, synchronous with the frames (emscripten pre/postMainLoop);
  hide/close delivered at once between frames (jumphp_events)
- JumPHP\Gl\WebGl: 3D layer composed with the SDL picture (key colour / alpha),
  post-processing shaders, Mat4 (also software 3D on desktop)
- JumPHP\Device\Lifecycle (hide/show/blur/focus/online/offline/resize/close,
  pause_scene, mute when hidden) and Device (vibrate, wake lock, orientation,
  fullscreen, clipboard, tilt/motion, battery)
- JumPHP\Http: async requests (fetch / curl_multi / non-blocking sockets)
- JumPHP\Device\Pwa + sw.js: installable, offline, updates (game.yaml pwa)
- Gamepad: standard button names everywhere (pad0:a, pad0:start...), axes,
  hot-plug, rumble; Gamepad API in the browser
- games/hello-webgl example, docs/api-web.md, AGENTS.md

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-28 09:58:52 +01:00

8 lines
569 B
YAML

# Actions of the game => keys / pad / touch. The engine already defines:
# up, down, left, right, confirm, back, pause (see JumPHP\Kernel\Engine::DEFAULT_ACTIONS)
# Redefining one here replaces its bindings.
# Key names: SDL names (Left, Right, Up, Down, Space, Return, Escape, Left Shift, A..Z, 0..9, F1..F12)
# Other sources: pad0:a|b|x|y|lb|rb|lt|rt|select|start|ls|rs (gamepad, same names everywhere), pad0:left|right|up|down
# (d-pad or left stick), pad0:button3 (raw), touch:left|right|up|down|tap, mouse:1
actions:
jump: [Space, Up, W, Z, pad0:a, touch:tap]