This is a library that provides resolution-independent images for game controller inputs, so games can show the correct visual markers for the gamepad in the user's hand.
This is intended, for example, to let you show a "Press
image to continue" message, where image might
be a yellow 'Y' if the user has an Xbox controller and a green triangle
if they have a PlayStation controller. It is intended to work with
whatever looks like a gamepad to SDL3, but it requires artwork, in SVG
format, for whatever controller the user happens to be using. The
standard ones--Xbox, PlayStation, Switch--are supplied, and if we can't
offer anything better, we'll aim for a generic Xbox 360 controller,
under the assumption it probably represents most generic
third-party devices.
ControllerImage depends on SDL3.
Using the library is simple:
You will need a datafile, which you can build from the files that come with the library's source code. Please see README.md in the root of the source tree, or the wiki for the details on how to do that.