Home › Forums › PS2X PlayStation 2 Controller Library Support Forum › All buttons on controller sending "255"
- This topic has 7 replies, 3 voices, and was last updated 12 years, 10 months ago by Anonymous.
-
AuthorPosts
-
December 12, 2012 at 9:04 am #1717AnonymousInactive
First off I would like to thank you for this fantastic library! I am part of my high-school’s ROV program and we will be using this to control our ROV. Now, I have a problem where the analog sticks work fine, but all other buttons are registering as 255 (full on?) Is this just my controller? I can’t check it with a PS2 because I cut the connector off.
Thanks,
Austin Bartz
December 17, 2012 at 3:23 pm #1724AnonymousInactiveWhich controller are you using? I bought a new one from gamestop here in town. My wires had a different color code, and I used a 10k resistor between data and Vcc, My buttons work fine, and report from 0 to 255, but my analog sticks only report values If I have R1 or L1 buttons pressed in. I wonder if both our issues are related to using a resistor on each of the wires as decsribed in the troubleshooting section.. I would like to try but i dont have the proper resistors right now.
December 17, 2012 at 3:56 pm #1725AnonymousInactiveI am using an official Sony Dualshock 2 controller with the 10k resistor as a pull-up for the data line.
December 17, 2012 at 4:36 pm #1726AnonymousInactiveWell I just took a better look at the example code I am using, and the problem I’m having is actually written into the code when either R1 or L1 are pressed it will show stick values.
Are you using your own code? If you are maybe you could try running the example code to see if that reports the pressure values correctly.
December 24, 2012 at 12:29 pm #1731BillMemberHmm, everything working fine but button pressures are always 255? Since you are using an official sony controller, my only guess is the controller is just bad. Hopefully button pressures were something you needed. I can tell you even when they do work, they are very twitchy and not consistent, so you aren’t missing out on much.
December 24, 2012 at 1:51 pm #1742AnonymousInactiveI don’t need button pressure, just on or off. But they are all registering as on all the time even when they are never pressed. So with the example code the vibrate motor is always going full and the stick values are being printed. I am starting to think that it is a bad controller so I will try a different one, but this time I am not cutting the cord, that was just a huge pain in the arse to get all the leads soldered with out breaking.
December 24, 2012 at 1:54 pm #1743BillMemberIf you want just on and off, you should not be looking at the analog values. There’s a seperate data call for the digital (on/off) values.
Use
ps2x.Button(PSB_PAD_LEFT)
Not
ps2x.Analog(PSAB_PAD_LEFT)
December 24, 2012 at 1:55 pm #1744AnonymousInactiveThank you! When I get back I will try that and report here.
-
AuthorPosts
- You must be logged in to reply to this topic.






