Lines Matching refs:win32
261 if (js->win32.device)
263 IDirectInputDevice8_Unacquire(js->win32.device);
264 IDirectInputDevice8_Release(js->win32.device);
267 _glfw_free(js->win32.objects);
362 if (memcmp(&js->win32.guid, &di->guidInstance, sizeof(GUID)) == 0)
370 if (FAILED(IDirectInput8_CreateDevice(_glfw.win32.dinput8.api,
480 js->win32.device = device;
481 js->win32.guid = di->guidInstance;
482 js->win32.objects = data.objects;
483 js->win32.objectCount = data.objectCount;
498 if (_glfw.win32.xinput.instance)
512 _glfw.joysticks[jid].win32.device == NULL &&
513 _glfw.joysticks[jid].win32.index == index)
533 js->win32.index = index;
539 if (_glfw.win32.dinput8.api)
541 if (FAILED(IDirectInput8_EnumDevices(_glfw.win32.dinput8.api,
575 if (_glfw.win32.dinput8.instance)
577 if (FAILED(DirectInput8Create(_glfw.win32.instance,
580 (void**) &_glfw.win32.dinput8.api,
600 if (_glfw.win32.dinput8.api)
601 IDirectInput8_Release(_glfw.win32.dinput8.api);
606 if (js->win32.device)
612 IDirectInputDevice8_Poll(js->win32.device);
613 result = IDirectInputDevice8_GetDeviceState(js->win32.device,
618 IDirectInputDevice8_Acquire(js->win32.device);
619 IDirectInputDevice8_Poll(js->win32.device);
620 result = IDirectInputDevice8_GetDeviceState(js->win32.device,
634 for (i = 0; i < js->win32.objectCount; i++)
636 const void* data = (char*) &state + js->win32.objects[i].offset;
638 switch (js->win32.objects[i].type)
703 result = XInputGetState(js->win32.index, &xis);