Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: sf::Joystick DualShock3 Sixaxis Analogue Triggers  (Read 3263 times)

0 Members and 1 Guest are viewing this topic.

kipbits

  • Newbie
  • *
  • Posts: 49
    • View Profile
sf::Joystick DualShock3 Sixaxis Analogue Triggers
« on: December 28, 2015, 01:06:38 am »
Hey all, Happy Holidays!
I'm playing around here with a Dualshock3 Sixaxis controller. I've gotten the basic info following Joystick API, but something does not look right.
Basically, I'm wondering does SFML recognize Dualshock's analogue R2 & L2 triggers?
SFML reports the connected controller as follows:

Joystick 0 is connected! PLAYSTATION(R)3 Controller vendor:1356 product:616
   J0 has X axis!
   J0 has Y axis!
   J0 has Z axis!
   J0 has R axis!
   J0 has 19 buttons
Joystick 1 is NOT connected!
Joystick 2 is NOT connected!
Joystick 3 is NOT connected!
Joystick 4 is NOT connected!
Joystick 5 is NOT connected!
Joystick 6 is NOT connected!
Joystick 7 is NOT connected!

I seam to have both thumbsticks and all the buttons, plus 3 that i havent been able to identify. I was kindof expecting to have minus 2 buttons, replaced by active U&V axes for the triggers. On Wikipedia, it says that Dualshock3 Sixaxis supports 2 analogue sticks and 2 analogue triggers.

I'm wondering if i can get the full functionality for those triggers in SFML?

Thanks
« Last Edit: December 29, 2015, 04:32:20 pm by kipbits »

zsbzsb

  • Hero Member
  • *****
  • Posts: 1409
  • Active Maintainer of CSFML/SFML.NET
    • View Profile
    • My little corner...
    • Email
Re: sf::Joystick DualShock3 Sixaxis Analogue Triggers
« Reply #1 on: December 29, 2015, 09:38:23 pm »
SFML simply reports what it gets from the OS regarding button(s)/axis(s). I wouldn't be surprised if your R2/L2 are reported as one of the buttons.
Motion / MotionNET - Complete video / audio playback for SFML / SFML.NET

NetEXT - An SFML.NET Extension Library based on Thor

Mr_Blame

  • Full Member
  • ***
  • Posts: 192
    • View Profile
    • Email
Re: sf::Joystick DualShock3 Sixaxis Analogue Triggers
« Reply #2 on: January 10, 2016, 02:06:53 pm »
All input apis on pc do not support dualshock 3 or 4 this stuff must emulated using non-standart software.