Click or drag to resize

IInputModuleFactoryAttachInputModule Method

Attaches the most appropriate InputModule for the given hardware type onto a parent GameObject in the hierarchy

Namespace:  ImmerseSDK.Config
Assembly:  ImmerseSDK.App (in ImmerseSDK.App.dll) Version: 3.7.0.0 (3.7.0.0)
Syntax
C#
InputModule AttachInputModule(
	ControllerLocal controller,
	VRHardwareType hardwareType
)

Parameters

controller
Type: ImmerseSDK.ControllersControllerLocal
The controller to attach the InputModule component to
hardwareType
Type: ImmerseSDKVRHardwareType
The currently active VR Hardware type (e.g. Rift, Vive, etc)

Return Value

Type: InputModule
The InputModule that was created, or null if no suitable InputModule was found
See Also