Input System  v0.1
ISX.DpadControl Class Reference

A control made up of four discrete, directional buttons. Forms a vector but can also be addressed as individual buttons. More...

Inheritance diagram for ISX.DpadControl:
ISX.InputControl< Vector2 >

Properties

ButtonControl up [get]
 The button representing the vertical upwards state of the D-Pad. More...
 
ButtonControl down [get]
 The button representing the vertical downwards state of the D-Pad. More...
 
ButtonControl left [get]
 The button representing the horizontal left state of the D-Pad. More...
 
ButtonControl right [get]
 The button representing the horizontal right state of the D-Pad. More...
 

Detailed Description

A control made up of four discrete, directional buttons. Forms a vector but can also be addressed as individual buttons.

Is stored as four bits by default.

The vector that is aggregated from the button states is normalized. I.e. even if pressing diagonally, the vector will have a length of 1 (instead of reading something like (1,1) for example).

Property Documentation

◆ down

ButtonControl ISX.DpadControl.down
get

The button representing the vertical downwards state of the D-Pad.

◆ left

ButtonControl ISX.DpadControl.left
get

The button representing the horizontal left state of the D-Pad.

◆ right

ButtonControl ISX.DpadControl.right
get

The button representing the horizontal right state of the D-Pad.

◆ up

ButtonControl ISX.DpadControl.up
get

The button representing the vertical upwards state of the D-Pad.