glfw/docs/news.md
2024-04-10 13:39:41 -04:00

1.8 KiB

Release notes for version 3.5

[TOC]

New features

Unlimited mouse buttons

GLFW now has an input mode which allows an unlimited number of mouse buttons to be reported by the mouse buttton callback, rather than just the associated [mouse button tokens](@ref buttons). This allows using mouse buttons with values over 8. For compatibility with older versions, the @ref GLFW_UNLIMITED_MOUSE_BUTTONS input mode needs to be set to make use of this.

Callback functions for gamepad state, joystick buttons, joystick axes, and joystick hat inputs

GLFW now has callback functions for [gamepad state](@ref glfwSetGamepadStateCallback), [joystick buttons](@ref glfwSetJoystickButtonCallback), [joystick axes](@ref glfwSetJoystickAxisCallback), and [joystick hats](@ref glfwSetJoystickHatCallback), allowing for event-based inputs for joysticks and gamepads.

Caveats

Deprecations

Removals

New symbols

New functions

  • @ref glfwSetJoystickButtonCallback
  • @ref glfwSetJoystickAxisCallback
  • @ref glfwSetJoystickHatCallback
  • @ref glfwSetGamepadStateCallback

New types

  • @ref GLFWjoystickbuttonfun
  • @ref GLFWjoystickaxisfun
  • @ref GLFWjoystickhatfun
  • @ref GLFWgamepadstatefun

New constants

  • @ref GLFW_UNLIMITED_MOUSE_BUTTONS

Release notes for earlier versions