Skip to content

UE5 Plugin Tutorial of Controllers (For V1.3.1 and Above)

All product guides

This manual is the controller submodule of the UE5 Plugin Tutorial. It is intended for UE5 developers who need to integrate glove joysticks, buttons, gesture events, and vibration feedback. Before use, please complete the plugin installation and Live Link connection according to the main manual.

1. Preparation Before Use

1.1. Scope and Prerequisites

This module only covers controller input and vibration feedback. Before you begin, complete the following preparations:

  • The HandDriver plugin has been installed and enabled according to

UE5 Plugin Tutorial

  • Live Link is already able to receive glove data, and the Hand and LiveLinkComponentController components have been configured in the character Blueprint.

Ensure the project uses plugin V1.3.1 or later, and confirm that the component names match those in the current version.

1.2. Reference for Example Levels

The sample content included with the plugin is intended solely for functional testing and configuration reference. Do not publish it directly as production project logic.

Example Level: Map_UdxHandControl

2. Controller Integration and Character Blueprint

2.1. Creating a Character Blueprint

  1. In the Content Browser, select "Add → Blueprint Class."
  2. Select Pawn or Character as the parent class, and create the character Blueprint.

2.2. Adding the Controller Input Component

Version Note: In plugin V1.3.1, this component is named HandJoystick; later versions use HandControlInput. Hereinafter, it is referred to collectively as the "Controller Input Component."

2.3. Configuring Component Parameters

Select the Controller Input Component, and in the Details panel, set the joystick dead zone, left/right hand event switches, and gesture thresholds.

Parameter Type Default Description
JoystickDeadZone float 0.15 Joystick dead zone. When the value is between ±0.15, the associated events will not be triggered. The range is 0~1.
Hand Rocker Switch bool true Enables all joystick events. When turned off, the joystick events for both hands will not be enabled.
Hand Rocker Switch L bool true Enables left-hand joystick events. Needs to enable all joystick events first.
Hand Rocker Switch R bool true Enables right-hand joystick events. Needs to enable all joystick events first.
TrackPadValue float 30 TrackPad gesture trigger threshold. Range: 0~60
GripValue float 50 Grip gesture trigger threshold. Range: 0~80
TriggerValue float 25 Trigger gesture trigger threshold. Range: 0~100

2.4. Initializing the Input Component

In BeginPlay, call InitHandControlInput and pass the character's HandComponent to the Hand Component parameter.

2.5. Configuring Vibration Feedback

When vibration feedback is needed, call CallVibration through the Controller Input Component. CharName should match the Subject name in Live Link; the figure below also shows how to obtain the character name from LiveLinkComponentController.

2.6. Add Controller Events

In the controller input component's event list, add the required joystick, button, or gesture events, and wire them to your project's own interaction logic.

{% column width="50%" %}

{% column width="50%" %}

3. Function/Event Definitions

3.1. CallVibration

Description: Sends vibration data to the HandDriver software.

Parameter Type Default Description
Version Enum v1.0 Controller version, used to distinguish between 1.0 and 2.0.
RemoteIP FString 127.0.0.1 The IP address of the computer where the HandDriver software is located. Use the local IP 127.0.0.1 if it is on the same computer.
CharName Fstring None Enter the data source name set in LiveLink, which is used to identify the character.
HandType Enum Left The joystick vibrator on which hand (Left/Right).
Vibrators Enum AllOff The sequence number of the activated vibrator (AllOff: None, Vib1: 1, Vib2: 2, AllOn: All). Only for v1.0.
Vibration Enable bool true Whether to enable the vibration motor; shown only for v2.0.
Duration float 1 The activation time of the vibrator (0.04s-2.5s).
Amplitude uint8 10 The vibration intensity of the vibrator (the range is 4-10).
Rate int32 100 Vibration frequency (range: 7–3000); shown and used only for v2.0.

Return Value: Returns the data sent this time to verify the data format.

3.2. Joystick Axis Events

3.2.1. MoveForwardEvent

Description: Receives the Y-axis data of the left-hand joystick.

Parameter Type Range Description
Value float -1~1 Returns the Y value of the left-hand joystick.

3.2.2. MoveRightEvent

Description: Receives the X-axis data of the left-hand joystick.

Parameter Type Range Description
Value float -1~1 Returns the X value of the left-hand joystick.

3.2.3. LookUpEvent

Description: Receives the Y-axis data of the right-hand joystick.

Parameter Type Range Description
Value float -1~1 Returns the Y value of the right-hand joystick.

3.2.4. TurnEvent

Description: Receives the X-axis data of the right-hand joystick.

Parameter Type Range Description
Value float -1~1 Returns the X value of the right-hand joystick.

3.3. Button Event

3.3.1. ButtonA_L/REvent

Description: Triggered when the A button on the left/right hand is pressed.

Return Value: None

3.3.2. ButtonB_L/REvent

Description: Triggered when the B button on the left/right hand is pressed.

Return Value: None

3.3.3. ButtonMenu_L/REvent

Description: Triggered when the A+B buttons on the left/right hand are pressed simultaneously.

Return Value: None

3.3.4. ButtonJoy_L/REvent

Description: Triggered when the joystick button on the left/right hand is pressed.

Return Value: None

3.4. Gesture Events

3.4.1. TrackPad_L/REvent

Description: Called when the TrackPad gesture is triggered on the left/right hand.

Return Value: None

3.4.2. UnTrackPad_L/REvent

Description: Called when the left/right hand releases the TrackPad gesture.

Return Value: None

3.4.3. Grip_L/REvent

Description: Called when the left/right hand triggers the Grip gesture..

Return Value: None

3.4.4. UnGrip_L/REvent

Description: Called when the left/right hand releases the Grip gesture.

Return Value: None

3.4.5. Trigger_L/REvent

Description: Called when the Trigger gesture is triggered on the left/right hand.

Return Value: None

3.4.6. UnTrigger_L/REvent

Description: Called when the left/right hand releases the Trigger gesture.

Return Value: None

4. FAQ

4.1. Controller 1.0

4.1.1. When Menu is triggered by pressing A+B, A or B is fired first

  1. Create a Menu state Boolean variable for the left hand and the right hand respectively, with the default value set to false.
  2. When the Menu event is triggered, first set the corresponding state variable to true, then execute the Menu logic.
  3. Before executing the A/B events, check the Menu state; execute the A/B logic only when the state is false.
  4. After the Menu logic ends, set the state variable back to false.

Note: The figure below uses the left-hand event as an example; the right-hand event is handled in the same way.