Download the PHP package dept-of-scrapyard-robotics/sdl3-input without Composer
On this page you can find all versions of the php package dept-of-scrapyard-robotics/sdl3-input. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download dept-of-scrapyard-robotics/sdl3-input
More information about dept-of-scrapyard-robotics/sdl3-input
Files in dept-of-scrapyard-robotics/sdl3-input
Package sdl3-input
Short Description SDL3 keyboard, mouse, touch, and game controller inputs for ScrapyardIO
License MIT
Homepage https://dosr.projectsaturnstudios.com
Informations about the package sdl3-input
SDL3 Input
Poll-based SDL3 keyboard, mouse, touch, and game-controller circuits for ScrapyardIO.
SDLInputEventHub is the sole owner of SDL's global event queue. Poll the hub (or any
of its circuit-backed inputs) once per frame. It fans each event out to the relevant
stateful input and to optional listeners before freeing it.
Circuit aliases:
sdl3-inputsdl3-keyboardsdl3-mousesdl3-touchsdl3-game-controller
Display gating
Sketches and the shared display event-pump bridge activate only when
dept-of-scrapyard-robotics/sdl3-display is installed. Alone, this package
registers circuits/actuators but does not open windows or steal the SDL queue
from a display.
When both packages are present, display presentation pumps through the shared owner and cannot steal keyboard, pointer, touch, or controller events.
Controller notes (ext-sdl3 0.5)
sdl3-display only boots SDL_INIT_VIDEO. The hub calls
Init::initSubSystem(SDL_INIT_GAMEPAD) on poll, syncs already-connected pads,
and samples sticks/buttons via Gamepad::getGamepadAxis /
Gamepad::getGamepadButton.
ext-sdl3's SDLReadEvent does not implement jdevice / gdevice / gaxis
/ gbutton (unsupported keys free the event and throw). Joystick/gamepad
queue events are decoded from getEventDescription() instead.
Visual demos
Each demo opens an SDL3 windowed UI via Visual::display('windowed', 'sdl3')
and renders live device state plus a recent-event log. Close the window or
press Ctrl+C to stop.
Run the package suite from this directory with:
All versions of sdl3-input with dependencies
ext-sdl3 Version ^0.5.0
fabricate/actuation Version ^0.6.0
fabricate/circuits Version ^0.6.0
fabricate/contracts Version ^0.6.0
fabricate/nuts-and-bolts Version ^0.6.0
fabricate/sketches Version ^0.6.0
microscrap/sdl3 Version ^0.5.0
waveforms/input Version ^0.6.0