Interface: UiPointerSource
Defined in: ui/types/ui-pointer-source.ts:13
The shape createUiRaycastEcsSystem/createUiInteractionEcsSystem need
from a pointer device to hit-test and drive hover/press/drag. A plain
structural interface rather than a dependency on MouseInputSource
specifically, so the UI module never hard-codes "the pointer is a mouse" -
a touchscreen, a stylus, or any other pointing device can drive the same
systems by exposing this same shape, and a game that's gamepad/keyboard-only
(via submitInput/navigateInput on createUiCanvas) never needs one at
all. MouseInputSource already satisfies this without any changes.
Properties
buttonsDown
readonlybuttonsDown:ReadonlySet<number>
Defined in: ui/types/ui-pointer-source.ts:18
Button codes that started being held down since the last reset.
buttonsUp
readonlybuttonsUp:ReadonlySet<number>
Defined in: ui/types/ui-pointer-source.ts:21
Button codes that stopped being held down since the last reset.
position
readonlyposition:Vector2
Defined in: ui/types/ui-pointer-source.ts:15
The pointer's current position, in canvas pixels, Y-down.