IRawInput::BindButtonForDevice

Register a button on a device to send input events with a given name

Windows
MacOS
Linux

References

Module

RawInput

Header

/Engine/Plugins/Experimental/RawInput/Source/RawInput/Public/RawInput.h

Include

#include "RawInput.h"

Syntax

virtual void BindButtonForDevice
(
    int32 DeviceHandle,
    FName EventName,
    int32 ButtonIndex
)

Remarks

Register a button on a device to send input events with a given name

Parameters

Parameter

Description

DeviceHandle

Device handle to bind to

KeyName

Key Name (e.g FRawInputKeyNames::GenericUSBController_Button1)

ButtonIndex

Index of the button to bind

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