Commit MetaInfo

Revisãoc2c70ce871766eb23a1df1a8569a30e25aa166dd (tree)
Hora2020-03-14 05:26:16
AutorDavid Ludwig <dludwig@pobo...>
CommiterDavid Ludwig

Mensagem de Log

vjoy: documented connection to SDL_JoystickUpdate

Mudança Sumário

Diff

diff -r 27166fe5be6a -r c2c70ce87176 include/SDL_joystick.h
--- a/include/SDL_joystick.h Fri Mar 13 12:41:58 2020 -0400
+++ b/include/SDL_joystick.h Fri Mar 13 16:26:16 2020 -0400
@@ -223,6 +223,12 @@
223223
224224 /**
225225 * Set values on an opened, virtual-joystick's controls.
226+ * Please note that values will not be applied until
227+ * SDL_JoystickUpdate is called either directly, or
228+ * indirectly through any of the following: SDL_PumpEvents,
229+ * SDL_PollEvent, SDL_WaitEventTimeout, and SDL_WaitEvent,
230+ * among others.
231+ *
226232 * Returns 0 on success, -1 on error.
227233 */
228234 extern DECLSPEC int SDLCALL SDL_JoystickSetVirtualAxis(SDL_Joystick * joystick, int axis, Sint16 value);
Show on old repository browser