TouchInfo
ceramic.TouchInfo (Class)
Instance Members
touchIndex: Int
If the input is a touch input, this is the index of the touch. Otherwise it will be -1.
buttonId: Int
If the input is a mouse input, this is the id of the mouse button. Otherwise it will be -1.
x: Float
X coordinate of the input (relative to screen).
y: Float
Y coordinate of the input (relative to screen).
hits: Bool
Whether these info do hit the related visual. This is usually true
,
Except when we have touch/mouse up events outside of a visual that
initially received a down event.
Name | Type | Description |
---|---|---|
touchIndex |
Int | * If the input is a touch input, this is the index of the touch. Otherwise it will be -1. |
buttonId |
Int | * If the input is a mouse input, this is the id of the mouse button. Otherwise it will be -1. |
x |
Float | * X coordinate of the input (relative to screen). |
y |
Float | * Y coordinate of the input (relative to screen). |
hits |
Bool | * Whether these info do hit the related visual. This is usually true , Except when we have touch/mouse up events outside of a visual that initially received a down event. |
Private Members
toString(): String
Returns |
---|
String |
Metadata
Name | Parameters |
---|---|
:structInit |
- |