include/SDL_haptic.h
changeset 10430 dc59df175689
parent 9998 f67cf37e9cd4
child 10638 d11daa346140
     1.1 --- a/include/SDL_haptic.h	Sat Oct 01 13:33:32 2016 -0700
     1.2 +++ b/include/SDL_haptic.h	Sat Oct 01 13:35:36 2016 -0700
     1.3 @@ -149,7 +149,7 @@
     1.4   *
     1.5   *  \sa SDL_HapticCondition
     1.6   */
     1.7 -#define SDL_HAPTIC_CONSTANT   (1<<0)
     1.8 +#define SDL_HAPTIC_CONSTANT   (1u<<0)
     1.9  
    1.10  /**
    1.11   *  \brief Sine wave effect supported.
    1.12 @@ -158,7 +158,7 @@
    1.13   *
    1.14   *  \sa SDL_HapticPeriodic
    1.15   */
    1.16 -#define SDL_HAPTIC_SINE       (1<<1)
    1.17 +#define SDL_HAPTIC_SINE       (1u<<1)
    1.18  
    1.19  /**
    1.20   *  \brief Left/Right effect supported.
    1.21 @@ -169,7 +169,7 @@
    1.22   * \warning this value was SDL_HAPTIC_SQUARE right before 2.0.0 shipped. Sorry,
    1.23   *          we ran out of bits, and this is important for XInput devices.
    1.24   */
    1.25 -#define SDL_HAPTIC_LEFTRIGHT     (1<<2)
    1.26 +#define SDL_HAPTIC_LEFTRIGHT     (1u<<2)
    1.27  
    1.28  /* !!! FIXME: put this back when we have more bits in 2.1 */
    1.29  /* #define SDL_HAPTIC_SQUARE     (1<<2) */
    1.30 @@ -181,7 +181,7 @@
    1.31   *
    1.32   *  \sa SDL_HapticPeriodic
    1.33   */
    1.34 -#define SDL_HAPTIC_TRIANGLE   (1<<3)
    1.35 +#define SDL_HAPTIC_TRIANGLE   (1u<<3)
    1.36  
    1.37  /**
    1.38   *  \brief Sawtoothup wave effect supported.
    1.39 @@ -190,7 +190,7 @@
    1.40   *
    1.41   *  \sa SDL_HapticPeriodic
    1.42   */
    1.43 -#define SDL_HAPTIC_SAWTOOTHUP (1<<4)
    1.44 +#define SDL_HAPTIC_SAWTOOTHUP (1u<<4)
    1.45  
    1.46  /**
    1.47   *  \brief Sawtoothdown wave effect supported.
    1.48 @@ -199,7 +199,7 @@
    1.49   *
    1.50   *  \sa SDL_HapticPeriodic
    1.51   */
    1.52 -#define SDL_HAPTIC_SAWTOOTHDOWN (1<<5)
    1.53 +#define SDL_HAPTIC_SAWTOOTHDOWN (1u<<5)
    1.54  
    1.55  /**
    1.56   *  \brief Ramp effect supported.
    1.57 @@ -208,7 +208,7 @@
    1.58   *
    1.59   *  \sa SDL_HapticRamp
    1.60   */
    1.61 -#define SDL_HAPTIC_RAMP       (1<<6)
    1.62 +#define SDL_HAPTIC_RAMP       (1u<<6)
    1.63  
    1.64  /**
    1.65   *  \brief Spring effect supported - uses axes position.
    1.66 @@ -218,7 +218,7 @@
    1.67   *
    1.68   *  \sa SDL_HapticCondition
    1.69   */
    1.70 -#define SDL_HAPTIC_SPRING     (1<<7)
    1.71 +#define SDL_HAPTIC_SPRING     (1u<<7)
    1.72  
    1.73  /**
    1.74   *  \brief Damper effect supported - uses axes velocity.
    1.75 @@ -228,7 +228,7 @@
    1.76   *
    1.77   *  \sa SDL_HapticCondition
    1.78   */
    1.79 -#define SDL_HAPTIC_DAMPER     (1<<8)
    1.80 +#define SDL_HAPTIC_DAMPER     (1u<<8)
    1.81  
    1.82  /**
    1.83   *  \brief Inertia effect supported - uses axes acceleration.
    1.84 @@ -238,7 +238,7 @@
    1.85   *
    1.86   *  \sa SDL_HapticCondition
    1.87   */
    1.88 -#define SDL_HAPTIC_INERTIA    (1<<9)
    1.89 +#define SDL_HAPTIC_INERTIA    (1u<<9)
    1.90  
    1.91  /**
    1.92   *  \brief Friction effect supported - uses axes movement.
    1.93 @@ -248,14 +248,14 @@
    1.94   *
    1.95   *  \sa SDL_HapticCondition
    1.96   */
    1.97 -#define SDL_HAPTIC_FRICTION   (1<<10)
    1.98 +#define SDL_HAPTIC_FRICTION   (1u<<10)
    1.99  
   1.100  /**
   1.101   *  \brief Custom effect is supported.
   1.102   *
   1.103   *  User defined custom haptic effect.
   1.104   */
   1.105 -#define SDL_HAPTIC_CUSTOM     (1<<11)
   1.106 +#define SDL_HAPTIC_CUSTOM     (1u<<11)
   1.107  
   1.108  /* @} *//* Haptic effects */
   1.109  
   1.110 @@ -268,7 +268,7 @@
   1.111   *
   1.112   *  \sa SDL_HapticSetGain
   1.113   */
   1.114 -#define SDL_HAPTIC_GAIN       (1<<12)
   1.115 +#define SDL_HAPTIC_GAIN       (1u<<12)
   1.116  
   1.117  /**
   1.118   *  \brief Device can set autocenter.
   1.119 @@ -277,7 +277,7 @@
   1.120   *
   1.121   *  \sa SDL_HapticSetAutocenter
   1.122   */
   1.123 -#define SDL_HAPTIC_AUTOCENTER (1<<13)
   1.124 +#define SDL_HAPTIC_AUTOCENTER (1u<<13)
   1.125  
   1.126  /**
   1.127   *  \brief Device can be queried for effect status.
   1.128 @@ -286,7 +286,7 @@
   1.129   *
   1.130   *  \sa SDL_HapticGetEffectStatus
   1.131   */
   1.132 -#define SDL_HAPTIC_STATUS     (1<<14)
   1.133 +#define SDL_HAPTIC_STATUS     (1u<<14)
   1.134  
   1.135  /**
   1.136   *  \brief Device can be paused.
   1.137 @@ -294,7 +294,7 @@
   1.138   *  \sa SDL_HapticPause
   1.139   *  \sa SDL_HapticUnpause
   1.140   */
   1.141 -#define SDL_HAPTIC_PAUSE      (1<<15)
   1.142 +#define SDL_HAPTIC_PAUSE      (1u<<15)
   1.143  
   1.144  
   1.145  /**