Overview
- Object ID : 2244 (2013-10-12)
- Author : Kristian Charboneau | added by Archiver
- Content : Code
- Microcontroller : Propeller 1
- Language : SPIN
- Categories : Fun, Human Input
- Licence : Other
Content
PS2Wrapper provides a simple spin interface around Juan Carlos Orozco's Play Station 2 Controller driver. Each button has its own method which returns 1 or 0 and each joystick axis has its own method which returns a decimal (0 to 255)_. Object can now detect multiple buttons within same group being pressed at the same time. Also added a stop routine. Changes: Switched from using string conversion and comparison to bitwise & operator, also removed several unnecessary methods