2010-12-04 16:14:34 +00:00
|
|
|
|
/********************************************************
|
|
|
|
|
* GamePad.h *
|
|
|
|
|
* *
|
|
|
|
|
* XFX GamePad definition file *
|
|
|
|
|
* Copyright <EFBFBD> XFX Team. All Rights Reserved *
|
|
|
|
|
********************************************************/
|
|
|
|
|
#ifndef _XFX_INPUT_GAMEPAD_
|
|
|
|
|
#define _XFX_INPUT_GAMEPAD_
|
|
|
|
|
|
|
|
|
|
#include <Enums.h>
|
|
|
|
|
#include "Enums.h"
|
|
|
|
|
#include "GamePadState.h"
|
|
|
|
|
|
|
|
|
|
namespace XFX
|
|
|
|
|
{
|
|
|
|
|
namespace Input
|
|
|
|
|
{
|
2012-03-29 22:02:43 +00:00
|
|
|
|
// Allows retrieval of user interaction with an XBOX Controller
|
|
|
|
|
// and setting of controller vibration motors.
|
2010-12-04 16:14:34 +00:00
|
|
|
|
class GamePad
|
|
|
|
|
{
|
2010-12-27 01:01:25 +00:00
|
|
|
|
private:
|
|
|
|
|
GamePad(); // Private constructor to prevent instantiation.
|
|
|
|
|
|
2010-12-04 16:14:34 +00:00
|
|
|
|
public:
|
2012-03-29 22:02:43 +00:00
|
|
|
|
static GamePadState GetState(const PlayerIndex_t playerIndex);
|
|
|
|
|
static GamePadState GetState(const PlayerIndex_t playerIndex, const GamePadDeadZone_t deadZoneMode);
|
|
|
|
|
static bool SetVibration(const PlayerIndex_t playerIndex, const float leftMotor, const float rightMotor);
|
2010-12-04 16:14:34 +00:00
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endif //_XFX_INPUT_GAMEPAD_
|