fix formatting

This commit is contained in:
Peter Tissen 2014-05-31 20:01:06 +02:00
parent 1024eb7b63
commit 7d25a1591c

View File

@ -36,24 +36,24 @@ public:
private:
void ApplyButtons(DIJOYSTATE2 &state, InputState &input_state);
//unfortunate and unclean way to keep only one DirectInput instance around
static LPDIRECTINPUT8 getPDI();
static LPDIRECTINPUT8 getPDI();
//unfortunate and unclean way to keep track of the number of devices and the
//GUIDs of the plugged in devices. This function will only search for devices
//if none have been found yet and will only list plugged in devices
//also, it excludes the devices that are compatible with XInput
static void getDevices();
static void getDevices();
//callback for the WinAPI to call
static BOOL DevicesCallback(
LPCDIDEVICEINSTANCE lpddi,
LPVOID pvRef
);
static unsigned int pInstances;
static BOOL DevicesCallback(
LPCDIDEVICEINSTANCE lpddi,
LPVOID pvRef
);
static unsigned int pInstances;
static std::vector<DIDEVICEINSTANCE> devices;
static LPDIRECTINPUT8 pDI;
int pDevNum;
static LPDIRECTINPUT8 pDI;
int pDevNum;
LPDIRECTINPUTDEVICE8 pJoystick;
DIJOYSTATE2 pPrevState;
bool analog;
DIJOYSTATE2 pPrevState;
bool analog;
BYTE lastButtons_[128];
WORD lastPOV_[4];
short last_lX_;