class MAGES::DeviceManager::MAGESScreenStick

Overview

MAGES joystick. Primarily used for moving and rotating the camera. More…

class MAGESScreenStick:
    public MonoBehaviour,
    public IPointerDownHandler,
    public IPointerUpHandler,
    public IDragHandler
{
public:
    // enums

    enum BehaviourTypes;

    // properties

    BehaviourTypes Behaviour;
    float MovementRange;

    // methods

    void OnPointerDown(PointerEventData eventData);
    void OnDrag(PointerEventData eventData);
    void OnPointerUp(PointerEventData eventData);
};

Detailed Documentation

MAGES joystick. Primarily used for moving and rotating the camera.

Properties

BehaviourTypes Behaviour

Gets or sets how the onscreen stick will move relative to it’s origin and the press position.

float MovementRange

Gets or sets the distance from the onscreen control’s center of origin, around which the control can move.

Methods

void OnPointerDown(PointerEventData eventData)

Callback to handle OnPointerDown UI events.

Parameters:

eventData

The data for this interaction.

void OnDrag(PointerEventData eventData)

Callback to handle OnDrag UI events.

Parameters:

eventData

The data for this interaction.

void OnPointerUp(PointerEventData eventData)

Callback to handle OnPointerUp UI events.

;

Parameters:

eventData

The data for this interaction.