Lines Matching refs:xis
575 XINPUT_STATE xis; in pollJoystickState() local
594 result = _glfw_XInputGetState(js->index, &xis); in pollJoystickState()
606 if (sqrt((double) (xis.Gamepad.sThumbLX * xis.Gamepad.sThumbLX + in pollJoystickState()
607 xis.Gamepad.sThumbLY * xis.Gamepad.sThumbLY)) > in pollJoystickState()
610 js->axes[0] = (xis.Gamepad.sThumbLX + 0.5f) / 32767.f; in pollJoystickState()
611 js->axes[1] = (xis.Gamepad.sThumbLY + 0.5f) / 32767.f; in pollJoystickState()
619 if (sqrt((double) (xis.Gamepad.sThumbRX * xis.Gamepad.sThumbRX + in pollJoystickState()
620 xis.Gamepad.sThumbRY * xis.Gamepad.sThumbRY)) > in pollJoystickState()
623 js->axes[2] = (xis.Gamepad.sThumbRX + 0.5f) / 32767.f; in pollJoystickState()
624 js->axes[3] = (xis.Gamepad.sThumbRY + 0.5f) / 32767.f; in pollJoystickState()
632 if (xis.Gamepad.bLeftTrigger > XINPUT_GAMEPAD_TRIGGER_THRESHOLD) in pollJoystickState()
633 js->axes[4] = xis.Gamepad.bLeftTrigger / 127.5f - 1.f; in pollJoystickState()
637 if (xis.Gamepad.bRightTrigger > XINPUT_GAMEPAD_TRIGGER_THRESHOLD) in pollJoystickState()
638 js->axes[5] = xis.Gamepad.bRightTrigger / 127.5f - 1.f; in pollJoystickState()
643 js->buttons[i] = (xis.Gamepad.wButtons & buttons[i]) ? 1 : 0; in pollJoystickState()