Skip to content

Commit

Permalink
Fixed bug 2766 - Haptic coding bugs and fixes for Linux FF: periodic.…
Browse files Browse the repository at this point in the history
…phase handled as time instead of angle; + direction clarification

Elias Vanderstuyft

"Horizontal" is not very precise, use "Positive phase" instead.
"Positive" because it's actually waveform(2*pi*t + phase) instead of waveform(2*pi*t - phase).
  • Loading branch information
slouken committed Nov 29, 2014
1 parent ef8c3d8 commit a5ce9c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/SDL_haptic.h
Expand Up @@ -558,7 +558,7 @@ typedef struct SDL_HapticPeriodic
Uint16 period; /**< Period of the wave. */
Sint16 magnitude; /**< Peak value; if negative, equivalent to 180 degrees extra phase shift. */
Sint16 offset; /**< Mean value of the wave. */
Uint16 phase; /**< Horizontal shift given by hundredth of a degree. */
Uint16 phase; /**< Positive phase shift given by hundredth of a degree. */

/* Envelope */
Uint16 attack_length; /**< Duration of the attack. */
Expand Down

0 comments on commit a5ce9c1

Please sign in to comment.