Skip to content

Commit

Permalink
Fixed haptic documentation typos (thanks, Elias!).
Browse files Browse the repository at this point in the history
Partially fixes Bugzilla #2701.
  • Loading branch information
icculus committed Sep 17, 2014
1 parent 4544343 commit 266c002
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/SDL_haptic.h
Expand Up @@ -492,7 +492,7 @@ typedef struct SDL_HapticConstant
* over time. The type determines the shape of the wave and the parameters
* determine the dimensions of the wave.
*
* Phase is given by hundredth of a cycle meaning that giving the phase a value
* Phase is given by hundredth of a degree meaning that giving the phase a value
* of 9000 will displace it 25% of its period. Here are sample values:
* - 0: No phase displacement.
* - 9000: Displaced 25% of its period.
Expand Down Expand Up @@ -555,7 +555,7 @@ typedef struct SDL_HapticPeriodic
Uint16 period; /**< Period of the wave. */
Sint16 magnitude; /**< Peak value. */
Sint16 offset; /**< Mean value of the wave. */
Uint16 phase; /**< Horizontal shift given by hundredth of a cycle. */
Uint16 phase; /**< Horizontal shift given by hundredth of a degree. */

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

0 comments on commit 266c002

Please sign in to comment.