First, this is not meant for any FTC competition. I am just looking at some projects for my class.
Does anybody know how to use just a normal PC/USB style controller (like a joystick) with the driver hub? I assume reading x and y isn’t an issue but if it doesn’t have the “option” button and a or b then how I don’t know how you would set the gamepad number to use it. If it helps, I only need one controller connected. Any ideas?
Let’s first discuss gamepads. There’s virtually no such thing as a “generic” USB gamepad any more - all USB gamepads require a driver of some kind, and Windows/PC OS’s contain more drivers than Android does. We have additional user mode drivers developed by the FTC Tech Team to support the gamepads we want to support (like the Logitech, PS4, PS5, etc). The real question is whether or not the gamepad you want to use has a built-in driver in the Android version used by the Driver Hub.
Now that we have that out of the way, if the gamepads are plugged in and supported, you should be able to go to the advanced gamepad menu in the settings menu through the kebab (three dots) and set the gamepad association (which gamepad is user1). I’m not currently at my system with my driver hub right now, but I’m fairly confident this is the answer. I’ll try it myself once I get back.
EDIT: Yup. If you go to:
3-Dots → Settings → Advanced Gamepad Features
On the right-hand side of the output screen you have User1 and User2 settings where if you tap the User1 and/or User2 you can then just press “any” button on a gamepad and set that gamepad as User1 or User2 by default (and it records that gamepad’s serial number). That way that specific gamepad won’t need to press START-A or START-B to be assigned.