File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change 29
29
* instead.
30
30
*
31
31
* The term "instance_id" is the current instantiation of a joystick device in
32
- * the system, if the joystick is removed and then re-inserted then it will
33
- * get a new instance_id, instance_id's are monotonically increasing
32
+ * the system. If the joystick is removed and then re-inserted then it will
33
+ * get a new instance_id. instance_id's are monotonically increasing
34
34
* identifiers of a joystick plugged in.
35
35
*
36
36
* The term "player_index" is the number assigned to a player on a specific
48
48
* If you would like to receive joystick updates while the application is in
49
49
* the background, you should set the following hint before calling
50
50
* SDL_Init(): SDL_HINT_JOYSTICK_ALLOW_BACKGROUND_EVENTS
51
+ *
52
+ * SDL can provide virtual joysticks as well: the app defines an imaginary
53
+ * controller with SDL_AttachVirtualJoystick(), and then can provide inputs
54
+ * for it via SDL_SetJoystickVirtualAxis(), SDL_SetJoystickVirtualButton(),
55
+ * etc. As this data is supplied, it will look like a normal joystick to SDL,
56
+ * just not backed by a hardware driver. This has been used to make unusual
57
+ * devices, like VR headset controllers, look like normal joysticks, or
58
+ * provide recording/playback of game inputs, etc.
51
59
*/
52
60
53
61
#ifndef SDL_joystick_h_
You can’t perform that action at this time.
0 commit comments