interface MAGES::IInteractionActions

Overview

Interface for generic actions that are triggered from user input. More…

interface IInteractionActions
{
    // methods

    void AddActionOnSelectLeft(Action select);
    void AddActionOnDeselectLeft(Action deselect);
    void AddActionOnActivateLeft(Action activate);
    void AddActionOnDeactivateLeft(Action deactivate);
    void AddActionOnUISelectLeft(Action uiSelectLeft);
    void AddActionOnUISelectCancelLeft(Action uiDeselectLeft);
    void AddActionOnSelectRight(Action select);
    void AddActionOnDeselectRight(Action deselect);
    void AddActionOnActivateRight(Action activate);
    void AddActionOnDeactivateRight(Action deactivate);
    void AddActionOnUISelectRight(Action uiSelectLeft);
    void AddActionOnUISelectCancelRight(Action uiDeselectLeft);
    float GetSelectionIntensityLeft();
    float GetSelectionIntensityRight();
    float GetActivationIntensityLeft();
    float GetActivationIntensityRight();
    void Startup();
};

// direct descendants

class InputController;

Detailed Documentation

Interface for generic actions that are triggered from user input.

Methods

void AddActionOnSelectLeft(Action select)

Adds an action to be called when one of the select buttons are pressed on the left controller.

Parameters:

select

The event that will be called on select.

void AddActionOnDeselectLeft(Action deselect)

Adds an action to be called when one of the select buttons are released.

Parameters:

deselect

The event that will be called on deSelect.

void AddActionOnActivateLeft(Action activate)

Adds an action to be called when one of the activation buttons are pressed.

Parameters:

activate

The event that will be called on activation.

void AddActionOnDeactivateLeft(Action deactivate)

Adds an action to be called when one of the activation buttons are released.

Parameters:

deactivate

The event that will be called on deActivation.

void AddActionOnUISelectLeft(Action uiSelectLeft)

Adds an action to be called when the UI select button is pressed on the left controller.

Parameters:

uiSelectLeft

The event that will be called.

void AddActionOnUISelectCancelLeft(Action uiDeselectLeft)

Adds an action to be called when the UI select button is released on the left controller.

Parameters:

uiDeselectLeft

The event that will be called.

void AddActionOnSelectRight(Action select)

Adds an action to be called when one of the select buttons are pressed on the right controller.

Parameters:

select

The event that will be called on select.

void AddActionOnDeselectRight(Action deselect)

Adds an action to be called when one of the select buttons are released on the right controller.

Parameters:

deselect

The event that will be called on deSelect.

void AddActionOnActivateRight(Action activate)

Adds an action to be called when one of the activation buttons are pressed on the right controller.

Parameters:

activate

The event that will be called on activation.

void AddActionOnDeactivateRight(Action deactivate)

Adds an action to be called when one of the activation buttons are released on the right controller.

Parameters:

deactivate

The event that will be called on deActivation.

void AddActionOnUISelectRight(Action uiSelectLeft)

Adds an action to be called when the UI select button is pressed on the right controller.

Parameters:

uiSelectLeft

The event that will be called.

void AddActionOnUISelectCancelRight(Action uiDeselectLeft)

Adds an action to be called when the UI select button is released on the right controller.

Parameters:

uiDeselectLeft

The event that will be called.

float GetSelectionIntensityLeft()

Gets the grip value of the left controller.

Returns:

The current grip value of the left controller.

float GetSelectionIntensityRight()

Gets the grip value of the right controller.

Returns:

The current grip value of the right controller.

float GetActivationIntensityLeft()

Gets the trigger value of the left controller.

Returns:

The current trigger value of the left controller.

float GetActivationIntensityRight()

Gets the trigger value of the right controller.

Returns:

The current trigger value of the right controller.

void Startup()

Initialize all input actions.