Restore an original struct name
This was buried in the Linux port
This commit is contained in:
parent
d12ee0813f
commit
a2ecd75271
3 changed files with 4 additions and 4 deletions
|
@ -161,7 +161,7 @@ BOOL CALLBACK EnumDevices_Callback(LPCDIDEVICEINSTANCE lpddi, LPVOID pvRef)
|
||||||
return DIENUM_STOP;
|
return DIENUM_STOP;
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOL GetJoystickStatus(JOYSTICK_STATUS *status)
|
BOOL GetJoystickStatus(DIRECTINPUTSTATUS *status)
|
||||||
{
|
{
|
||||||
DIJOYSTATE joystate;
|
DIJOYSTATE joystate;
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
#include "WindowsWrapper.h"
|
#include "WindowsWrapper.h"
|
||||||
|
|
||||||
struct JOYSTICK_STATUS
|
struct DIRECTINPUTSTATUS
|
||||||
{
|
{
|
||||||
BOOL bLeft;
|
BOOL bLeft;
|
||||||
BOOL bRight;
|
BOOL bRight;
|
||||||
|
@ -13,5 +13,5 @@ struct JOYSTICK_STATUS
|
||||||
|
|
||||||
void ReleaseDirectInput(void);
|
void ReleaseDirectInput(void);
|
||||||
BOOL InitDirectInput(HINSTANCE hinst, HWND hWnd);
|
BOOL InitDirectInput(HINSTANCE hinst, HWND hWnd);
|
||||||
BOOL GetJoystickStatus(JOYSTICK_STATUS *status);
|
BOOL GetJoystickStatus(DIRECTINPUTSTATUS *status);
|
||||||
BOOL ResetJoystickStatus(void);
|
BOOL ResetJoystickStatus(void);
|
||||||
|
|
|
@ -775,7 +775,7 @@ BOOL SystemTask(void)
|
||||||
void JoystickProc(void)
|
void JoystickProc(void)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
JOYSTICK_STATUS status;
|
DIRECTINPUTSTATUS status;
|
||||||
|
|
||||||
if (!GetJoystickStatus(&status))
|
if (!GetJoystickStatus(&status))
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Add table
Reference in a new issue