Function glfwSetJoystickCallback

  • This function sets the joystick configuration callback, or removes the currently set callback. This is called when a joystick is connected to or disconnected from the system.

    For joystick connection and disconnection events to be delivered on all platforms, you need to call one of the event processing functions. Joystick disconnection may also be detected and the callback called by joystick functions. The function will then return whatever it returns if the joystick is not present.

    Parameters

    • callback: GLFWjoystickfun

      The new callback, or NULL to remove the currently set callback.

    Returns GLFWjoystickfun

    The previously set callback, or NULL if no callback was set or the library had not been initialized.

Generated using TypeDoc