Immerseum SDK: VR Simulator (version: BETA-0.9)
       [view as Desktop | Tablet | Mobile]
addInputAction Method
Example 

A properly defined InputAction.

Please Note Please Note
The InputAction.name property must be unique - if it is not, the method will return false.
Adds an InputAction to the managed list. This is equivalent to "teaching" the system a new InputAction.
Syntax
public static bool addInputAction( 
   InputAction action
)

Parameters

action

A properly defined InputAction.

Please Note Please Note
The InputAction.name property must be unique - if it is not, the method will return false.

Return Value

true if the InputAction was successfully added to inputActionList, false if not.
Example
Registers the InputAction "myInputAction" with the InputActionManager.
InputAction actionToRegister = new InputAction();
actionToRegister.name = "myInputAction";
// Other code to configure the InputAction goes here.
 
bool success = InputActionManager.addInputAction(actionToRegister);
See Also

Reference

InputActionManager Class
InputActionManager Members

 

 


Copyright (c) 2015 Immerseum Inc. All rights reserved.

Send Feedback