toInt method

int toInt()

Return an integer.

Implementation

int toInt() {
  switch (this) {
    case MouseWheelDirection.normal:
      return SDL_MouseWheelDirection.SDL_MOUSEWHEEL_NORMAL;
    case MouseWheelDirection.flipped:
      return SDL_MouseWheelDirection.SDL_MOUSEWHEEL_FLIPPED;
  }
}