Inherit from UComponentLogic
Related Classes
- UComponentLogic
- SLayoutComponent
- UComponentDecorator
SUMMARY #
Interprets inputs as a joystick. Behavior is similar to a gamepad joystick.
Three possible states:
- Pressed : Sends an event on press (trigger or start).
- Moved : Sends an event on move (trigger).
- Released : Sends an event on release (completed).
The type of input selected in the input action must be an Axis2D.
WHEN TO USE IT? #
When you want behavior similar to a classic gamepad joystick. For example, you want to move the character or the camera.
DECORATOR POSITION DRIVED BY THUMBSTICK #
Add a decorator that will act as a thumbstick in your joystick. Then, in the logic category in your joystick logic, select the decorator in the Thumbstick Decorator Name variable.
You have several options for modifying the decorator. For example, you can specify that the center of the decorator should not extend beyond the component’s geometry. Direction Only allows you to modify the decorator’s rotation to indicate the joystick’s direction to the user.
