input: reworked input to make the platform do less work.
authorLukas Krickl <lukas@krickl.dev>
Mon, 2 Mar 2026 04:00:47 +0000 (05:00 +0100)
committerLukas Krickl <lukas@krickl.dev>
Mon, 2 Mar 2026 04:00:47 +0000 (05:00 +0100)
commitf31de1c66a21ad09e4fac8730c31d16240135894
treee0ebd9a78b53f7cf96b316639c0867dedbb550a6
parent0627f1345d441f1774d8bf8073e83f3a286e4a28
input: reworked input to make the platform do less work.

Inputs are now polled based on action entries and the platform simply
has to accept a call of the core code for each action.
Actions now contain a generic scan code and device id to allow the
backend to decide which device to poll.
The device id is opaque. The platform may decide what it means.
src/i_input.c
src/i_input.h
src/p_platform.h
src/p_r_sdl/p_window.c