mirror of
https://github.com/libretro/Play-.git
synced 2024-12-13 20:22:25 +00:00
23c91b4ef0
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
41 lines
524 B
C++
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
|