| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
SDL3.Sys.Bindgen.Touch
Description
SDL offers touch input, on platforms that support it. It can manage multiple touch devices and track multiple fingers on those devices.
Touches are mostly dealt with through the event system, in the SDL_EVENT_FINGER_DOWN, SDL_EVENT_FINGER_MOTION, and SDL_EVENT_FINGER_UP events, but there are also functions to query for hardware details, etc.
The touch system, by default, will also send virtual mouse events; this can be useful for making a some desktop apps work on a phone without significant changes. For apps that care about mouse and touch input separately, they should ignore mouse events that have a which field of SDL_TOUCH_MOUSEID. A unique ID for a touch device.
This ID is valid for the time the device is connected to the system, and is never reused for the lifetime of the application.
The value 0 is an invalid ID.
Since: 3.2.0
Synopsis
- newtype SDL_TouchID = SDL_TouchID {}
- newtype SDL_FingerID = SDL_FingerID {}
- newtype SDL_TouchDeviceType = SDL_TouchDeviceType {}
- pattern SDL_TOUCH_DEVICE_INVALID :: SDL_TouchDeviceType
- pattern SDL_TOUCH_DEVICE_DIRECT :: SDL_TouchDeviceType
- pattern SDL_TOUCH_DEVICE_INDIRECT_ABSOLUTE :: SDL_TouchDeviceType
- pattern SDL_TOUCH_DEVICE_INDIRECT_RELATIVE :: SDL_TouchDeviceType
- data SDL_Finger = SDL_Finger {}
Documentation
newtype SDL_TouchID Source #
- C declaration
SDL_TouchID, defined atSDL3/SDL_touch.h 62:16
Constructors
| SDL_TouchID | |
Instances
newtype SDL_FingerID Source #
A unique ID for a single finger on a touch device.
This ID is valid for the time the finger (stylus, etc) is touching and will be unique for all fingers currently in contact, so this ID tracks the lifetime of a single continuous touch. This value may represent an index, a pointer, or some other unique ID, depending on the platform.
The value 0 is an invalid ID.
- C declaration
SDL_FingerID, defined atSDL3/SDL_touch.h 76:16
Since: 3.2.0
Constructors
| SDL_FingerID | |
Instances
| Bits SDL_FingerID Source # | |||||
Defined in SDL3.Sys.Bindgen.Touch Methods (.&.) :: SDL_FingerID -> SDL_FingerID -> SDL_FingerID # (.|.) :: SDL_FingerID -> SDL_FingerID -> SDL_FingerID # xor :: SDL_FingerID -> SDL_FingerID -> SDL_FingerID # complement :: SDL_FingerID -> SDL_FingerID # shift :: SDL_FingerID -> Int -> SDL_FingerID # rotate :: SDL_FingerID -> Int -> SDL_FingerID # bit :: Int -> SDL_FingerID # setBit :: SDL_FingerID -> Int -> SDL_FingerID # clearBit :: SDL_FingerID -> Int -> SDL_FingerID # complementBit :: SDL_FingerID -> Int -> SDL_FingerID # testBit :: SDL_FingerID -> Int -> Bool # bitSizeMaybe :: SDL_FingerID -> Maybe Int # bitSize :: SDL_FingerID -> Int # isSigned :: SDL_FingerID -> Bool # shiftL :: SDL_FingerID -> Int -> SDL_FingerID # unsafeShiftL :: SDL_FingerID -> Int -> SDL_FingerID # shiftR :: SDL_FingerID -> Int -> SDL_FingerID # unsafeShiftR :: SDL_FingerID -> Int -> SDL_FingerID # rotateL :: SDL_FingerID -> Int -> SDL_FingerID # rotateR :: SDL_FingerID -> Int -> SDL_FingerID # popCount :: SDL_FingerID -> Int # | |||||
| FiniteBits SDL_FingerID Source # | |||||
Defined in SDL3.Sys.Bindgen.Touch Methods finiteBitSize :: SDL_FingerID -> Int # countLeadingZeros :: SDL_FingerID -> Int # countTrailingZeros :: SDL_FingerID -> Int # | |||||
| Bounded SDL_FingerID Source # | |||||
Defined in SDL3.Sys.Bindgen.Touch | |||||
| Enum SDL_FingerID Source # | |||||
Defined in SDL3.Sys.Bindgen.Touch Methods succ :: SDL_FingerID -> SDL_FingerID # pred :: SDL_FingerID -> SDL_FingerID # toEnum :: Int -> SDL_FingerID # fromEnum :: SDL_FingerID -> Int # enumFrom :: SDL_FingerID -> [SDL_FingerID] # enumFromThen :: SDL_FingerID -> SDL_FingerID -> [SDL_FingerID] # enumFromTo :: SDL_FingerID -> SDL_FingerID -> [SDL_FingerID] # enumFromThenTo :: SDL_FingerID -> SDL_FingerID -> SDL_FingerID -> [SDL_FingerID] # | |||||
| Storable SDL_FingerID Source # | |||||
Defined in SDL3.Sys.Bindgen.Touch Methods sizeOf :: SDL_FingerID -> Int # alignment :: SDL_FingerID -> Int # peekElemOff :: Ptr SDL_FingerID -> Int -> IO SDL_FingerID # pokeElemOff :: Ptr SDL_FingerID -> Int -> SDL_FingerID -> IO () # peekByteOff :: Ptr b -> Int -> IO SDL_FingerID # pokeByteOff :: Ptr b -> Int -> SDL_FingerID -> IO () # peek :: Ptr SDL_FingerID -> IO SDL_FingerID # poke :: Ptr SDL_FingerID -> SDL_FingerID -> IO () # | |||||
| Generic SDL_FingerID Source # | |||||
Defined in SDL3.Sys.Bindgen.Touch Associated Types
| |||||
| Ix SDL_FingerID Source # | |||||
Defined in SDL3.Sys.Bindgen.Touch Methods range :: (SDL_FingerID, SDL_FingerID) -> [SDL_FingerID] # index :: (SDL_FingerID, SDL_FingerID) -> SDL_FingerID -> Int # unsafeIndex :: (SDL_FingerID, SDL_FingerID) -> SDL_FingerID -> Int # inRange :: (SDL_FingerID, SDL_FingerID) -> SDL_FingerID -> Bool # rangeSize :: (SDL_FingerID, SDL_FingerID) -> Int # unsafeRangeSize :: (SDL_FingerID, SDL_FingerID) -> Int # | |||||
| Num SDL_FingerID Source # | |||||
Defined in SDL3.Sys.Bindgen.Touch Methods (+) :: SDL_FingerID -> SDL_FingerID -> SDL_FingerID # (-) :: SDL_FingerID -> SDL_FingerID -> SDL_FingerID # (*) :: SDL_FingerID -> SDL_FingerID -> SDL_FingerID # negate :: SDL_FingerID -> SDL_FingerID # abs :: SDL_FingerID -> SDL_FingerID # signum :: SDL_FingerID -> SDL_FingerID # fromInteger :: Integer -> SDL_FingerID # | |||||
| Read SDL_FingerID Source # | |||||
Defined in SDL3.Sys.Bindgen.Touch Methods readsPrec :: Int -> ReadS SDL_FingerID # readList :: ReadS [SDL_FingerID] # | |||||
| Integral SDL_FingerID Source # | |||||
Defined in SDL3.Sys.Bindgen.Touch Methods quot :: SDL_FingerID -> SDL_FingerID -> SDL_FingerID # rem :: SDL_FingerID -> SDL_FingerID -> SDL_FingerID # div :: SDL_FingerID -> SDL_FingerID -> SDL_FingerID # mod :: SDL_FingerID -> SDL_FingerID -> SDL_FingerID # quotRem :: SDL_FingerID -> SDL_FingerID -> (SDL_FingerID, SDL_FingerID) # divMod :: SDL_FingerID -> SDL_FingerID -> (SDL_FingerID, SDL_FingerID) # toInteger :: SDL_FingerID -> Integer # | |||||
| Real SDL_FingerID Source # | |||||
Defined in SDL3.Sys.Bindgen.Touch Methods toRational :: SDL_FingerID -> Rational # | |||||
| Show SDL_FingerID Source # | |||||
Defined in SDL3.Sys.Bindgen.Touch Methods showsPrec :: Int -> SDL_FingerID -> ShowS # show :: SDL_FingerID -> String # showList :: [SDL_FingerID] -> ShowS # | |||||
| Eq SDL_FingerID Source # | |||||
Defined in SDL3.Sys.Bindgen.Touch | |||||
| Ord SDL_FingerID Source # | |||||
Defined in SDL3.Sys.Bindgen.Touch Methods compare :: SDL_FingerID -> SDL_FingerID -> Ordering # (<) :: SDL_FingerID -> SDL_FingerID -> Bool # (<=) :: SDL_FingerID -> SDL_FingerID -> Bool # (>) :: SDL_FingerID -> SDL_FingerID -> Bool # (>=) :: SDL_FingerID -> SDL_FingerID -> Bool # max :: SDL_FingerID -> SDL_FingerID -> SDL_FingerID # min :: SDL_FingerID -> SDL_FingerID -> SDL_FingerID # | |||||
| Prim SDL_FingerID Source # | |||||
Defined in SDL3.Sys.Bindgen.Touch Methods sizeOfType# :: Proxy SDL_FingerID -> Int# # sizeOf# :: SDL_FingerID -> Int# # alignmentOfType# :: Proxy SDL_FingerID -> Int# # alignment# :: SDL_FingerID -> Int# # indexByteArray# :: ByteArray# -> Int# -> SDL_FingerID # readByteArray# :: MutableByteArray# s -> Int# -> State# s -> (# State# s, SDL_FingerID #) # writeByteArray# :: MutableByteArray# s -> Int# -> SDL_FingerID -> State# s -> State# s # setByteArray# :: MutableByteArray# s -> Int# -> Int# -> SDL_FingerID -> State# s -> State# s # indexOffAddr# :: Addr# -> Int# -> SDL_FingerID # readOffAddr# :: Addr# -> Int# -> State# s -> (# State# s, SDL_FingerID #) # writeOffAddr# :: Addr# -> Int# -> SDL_FingerID -> State# s -> State# s # setOffAddr# :: Addr# -> Int# -> Int# -> SDL_FingerID -> State# s -> State# s # | |||||
| HasFFIType SDL_FingerID Source # | |||||
Defined in SDL3.Sys.Bindgen.Touch Associated Types
Methods | |||||
| ReadRaw SDL_FingerID Source # | |||||
Defined in SDL3.Sys.Bindgen.Touch Methods readRaw :: Ptr SDL_FingerID -> IO SDL_FingerID # | |||||
| StaticSize SDL_FingerID Source # | |||||
Defined in SDL3.Sys.Bindgen.Touch | |||||
| WriteRaw SDL_FingerID Source # | |||||
Defined in SDL3.Sys.Bindgen.Touch Methods writeRaw :: Ptr SDL_FingerID -> SDL_FingerID -> IO () # | |||||
| Bitfield SDL_FingerID Source # | |||||
Defined in SDL3.Sys.Bindgen.Touch | |||||
| HasCField SDL_FingerID "unwrap" Source # | |||||
Defined in SDL3.Sys.Bindgen.Touch Associated Types
| |||||
| ty ~ Uint64 => HasField "unwrap" SDL_FingerID ty Source # | |||||
Defined in SDL3.Sys.Bindgen.Touch Methods hasField :: SDL_FingerID -> (ty -> SDL_FingerID, ty) # | |||||
| ty ~ Uint64 => HasField "unwrap" (Ptr SDL_FingerID) (Ptr ty :: Type) Source # | |||||
Defined in SDL3.Sys.Bindgen.Touch Methods getField :: Ptr SDL_FingerID -> Ptr ty # | |||||
| type Rep SDL_FingerID Source # | |||||
Defined in SDL3.Sys.Bindgen.Touch type Rep SDL_FingerID = D1 ('MetaData "SDL_FingerID" "SDL3.Sys.Bindgen.Touch" "sdl3-bindgen-sys-0.0.1.0-inplace" 'True) (C1 ('MetaCons "SDL_FingerID" 'PrefixI 'True) (S1 ('MetaSel ('Just "unwrap") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Uint64))) | |||||
| type FFIType SDL_FingerID Source # | |||||
Defined in SDL3.Sys.Bindgen.Touch | |||||
| type CFieldType SDL_FingerID "unwrap" Source # | |||||
Defined in SDL3.Sys.Bindgen.Touch | |||||
newtype SDL_TouchDeviceType Source #
An enum that describes the type of a touch device.
- C declaration
enum SDL_TouchDeviceType, defined atSDL3/SDL_touch.h 83:14
Since: 3.2.0
Constructors
| SDL_TouchDeviceType | |
Instances
| Storable SDL_TouchDeviceType Source # | |||||
Defined in SDL3.Sys.Bindgen.Touch Methods sizeOf :: SDL_TouchDeviceType -> Int # alignment :: SDL_TouchDeviceType -> Int # peekElemOff :: Ptr SDL_TouchDeviceType -> Int -> IO SDL_TouchDeviceType # pokeElemOff :: Ptr SDL_TouchDeviceType -> Int -> SDL_TouchDeviceType -> IO () # peekByteOff :: Ptr b -> Int -> IO SDL_TouchDeviceType # pokeByteOff :: Ptr b -> Int -> SDL_TouchDeviceType -> IO () # peek :: Ptr SDL_TouchDeviceType -> IO SDL_TouchDeviceType # poke :: Ptr SDL_TouchDeviceType -> SDL_TouchDeviceType -> IO () # | |||||
| Generic SDL_TouchDeviceType Source # | |||||
Defined in SDL3.Sys.Bindgen.Touch Associated Types
Methods from :: SDL_TouchDeviceType -> Rep SDL_TouchDeviceType x # to :: Rep SDL_TouchDeviceType x -> SDL_TouchDeviceType # | |||||
| Read SDL_TouchDeviceType Source # | |||||
Defined in SDL3.Sys.Bindgen.Touch Methods readsPrec :: Int -> ReadS SDL_TouchDeviceType # readList :: ReadS [SDL_TouchDeviceType] # | |||||
| Show SDL_TouchDeviceType Source # | |||||
Defined in SDL3.Sys.Bindgen.Touch Methods showsPrec :: Int -> SDL_TouchDeviceType -> ShowS # show :: SDL_TouchDeviceType -> String # showList :: [SDL_TouchDeviceType] -> ShowS # | |||||
| Eq SDL_TouchDeviceType Source # | |||||
Defined in SDL3.Sys.Bindgen.Touch Methods (==) :: SDL_TouchDeviceType -> SDL_TouchDeviceType -> Bool # (/=) :: SDL_TouchDeviceType -> SDL_TouchDeviceType -> Bool # | |||||
| Ord SDL_TouchDeviceType Source # | |||||
Defined in SDL3.Sys.Bindgen.Touch Methods compare :: SDL_TouchDeviceType -> SDL_TouchDeviceType -> Ordering # (<) :: SDL_TouchDeviceType -> SDL_TouchDeviceType -> Bool # (<=) :: SDL_TouchDeviceType -> SDL_TouchDeviceType -> Bool # (>) :: SDL_TouchDeviceType -> SDL_TouchDeviceType -> Bool # (>=) :: SDL_TouchDeviceType -> SDL_TouchDeviceType -> Bool # max :: SDL_TouchDeviceType -> SDL_TouchDeviceType -> SDL_TouchDeviceType # min :: SDL_TouchDeviceType -> SDL_TouchDeviceType -> SDL_TouchDeviceType # | |||||
| Prim SDL_TouchDeviceType Source # | |||||
Defined in SDL3.Sys.Bindgen.Touch Methods sizeOfType# :: Proxy SDL_TouchDeviceType -> Int# # sizeOf# :: SDL_TouchDeviceType -> Int# # alignmentOfType# :: Proxy SDL_TouchDeviceType -> Int# # alignment# :: SDL_TouchDeviceType -> Int# # indexByteArray# :: ByteArray# -> Int# -> SDL_TouchDeviceType # readByteArray# :: MutableByteArray# s -> Int# -> State# s -> (# State# s, SDL_TouchDeviceType #) # writeByteArray# :: MutableByteArray# s -> Int# -> SDL_TouchDeviceType -> State# s -> State# s # setByteArray# :: MutableByteArray# s -> Int# -> Int# -> SDL_TouchDeviceType -> State# s -> State# s # indexOffAddr# :: Addr# -> Int# -> SDL_TouchDeviceType # readOffAddr# :: Addr# -> Int# -> State# s -> (# State# s, SDL_TouchDeviceType #) # writeOffAddr# :: Addr# -> Int# -> SDL_TouchDeviceType -> State# s -> State# s # setOffAddr# :: Addr# -> Int# -> Int# -> SDL_TouchDeviceType -> State# s -> State# s # | |||||
| CEnum SDL_TouchDeviceType Source # | |||||
Defined in SDL3.Sys.Bindgen.Touch Associated Types
Methods toCEnum :: CEnumZ SDL_TouchDeviceType -> SDL_TouchDeviceType # fromCEnum :: SDL_TouchDeviceType -> CEnumZ SDL_TouchDeviceType # declaredValues :: proxy SDL_TouchDeviceType -> DeclaredValues SDL_TouchDeviceType # showsUndeclared :: proxy SDL_TouchDeviceType -> Int -> CEnumZ SDL_TouchDeviceType -> ShowS # readPrecUndeclared :: ReadPrec SDL_TouchDeviceType # isDeclared :: SDL_TouchDeviceType -> Bool # mkDeclared :: CEnumZ SDL_TouchDeviceType -> Maybe SDL_TouchDeviceType # | |||||
| SequentialCEnum SDL_TouchDeviceType Source # | |||||
Defined in SDL3.Sys.Bindgen.Touch | |||||
| HasFFIType SDL_TouchDeviceType Source # | |||||
Defined in SDL3.Sys.Bindgen.Touch Associated Types
| |||||
| ReadRaw SDL_TouchDeviceType Source # | |||||
Defined in SDL3.Sys.Bindgen.Touch Methods readRaw :: Ptr SDL_TouchDeviceType -> IO SDL_TouchDeviceType # | |||||
| StaticSize SDL_TouchDeviceType Source # | |||||
Defined in SDL3.Sys.Bindgen.Touch Methods staticSizeOf :: Proxy SDL_TouchDeviceType -> Int # | |||||
| WriteRaw SDL_TouchDeviceType Source # | |||||
Defined in SDL3.Sys.Bindgen.Touch Methods writeRaw :: Ptr SDL_TouchDeviceType -> SDL_TouchDeviceType -> IO () # | |||||
| HasCField SDL_TouchDeviceType "unwrap" Source # | |||||
Defined in SDL3.Sys.Bindgen.Touch Associated Types
| |||||
| ty ~ CInt => HasField "unwrap" SDL_TouchDeviceType ty Source # | |||||
Defined in SDL3.Sys.Bindgen.Touch Methods hasField :: SDL_TouchDeviceType -> (ty -> SDL_TouchDeviceType, ty) # | |||||
| ty ~ CInt => HasField "unwrap" (Ptr SDL_TouchDeviceType) (Ptr ty :: Type) Source # | |||||
Defined in SDL3.Sys.Bindgen.Touch Methods getField :: Ptr SDL_TouchDeviceType -> Ptr ty # | |||||
| type Rep SDL_TouchDeviceType Source # | |||||
Defined in SDL3.Sys.Bindgen.Touch type Rep SDL_TouchDeviceType = D1 ('MetaData "SDL_TouchDeviceType" "SDL3.Sys.Bindgen.Touch" "sdl3-bindgen-sys-0.0.1.0-inplace" 'True) (C1 ('MetaCons "SDL_TouchDeviceType" 'PrefixI 'True) (S1 ('MetaSel ('Just "unwrap") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CInt))) | |||||
| type CEnumZ SDL_TouchDeviceType Source # | |||||
Defined in SDL3.Sys.Bindgen.Touch | |||||
| type FFIType SDL_TouchDeviceType Source # | |||||
Defined in SDL3.Sys.Bindgen.Touch | |||||
| type CFieldType SDL_TouchDeviceType "unwrap" Source # | |||||
Defined in SDL3.Sys.Bindgen.Touch | |||||
pattern SDL_TOUCH_DEVICE_INVALID :: SDL_TouchDeviceType Source #
- C declaration
SDL_TOUCH_DEVICE_INVALID, defined atSDL3/SDL_touch.h 85:5
pattern SDL_TOUCH_DEVICE_DIRECT :: SDL_TouchDeviceType Source #
touch screen with window-relative coordinates
- C declaration
SDL_TOUCH_DEVICE_DIRECT, defined atSDL3/SDL_touch.h 86:5
pattern SDL_TOUCH_DEVICE_INDIRECT_ABSOLUTE :: SDL_TouchDeviceType Source #
trackpad with absolute device coordinates
- C declaration
SDL_TOUCH_DEVICE_INDIRECT_ABSOLUTE, defined atSDL3/SDL_touch.h 87:5
pattern SDL_TOUCH_DEVICE_INDIRECT_RELATIVE :: SDL_TouchDeviceType Source #
trackpad with screen cursor-relative coordinates
- C declaration
SDL_TOUCH_DEVICE_INDIRECT_RELATIVE, defined atSDL3/SDL_touch.h 88:5
data SDL_Finger Source #
Data about a single finger in a multitouch event.
Each touch event is a collection of fingers that are simultaneously in contact with the touch device (so a "touch" can be a "multitouch," in reality), and this struct reports details of the specific fingers.
- See also
sDL_GetTouchFingers- C declaration
struct SDL_Finger, defined atSDL3/SDL_touch.h 102:16
Since: 3.2.0
Constructors
| SDL_Finger | |
Fields
| |
Instances
| Storable SDL_Finger Source # | |||||
Defined in SDL3.Sys.Bindgen.Touch Methods sizeOf :: SDL_Finger -> Int # alignment :: SDL_Finger -> Int # peekElemOff :: Ptr SDL_Finger -> Int -> IO SDL_Finger # pokeElemOff :: Ptr SDL_Finger -> Int -> SDL_Finger -> IO () # peekByteOff :: Ptr b -> Int -> IO SDL_Finger # pokeByteOff :: Ptr b -> Int -> SDL_Finger -> IO () # peek :: Ptr SDL_Finger -> IO SDL_Finger # poke :: Ptr SDL_Finger -> SDL_Finger -> IO () # | |||||
| Generic SDL_Finger Source # | |||||
Defined in SDL3.Sys.Bindgen.Touch Associated Types
| |||||
| Show SDL_Finger Source # | |||||
Defined in SDL3.Sys.Bindgen.Touch Methods showsPrec :: Int -> SDL_Finger -> ShowS # show :: SDL_Finger -> String # showList :: [SDL_Finger] -> ShowS # | |||||
| Eq SDL_Finger Source # | |||||
Defined in SDL3.Sys.Bindgen.Touch | |||||
| ReadRaw SDL_Finger Source # | |||||
Defined in SDL3.Sys.Bindgen.Touch Methods readRaw :: Ptr SDL_Finger -> IO SDL_Finger # | |||||
| StaticSize SDL_Finger Source # | |||||
Defined in SDL3.Sys.Bindgen.Touch | |||||
| WriteRaw SDL_Finger Source # | |||||
Defined in SDL3.Sys.Bindgen.Touch Methods writeRaw :: Ptr SDL_Finger -> SDL_Finger -> IO () # | |||||
| IsStruct SDL_Finger Source # | |||||
Defined in SDL3.Sys.Bindgen.Touch Methods zero :: SDL_Finger # | |||||
| HasCField SDL_Finger "id" Source # | |||||
Defined in SDL3.Sys.Bindgen.Touch Associated Types
| |||||
| HasCField SDL_Finger "pressure" Source # | |||||
Defined in SDL3.Sys.Bindgen.Touch Associated Types
| |||||
| HasCField SDL_Finger "x" Source # | |||||
Defined in SDL3.Sys.Bindgen.Touch Associated Types
| |||||
| HasCField SDL_Finger "y" Source # | |||||
Defined in SDL3.Sys.Bindgen.Touch Associated Types
| |||||
| ty ~ SDL_FingerID => HasField "id" SDL_Finger ty Source # | the finger ID
| ||||
Defined in SDL3.Sys.Bindgen.Touch Methods hasField :: SDL_Finger -> (ty -> SDL_Finger, ty) # | |||||
| ty ~ CFloat => HasField "pressure" SDL_Finger ty Source # | the quantity of pressure applied, normalized (0...1)
| ||||
Defined in SDL3.Sys.Bindgen.Touch Methods hasField :: SDL_Finger -> (ty -> SDL_Finger, ty) # | |||||
| ty ~ CFloat => HasField "x" SDL_Finger ty Source # | the x-axis location of the touch event, normalized (0...1)
| ||||
Defined in SDL3.Sys.Bindgen.Touch Methods hasField :: SDL_Finger -> (ty -> SDL_Finger, ty) # | |||||
| ty ~ CFloat => HasField "y" SDL_Finger ty Source # | the y-axis location of the touch event, normalized (0...1)
| ||||
Defined in SDL3.Sys.Bindgen.Touch Methods hasField :: SDL_Finger -> (ty -> SDL_Finger, ty) # | |||||
| ty ~ SDL_FingerID => HasField "id" (Ptr SDL_Finger) (Ptr ty :: Type) Source # | |||||
Defined in SDL3.Sys.Bindgen.Touch Methods getField :: Ptr SDL_Finger -> Ptr ty # | |||||
| ty ~ CFloat => HasField "pressure" (Ptr SDL_Finger) (Ptr ty :: Type) Source # | |||||
Defined in SDL3.Sys.Bindgen.Touch Methods getField :: Ptr SDL_Finger -> Ptr ty # | |||||
| ty ~ CFloat => HasField "x" (Ptr SDL_Finger) (Ptr ty :: Type) Source # | |||||
Defined in SDL3.Sys.Bindgen.Touch Methods getField :: Ptr SDL_Finger -> Ptr ty # | |||||
| ty ~ CFloat => HasField "y" (Ptr SDL_Finger) (Ptr ty :: Type) Source # | |||||
Defined in SDL3.Sys.Bindgen.Touch Methods getField :: Ptr SDL_Finger -> Ptr ty # | |||||
| type Rep SDL_Finger Source # | |||||
Defined in SDL3.Sys.Bindgen.Touch type Rep SDL_Finger = D1 ('MetaData "SDL_Finger" "SDL3.Sys.Bindgen.Touch" "sdl3-bindgen-sys-0.0.1.0-inplace" 'False) (C1 ('MetaCons "SDL_Finger" 'PrefixI 'True) ((S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 SDL_FingerID) :*: S1 ('MetaSel ('Just "x") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 CFloat)) :*: (S1 ('MetaSel ('Just "y") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 CFloat) :*: S1 ('MetaSel ('Just "pressure") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 CFloat)))) | |||||
| type CFieldType SDL_Finger "id" Source # | |||||
Defined in SDL3.Sys.Bindgen.Touch | |||||
| type CFieldType SDL_Finger "pressure" Source # | |||||
Defined in SDL3.Sys.Bindgen.Touch | |||||
| type CFieldType SDL_Finger "x" Source # | |||||
Defined in SDL3.Sys.Bindgen.Touch | |||||
| type CFieldType SDL_Finger "y" Source # | |||||
Defined in SDL3.Sys.Bindgen.Touch | |||||