blackberry/GamePlay — pull request #330 by kcunney (2012-08-10 20:51:18+00:00)
Title: Adds XBOX 360 Controller support for PlatformWin32

Adds support for XInput gamepads for PlatformWin32

Adds the following APIS to tbe Platform class:
static unsigned int getGamepadCount(); // Maybe rename this.. to.. checkGamepadAttachments()????
static bool isGamepadAttached(unsigned int gamepadHandle);
static const char* getGamepadId(unsigned int gamepadHandle);
static unsigned int getGamepadButtonCount(unsigned int gamepadHandle);
static bool getGamepadButtonState(unsigned int gamepadHandle, unsigned int buttonIndex);
static unsigned int getGamepadJoystickCount(unsigned int gamepadHandle);
static bool isGamepadJoystickActive(unsigned int gamepadHandle, unsigned int joystickIndex);
static float getGamepadJoystickXAxis(unsigned int gamepadHandle, unsigned int joystickIndex);
static float getGamepadJoystickYAxis(unsigned int gamepadHandle, unsigned int joystickIndex);
static void getGamepadJoystickValue(unsigned int gamepadHandle, unsigned int joystickIndex, Vector2* value);
static unsigned int getGamepadTriggerCount(unsigned int gamepadHandle);
static float getGamepadTriggerValue(unsigned int gamepadHandle, unsigned int triggerIndex);

Adds the following APIs to the Gamepad class:
float getJoystickXAxis(unsigned int joystickId) const;
float getJoystickYAxis(unsigned int joystickId) const;

Adds the following APIs to the Game class:
unsigned int getAttachedGamepads();

Removes commented code from the Container class.

Adds the following APIs to the Control class:
void setWidth(float width)
void setHeight(float height)

Adds the following APIs to the RadioButton class:
void setSelected(bool selected)
void setGroupId(const char* id)
const char* getGroupId() const

Fixes bug where newly constructed RadioButton in RadioButton::create(const char* id, Theme::Style* style) was not being added to the static collection of RadioButtons.