View Single Post
  #1   Spotlight this post!  
Unread 04-19-2015, 11:53 AM
Cinnamon Toast's Avatar
Cinnamon Toast Cinnamon Toast is offline
Registered User
FRC #3641 (The Flying Toasters)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2013
Location: Michigan
Posts: 32
Cinnamon Toast is an unknown quantity at this point
Button Layout on Dual Shock 4

Hello Everyone,

For the longest time, we have been using the Logitech dual shock controller as our main driving controller.Recently we moved to a PlayStation DualShock 4 controller for ergonomic reasons. So far it's been working great. Via the attached micro USB cable connection (cause sadly we can't use blutooth) control is normal, as the mapping pretty much stayed the same. One thing that we've never used though (and I would like to start using) are the D-pad buttons on the controller. Now, in the driver station they don't recognize as buttons, but rather the POV hat I believe. That being said, I'm not sure that I can reference them they same way I do buttons in code.

gamepad.GetRawButton(some number here)

That's how I would normally reference all the other buttons, but how do I reference the D-pad buttons in C++? I would appreciate any help possible!

-Cinnamon Toast
Reply With Quote