menu
GamepadTouch
import { GamepadTouch } from "destack:input/binding";
Gamepad touch contact state.
1export struct GamepadTouch {2 touchId: uint32;3 surfaceId: uint32;4 x: float64;5 y: float64;6 pressure: float64;7}Members
touchId: uint32Touch identifier in host contact space.
surfaceId: uint32Touch surface identifier.
x: float64Normalized x coordinate in the range
[-1, 1]when reported by the host.y: float64Normalized y coordinate in the range
[-1, 1]when reported by the host.pressure: float64Normalized pressure in the range
[0, 1]when reported by the host.