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

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback