Skip to content

[WIP] Feat: Game Controller#20

Draft
aaronjamt wants to merge 5 commits intoMatthewKuKanich:mainfrom
aaronjamt:controller_mod
Draft

[WIP] Feat: Game Controller#20
aaronjamt wants to merge 5 commits intoMatthewKuKanich:mainfrom
aaronjamt:controller_mod

Conversation

@aaronjamt
Copy link

@aaronjamt aaronjamt commented Mar 22, 2026

This PR adds a new option to turn the Flipper into a USB game controller, emulating an Xbox controller. It uses the values sniffed from the vehicle's CAN bus and sends them to the USB host, allowing you to play games such as Forza using "the most realistic car racing sim" (an actual car).

This is a WIP until the following are resolved:

  • It currently uses hardcoded addresses and bit manipulation to compute the output values
  • It currently uses hardcoded controller stick outputs, which may not be compatible with other games
  • The first working commit replaces the USB device for the entire lifecycle of the application, and does not clean up at close.
  • While it does now clean up when closing the Game Controller menu, it currently has to restart the entire Flipper to fully reset the USB stack.
  • Everything past the first commit is currently untested.

Prevents overshoot on the negative end and adds a separate multiplier define
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant