mirror of
https://github.com/glfw/glfw.git
synced 2025-04-08 14:50:34 +00:00
Win32: Fix message reported by VS 2022
(cherry picked from commit acf0c10e7a
)
This commit is contained in:
parent
1b3b2108e3
commit
c8be8606f0
1 changed files with 1 additions and 1 deletions
|
@ -609,7 +609,7 @@ int _glfwPlatformPollJoystick(_GLFWjoystick* js, int mode)
|
|||
{
|
||||
int i, ai = 0, bi = 0, pi = 0;
|
||||
HRESULT result;
|
||||
DIJOYSTATE state;
|
||||
DIJOYSTATE state = {0};
|
||||
|
||||
IDirectInputDevice8_Poll(js->win32.device);
|
||||
result = IDirectInputDevice8_GetDeviceState(js->win32.device,
|
||||
|
|
Loading…
Add table
Reference in a new issue