toInt method

int toInt()

Return an SDL value.

Implementation

int toInt() {
  switch (this) {
    case HapticDirectionType.polar:
      return SDL_HAPTIC_POLAR;
    case HapticDirectionType.cartesian:
      return SDL_HAPTIC_CARTESIAN;
    case HapticDirectionType.spherical:
      return SDL_HAPTIC_SPHERICAL;
  }
}