How to get SNES controller to work in C++

I just wanted to ask how would you implement a SNES control into the robot. For my team, we are thinking of using the buttons on the SNES to control the power output on our fly-wheel shooting mechanism.
P.S: our SNES controller is already wired with a USB

Does it show up as a joystick in the Driver Station? If so you should be able to use it as you would any other controller.

I’ve been toying around with the same idea for a DS, but using a gamecube controller, so it comes down to a few things.

  1. The driver station needs it to be a joystick input, so you can’t use it if you’re mapping to a keyboard or mouse.
  2. It has to be seen in the driver station and mapped to correct inputs in code.
  3. It has to work.

You can use either a SNES->USB controller adapter like the plethora on Amazon, or buy a “USB SNES controller” or something to the like to get it easily showing up as input to your driver station.

Best of luck!

Thanks for the reply, the controller did show in the DS as a joystick, so do we just treat it as a joystick when we are programming it?

Yes, it should work. You can go to the USB section of the DS (fourth option on the left side) and click on the SNES controller. Then move the sticks, press buttons etc to figure out which axes and buttons you need to refer to in the program.