Don't export PumpButtonNames; compact the header a bit.
This commit is contained in:
@@ -36,7 +36,7 @@
|
|||||||
|
|
||||||
RageInput* INPUTMAN = NULL; // globally accessable input device
|
RageInput* INPUTMAN = NULL; // globally accessable input device
|
||||||
|
|
||||||
const char *PumpButtonNames[] = {
|
static const char *PumpButtonNames[] = {
|
||||||
"UL", "UR", "MID", "DL", "DR", "Esc",
|
"UL", "UR", "MID", "DL", "DR", "Esc",
|
||||||
"P2 UL", "P2 UR", "P2 MID", "P2 DL", "P2 DR"
|
"P2 UL", "P2 UR", "P2 MID", "P2 DL", "P2 DR"
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -36,42 +36,16 @@ enum InputDevice {
|
|||||||
|
|
||||||
// button byte codes for directional pad
|
// button byte codes for directional pad
|
||||||
enum JoystickButton {
|
enum JoystickButton {
|
||||||
JOY_LEFT = 0,
|
JOY_LEFT = 0, JOY_RIGHT, JOY_UP, JOY_DOWN,
|
||||||
JOY_RIGHT,
|
JOY_1, JOY_2, JOY_3, JOY_4, JOY_5, JOY_6, JOY_7, JOY_8, JOY_9, JOY_10,
|
||||||
JOY_UP,
|
JOY_11, JOY_12, JOY_13, JOY_14, JOY_15, JOY_16, JOY_17, JOY_18, JOY_19, JOY_20,
|
||||||
JOY_DOWN,
|
JOY_21, JOY_22, JOY_23, JOY_24,
|
||||||
JOY_1,
|
|
||||||
JOY_2,
|
|
||||||
JOY_3,
|
|
||||||
JOY_4,
|
|
||||||
JOY_5,
|
|
||||||
JOY_6,
|
|
||||||
JOY_7,
|
|
||||||
JOY_8,
|
|
||||||
JOY_9,
|
|
||||||
JOY_10,
|
|
||||||
JOY_11,
|
|
||||||
JOY_12,
|
|
||||||
JOY_13,
|
|
||||||
JOY_14,
|
|
||||||
JOY_15,
|
|
||||||
JOY_16,
|
|
||||||
JOY_17,
|
|
||||||
JOY_18,
|
|
||||||
JOY_19,
|
|
||||||
JOY_20,
|
|
||||||
JOY_21,
|
|
||||||
JOY_22,
|
|
||||||
JOY_23,
|
|
||||||
JOY_24,
|
|
||||||
NUM_JOYSTICK_BUTTONS // leave this at the end
|
NUM_JOYSTICK_BUTTONS // leave this at the end
|
||||||
};
|
};
|
||||||
|
|
||||||
const int NUM_DEVICE_BUTTONS = MAX( MAX( NUM_KEYBOARD_BUTTONS, NUM_JOYSTICK_BUTTONS ),
|
const int NUM_DEVICE_BUTTONS = MAX( MAX( NUM_KEYBOARD_BUTTONS, NUM_JOYSTICK_BUTTONS ),
|
||||||
NUM_PUMP_PAD_BUTTONS );
|
NUM_PUMP_PAD_BUTTONS );
|
||||||
|
|
||||||
extern const char *PumpButtonNames[];
|
|
||||||
|
|
||||||
struct DeviceInput
|
struct DeviceInput
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@@ -164,7 +138,7 @@ public:
|
|||||||
// Initialize DirectInput Resources
|
// Initialize DirectInput Resources
|
||||||
HRESULT Initialize();
|
HRESULT Initialize();
|
||||||
// Release all DirectInput Resources
|
// Release all DirectInput Resources
|
||||||
VOID Release();
|
void Release();
|
||||||
// Get our Devices State
|
// Get our Devices State
|
||||||
HRESULT Update();
|
HRESULT Update();
|
||||||
bool IsBeingPressed( DeviceInput di );
|
bool IsBeingPressed( DeviceInput di );
|
||||||
|
|||||||
Reference in New Issue
Block a user