Get Controller Mapping

Get Controller Mapping

Windows
MacOS
Linux

Returns the hand to which given controller index has been mapped to in the device backend.

The native api does not have a concept of left vs right controller. They deal with indices. The first connected controller is index 0 and so on. By default, index 0 is mapped to the right hand in Unreal. You can invert these mappings by calling InvertControllerMapping() function.

Target is Magic Leap Controller Function Library

Get Controller Mapping
Controller Index
0
Hand
Left
Return Value

Inputs

In
Exec
Controller Index
Integer

Zero based controller index to get the hand mapping for. Should be less than MaxSupportedMagicLeapControllers().

Outputs

Out
Exec
Hand
EControllerHand Enum

Output parameter which is the hand the given index maps to. Valid only if the function returns true.

Return Value
Boolean

true of the controller index maps to a valid hand, false otherwise

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss