Hi Craig,
The alpha PS2 controller class is now checked in here:
http://lejos.svn.sourceforge.net/viewvc ... a?view=log
You can click on download or view to get the class. You probably want to compile it in a default directory so comment out the package info at the top.
I would appreciate it if you could test it out and let me know how it goes. A few things I would appreciate are:
- the method names might not be very user friendly so please suggest some if need be.
- I assume analog mode gives a range of joystick values and digital mode makes the joystick on-off. Please let me know what value ranges you get for each of these modes
- The button method returns one short byte which encodes all the button states in the 16 bits of the short value, so you will have to do some bit-math to get the values. Would you prefer a method to return an array of 16 boolean values instead? This might be easier for users.
- Probably this class would benefit from an event-listener since it is a HID device. I'll add this once we confirm the basics are working.
BTW Email me at the link below as it will be quicker than going through the forums.