Play-/Source/ControllerInfo.h
jpd002 23c91b4ef0 Moved PH_DirectInput related files in a PH_DirectInput folder.
Changed the way keyboard/joystick input is processed. PH_DirectInput::InputManager now keeps track of the current state of the buttons and everyone else polls this state.

git-svn-id: http://svn.purei.org/purei/trunk@883 b36208d7-6611-0410-8bec-b1987f11c4a2
2012-04-05 02:46:13 +00:00

41 lines
524 B
C++

#ifndef _CONTROLLERINFO_H_
#define _CONTROLLERINFO_H_
#include "Types.h"
namespace PS2
{
class CControllerInfo
{
public:
enum BUTTON
{
ANALOG_LEFT_X,
ANALOG_LEFT_Y,
ANALOG_RIGHT_X,
ANALOG_RIGHT_Y,
DPAD_UP,
DPAD_DOWN,
DPAD_LEFT,
DPAD_RIGHT,
SELECT,
START,
SQUARE,
TRIANGLE,
CIRCLE,
CROSS,
L1,
L2,
R1,
R2,
MAX_BUTTONS
};
static const char* m_buttonName[MAX_BUTTONS];
static bool IsAxis(BUTTON);
};
};
#endif