input: Added basic input mapping system from platform backend to engine
authorLukas Krickl <lukas@krickl.dev>
Sun, 1 Mar 2026 15:04:29 +0000 (16:04 +0100)
committerLukas Krickl <lukas@krickl.dev>
Sun, 1 Mar 2026 15:04:29 +0000 (16:04 +0100)
commit1f287b473ac9ce4c0cb04cbc4d9a48e34024c846
treed47bca9f7558d5937152d29c48f72648193d4cdc
parent6b126a84c3b332e18e6b7c0a15b286617b5ad4b5
input: Added basic input mapping system from platform backend to engine

This allows a generic action struct to keep the user input state.
The platform is currently in charge of setting the button states based
on scan codes and modifier keys.
A history of previous states is kept to allow detection of keys being
just pressed or held.
Added mouse cursor postion.
src/i_input.c
src/i_input.h
src/lrts.c
src/p_platform.h
src/p_r_sdl/p_window.c