blackberry-gaming/GamePlay — pull request #511 by kcunney (2012-06-29 23:06:02+00:00)
Title: Gamepad update.

* Adds the following APIs to the Gamepad class:
unsigned int getButtonCount() const;
unsigned int getJoystickCount() const;
const char* getId() const;
void draw();
void update();
Refactors and cleans up code in Gamepad class.
Removes JOYSTICK_EVENT and BUTTON_EVENT from GamepadEvent
Changes Gamepad class so that it only receives ATTACHED_EVENT and DETACHED_EVENT
No longer implements Control::Listener
Functionally, the Gamepad class can only be polled now. No more button/joystick input events.
Makes bool isContainer() const on Control public.
Refactors Game class
Makes createGamepad() private. Gamepad's can only be created by the system (or specified in a .config) and not dynamically by the developer.