mirror of
https://github.com/glfw/glfw.git
synced 2026-02-20 22:23:12 +01:00
Win32: Fix message reported by VS 2022
(cherry picked from commit acf0c10e7a)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user