Home | History | Annotate | Download | only in SDL2

Lines Matching defs:direction

81  *    effect.periodic.direction.type = SDL_HAPTIC_POLAR; // Polar coordinates
82 * effect.periodic.direction.dir[0] = 18000; // Force comes from south
306 * \name Direction encodings
311 * \brief Uses polar coordinates for the direction.
318 * \brief Uses cartesian coordinates for the direction.
325 * \brief Uses spherical coordinates for the direction.
331 /* @} *//* Direction encodings */
348 * \brief Structure that represents a haptic direction.
386 * If type is ::SDL_HAPTIC_POLAR, direction is encoded by hundredths of a
394 * If type is ::SDL_HAPTIC_CARTESIAN, direction is encoded by three positions
404 * can use any multiple you want, only the direction matters.
406 * If type is ::SDL_HAPTIC_SPHERICAL, direction is encoded by two rotations.
416 * SDL_HapticDirection direction;
419 * direction.type = SDL_HAPTIC_CARTESIAN; // Using cartesian direction encoding.
420 * direction.dir[0] = 0; // X position
421 * direction.dir[1] = 1; // Y position
425 * direction.type = SDL_HAPTIC_POLAR; // We'll be using polar direction encoding.
426 * direction.dir[0] = 18000; // Polar only uses first parameter
429 * direction.type = SDL_HAPTIC_SPHERICAL; // Spherical encoding
430 * direction.dir[0] = 9000; // Since we only have two axes we don't need more parameters.
442 Sint32 dir[3]; /**< The encoded direction. */
451 * A constant effect applies a constant force in the specified direction
461 SDL_HapticDirection direction; /**< Direction of the effect. */
544 SDL_HapticDirection direction; /**< Direction of the effect. */
576 * Directiondirection member.
596 SDL_HapticDirection direction; /**< Direction of the effect - Not used ATM. */
632 SDL_HapticDirection direction; /**< Direction of the effect. */
685 * If channels is one, the effect is rotated using the defined direction.
695 SDL_HapticDirection direction; /**< Direction of the effect. */
1014 * direction may be strange. Specifically the effect may reupload itself