menu

GamepadTouch

import { GamepadTouch } from "destack:input/binding";

Gamepad touch contact state.

language/library/src/input/binding/gamepad.ds:78:89
1export struct GamepadTouch {2    touchId: uint32;3    surfaceId: uint32;4    x: float64;5    y: float64;6    pressure: float64;7}

Members

touchId: uint32

Touch identifier in host contact space.

surfaceId: uint32

Touch surface identifier.

x: float64

Normalized x coordinate in the range [-1, 1] when reported by the host.

y: float64

Normalized y coordinate in the range [-1, 1] when reported by the host.

pressure: float64

Normalized pressure in the range [0, 1] when reported by the host.