mirror of
https://github.com/libretro/Play-.git
synced 2024-11-28 03:00:49 +00:00
40 lines
486 B
C++
40 lines
486 B
C++
#pragma once
|
|
|
|
#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,
|
|
L3,
|
|
R1,
|
|
R2,
|
|
R3,
|
|
MAX_BUTTONS
|
|
};
|
|
|
|
static const char* m_buttonName[MAX_BUTTONS];
|
|
|
|
static bool IsAxis(BUTTON);
|
|
};
|
|
};
|