Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Joystick: improve custom (SVG) support #618

Open
3 tasks
ES-Alexander opened this issue Dec 5, 2023 · 0 comments
Open
3 tasks

Joystick: improve custom (SVG) support #618

ES-Alexander opened this issue Dec 5, 2023 · 0 comments
Labels
new-feature Something Cockpit does not do yet ux Has to do with the user experience

Comments

@ES-Alexander
Copy link
Contributor

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
      1. put in an SVG of just their controller
      2. select line elements that define a button
      3. add a multi-segment label line with corresponding label text
      4. 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
@ES-Alexander ES-Alexander added ux Has to do with the user experience new-feature Something Cockpit does not do yet labels Dec 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new-feature Something Cockpit does not do yet ux Has to do with the user experience
Projects
None yet
Development

No branches or pull requests

1 participant