Object “input”
Object > NativeObject > Input
The input object is supposed to fire global touch events with coordinates relative to the app window.
| Type: | Input extends NativeObject |
| Constructor: | private |
| Singleton: | input |
| Namespace: | tabris |
| Direct subclasses: | None |
| JSX Support: | No |
See also:
JSX input.jsx [► Run in Playground]
Events
pointerDown
Fired when the app window is touched.
EventObject Type: PointerEvent<Input>
| Property | Type | Description |
|---|---|---|
| touches | [{x: number, y: number}] |
Touch coordinates relative to the origin coordinates of the app window. |
pointerMove
Fired repeatedly while swiping across the app window.
EventObject Type: PointerEvent<Input>
| Property | Type | Description |
|---|---|---|
| touches | [{x: number, y: number}] |
Touch coordinates relative to the origin coordinates of the app window. |
pointerUp
Fired when a touch ends on the app window than it started on.
EventObject Type: PointerEvent<Input>
| Property | Type | Description |
|---|---|---|
| touches | [{x: number, y: number}] |
Touch coordinates relative to the origin coordinates of the app window. |
pointerCancel
Fired instead of ‘pointerUp’ when the touch ends on another app window than it started on.
EventObject Type: PointerEvent<Input>
| Property | Type | Description |
|---|---|---|
| touches | [{x: number, y: number}] |
Touch coordinates relative to the origin coordinates of the app window. |
resize
Fired when the app window size has changed.
EventObject Type: InputResizeEvent<Input>
| Property | Type | Description |
|---|---|---|
| height | number |
The height of the app window in dip. |
| left | number |
The horizontal offset from the left edge of the app window in dip. |
| top | number |
The vertical offset from the top edge of the app window in dip. |
| width | number |
The width of the app window in dip. |