mirror of
https://github.com/glfw/glfw.git
synced 2026-09-21 08:39:45 +00:00
Clarify requirements for receiving joystick events
As of c5694b3013 this is now consistent
enough across platforms to describe.
Fixes #887.
[ci skip]
This commit is contained in:
@@ -590,6 +590,12 @@ void joystick_callback(int jid, int event)
|
||||
}
|
||||
@endcode
|
||||
|
||||
For joystick connection and disconnection events to be delivered on all
|
||||
platforms, you need to call one of the [event processing](@ref events)
|
||||
functions. Joystick disconnection may also be detected and the callback
|
||||
called by joystick functions. The function will then return whatever it
|
||||
returns for a disconnected joystick.
|
||||
|
||||
|
||||
@section time Time input
|
||||
|
||||
|
||||
Reference in New Issue
Block a user