Input System  v0.1
ISX.Vector2Control Class Reference

A floating-point 2D vector control composed of two AxicControls. More...

Inheritance diagram for ISX.Vector2Control:
ISX.InputControl< Vector2 > ISX.StickControl

Properties

AxisControl x [get]
 Horizontal position of the control. More...
 
AxisControl y [get]
 Vertical position of the control. More...
 

Detailed Description

A floating-point 2D vector control composed of two AxicControls.

Normalization is not implied. The X and Y coordinates can be in any range or units.

An example is Pointer.position.

Debug.Log(string.Format("Mouse position x={0} y={1}", Mouse.current.position.x.value, Mouse.current.position.y.value));

Property Documentation

◆ x

AxisControl ISX.Vector2Control.x
get

Horizontal position of the control.

◆ y

AxisControl ISX.Vector2Control.y
get

Vertical position of the control.