Choose your operating system:
Windows
macOS
Linux
Module |
|
Header |
/Engine/Source/Runtime/InteractiveToolsFramework/Public/BaseBehaviors/AnyButtonInputBehavior.h |
Include |
#include "BaseBehaviors/AnyButtonInputBehavior.h" |
class UAnyButtonInputBehavior : public UInputBehavior
UAnyButtonInputBehavior is a base behavior that provides a generic interface to a TargetButton on a physical Input Device. You can subclass UAnyButtonInputBehavior to write InputBehaviors that can work independent of a particular device type or button, by using the UAnyButtonInputBehavior functions below.
The target device button is selected using the .ButtonNumber property, or you can override the relevant GetXButtonState() function if you need more control.
Name | Description | ||
---|---|---|---|
|
ActiveDevice |
Which device is currently active |
|
|
GetMouseButtonStateFunc |
Returns FDeviceButtonState for target mouse button |
Name | Description | |
---|---|---|
|
UAnyButtonInputBehavior() |
Name | Description | ||
---|---|---|---|
|
EInputDevice... |
GetActiveDevice() |
|
|
FDeviceButto... |
GetButtonStateFunc ( |
Returns FDeviceButtonState for target active device button |
|
GetClickPoint ( |
||
|
FInputDevice... |
GetDeviceRay ( |
|
|
GetWorldRay ( |
||
|
IsDown ( |
||
|
IsPressed ( |
||
|
IsReleased ( |
||
|
SetUseCustomMouseButton |
Configure a custom target mouse button |
|
|
SetUseLeftMouseButton() |
Configure the target Mouse button to be the left button |
|
|
SetUseMiddleMouseButton() |
Configure the target Mouse button to be the middle button |
|
|
SetUseRightMouseButton() |
Configure the target Mouse button to be the right button |
Name | Description | ||
---|---|---|---|
|
EInputDevice... |
GetSupportedDevices() |
Return set of devices supported by this behavior |