toInt method

int toInt()

Return an integer.

Implementation

int toInt() {
  switch (this) {
    case TouchDeviceType.invalid:
      return SDL_TouchDeviceType.SDL_TOUCH_DEVICE_INVALID;
    case TouchDeviceType.direct:
      return SDL_TouchDeviceType.SDL_TOUCH_DEVICE_DIRECT;
    case TouchDeviceType.indirectAbsolute:
      return SDL_TouchDeviceType.SDL_TOUCH_DEVICE_INDIRECT_ABSOLUTE;
    case TouchDeviceType.indirectRelative:
      return SDL_TouchDeviceType.SDL_TOUCH_DEVICE_INDIRECT_RELATIVE;
  }
}