toInt method
Return an SDL value.
Implementation
int toInt() {
switch (this) {
case HapticPeriodicType.sine:
return SDL_HAPTIC_SINE;
case HapticPeriodicType.leftRight:
return SDL_HAPTIC_LEFTRIGHT;
case HapticPeriodicType.triangle:
return SDL_HAPTIC_TRIANGLE;
case HapticPeriodicType.sawToothUp:
return SDL_HAPTIC_SAWTOOTHUP;
case HapticPeriodicType.sawToothDown:
return SDL_HAPTIC_SAWTOOTHDOWN;
}
}