use crate::{c_float, c_int, stdinc::*};
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, PartialOrd, Ord, Hash)]
#[repr(transparent)]
pub struct SDL_TouchID(pub Sint64);
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, PartialOrd, Ord, Hash)]
#[repr(transparent)]
pub struct SDL_FingerID(pub Sint64);
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, PartialOrd, Ord, Hash)]
#[repr(transparent)]
pub struct SDL_TouchDeviceType(pub i32);
pub const SDL_TOUCH_DEVICE_INVALID: SDL_TouchDeviceType =
SDL_TouchDeviceType(-1);
pub const SDL_TOUCH_DEVICE_DIRECT: SDL_TouchDeviceType = SDL_TouchDeviceType(0);
pub const SDL_TOUCH_DEVICE_INDIRECT_ABSOLUTE: SDL_TouchDeviceType =
SDL_TouchDeviceType(1);
pub const SDL_TOUCH_DEVICE_INDIRECT_RELATIVE: SDL_TouchDeviceType =
SDL_TouchDeviceType(2);
#[derive(Debug, Clone, Copy, Default, PartialEq, PartialOrd)]
#[repr(C)]
#[allow(missing_docs)]
pub struct SDL_Finger {
pub id: SDL_FingerID,
pub x: c_float,
pub y: c_float,
pub pressure: c_float,
}
pub const SDL_TOUCH_MOUSEID: u32 = -1_i32 as u32;
pub const SDL_MOUSE_TOUCHID: SDL_TouchID = SDL_TouchID(-1);
extern "C" {
pub fn SDL_GetNumTouchDevices();
pub fn SDL_GetTouchDevice(index: c_int) -> SDL_TouchID;
pub fn SDL_GetTouchDeviceType(touchID: SDL_TouchID) -> SDL_TouchDeviceType;
pub fn SDL_GetNumTouchFingers(touchID: SDL_TouchID) -> c_int;
pub fn SDL_GetTouchFinger(
touchID: SDL_TouchID, index: c_int,
) -> *mut SDL_Finger;
}