acmerobotics / ftc-dashboard

React-based web dashboard designed for FTC
https://acmerobotics.github.io/ftc-dashboard
Other
171 stars 129 forks source link

[Feature Request] Add keyboard gamepad emulation #59

Open 12buntu opened 3 years ago

12buntu commented 3 years ago

Hey, I'm not sure if this is even technically possible, I haven't really looked at the code, but it would be really cool if the keyboard could emulate gamepad button presses when viewing FTC dashboard.

Sam948-byte commented 2 years ago

I think it should be since all you would have to do is map some of the gamepad keys to the controller values. I'm going to take a look and see what I can find.

Edit: I might be wrong, but I think what you would have to do is add a new case on gamepadMiddleware.ts There's probably some other stuff you would have to change as well, but that would be where I would start.

wangxdflight commented 1 year ago

That would be a very cool feature if it is available. Most of the time of my working with FTC SW, I just use an android phone and dashboard (to launch opModes). The only limitation I feel has been the lack of gamepad. I thought of adding a customized gamepad implementation in FTC teamcode, and it can receive commands via network socket from another JAVA GUI app. It would be much better if gamepad inputs can be directly generated from buttons on the dashboard.