It's currently possible to import and export joystick mappings, whereby the virtual joystick button numbers are mapped to element IDs in an SVG file so that it can be used effectively in our configuration interface.
[ ] We should provide detailed documentation of how to create such an SVG and mapping, but
[ ] it would also be helpful to support importing and exporting the SVG files themselves (not just the mappings)
so that people could locally test their custom joystick configurations without needing to build a custom Cockpit version
[ ] Beyond that, it would also be helpful if we provide a tool for convenient creation of those SVGs,
this could be either
a standalone hosted web-app that gets embedded into Cockpit via an iframe (when there's internet access), or
built into Cockpit itself (trading bloat for extra offline convenience)
this should allow the user to
put in an SVG of just their controller
select line elements that define a button
add a multi-segment label line with corresponding label text
add a fillable shape (for when pressed)
ideally we could also support inputting a raster image of a controller, and automatically doing line/edge detection and vectorisation of the result
It's currently possible to import and export joystick mappings, whereby the virtual joystick button numbers are mapped to element IDs in an SVG file so that it can be used effectively in our configuration interface.