Decoupling input bindings from game systems with C++/SDL

David Delassus
10 min readJan 25, 2023

This is the 4th devlog of Warmonger Dynasty, a 4X turn-based strategy game made in C++/SDL. If you want to read the previous entries, take a look at my reading list.

When developing a game, you almost certainly want to read inputs from the player. Be it via the mouse, the keyboard, a gamepad, or a touchscreen.

--

--