Enum rich_sdl2_rust::haptic::direction::Direction
source · #[non_exhaustive]
pub enum Direction {
Polar {
degree_100: i32,
},
Cartesian {
x: i32,
y: i32,
z: i32,
},
Spherical {
z_degree_100: i32,
elevation_degree_100: i32,
},
}
Expand description
A direction and coordinate system of the haptic movements.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Polar
Fields
A polar coordinate system.
Cartesian
Fields
A cartesian coordinate system.
Spherical
Fields
A spherical coordinate system (3-axis haptic device).
Trait Implementations§
source§impl From<SDL_HapticDirection> for Direction
impl From<SDL_HapticDirection> for Direction
source§fn from(raw: SDL_HapticDirection) -> Self
fn from(raw: SDL_HapticDirection) -> Self
Converts to this type from the input type.