2015-09-23 04:43:51 +00:00
|
|
|
#pragma once
|
2008-08-24 21:28:42 +00:00
|
|
|
|
2012-04-05 02:46:13 +00:00
|
|
|
#include "Types.h"
|
|
|
|
|
2008-08-24 21:28:42 +00:00
|
|
|
namespace PS2
|
|
|
|
{
|
2012-04-05 02:46:13 +00:00
|
|
|
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,
|
2015-09-23 05:30:01 +00:00
|
|
|
L3,
|
2012-04-05 02:46:13 +00:00
|
|
|
R1,
|
|
|
|
R2,
|
2015-09-23 05:30:01 +00:00
|
|
|
R3,
|
2012-04-05 02:46:13 +00:00
|
|
|
MAX_BUTTONS
|
|
|
|
};
|
|
|
|
|
2018-04-30 20:01:23 +00:00
|
|
|
static const char* m_buttonName[MAX_BUTTONS];
|
2008-08-24 21:28:42 +00:00
|
|
|
|
2018-04-30 20:01:23 +00:00
|
|
|
static bool IsAxis(BUTTON);
|
2012-04-05 02:46:13 +00:00
|
|
|
};
|
2008-08-24 21:28:42 +00:00
|
|
|
};
|