IRawInput

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

IInputDevice

IRawInput

References

Module

RawInput

Header

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

Include

#include "RawInput.h"

Syntax

class IRawInput : public IInputDevice

Variables

Name Description

Protected variable

FRawInputDataDe...

 

DataReceivedHandler

Delegate to allow for manual parsing of HID data.

Protected variable

TSharedRef< FGe...

 

MessageHandler

Handler to send all messages to.

Constructors

Name Description

Public function

IRawInput

(
    const TSharedRef< FGenericApplicati...
)

Destructors

Name Description

Public function Virtual

~IRawInput()

Functions

Name Description

Public function Virtual

void

 

BindAnalogForDevice

(
    int32 DeviceHandle,
    FName KeyName,
    int32 AxisIndex
)

Register axis/analog on a device to send input events with a given name

Public function Virtual

void

 

BindButtonForDevice

(
    int32 DeviceHandle,
    FName EventName,
    int32 ButtonIndex
)

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

Public function

FRawInputDat...

 

GetDataReceivedHandler()

Returns the delegate for a data received handler

Protected function

int32

 

GetNextInputHandle()

Helper to get next input handle to assign.

Public function Virtual

void

 

QueryConnectedDevices()

Query connected devices and populate the ConnectedDeviceInfoList

Public function

int32

 

RegisterInputDevice

(
    int32 DeviceType,
    int32 Flags,
    uint16 DeviceID,
    int16 PageID
)

Register a device for use.

Public function Virtual

void

 

RemoveRegisteredInputDevice

(
    int32 DeviceHandle
)

Remove a registered device

Public function Virtual

void

 

SetAnalogAxisIsInverted

(
    int32 DeviceHandle,
    int32 AxisIndex,
    bool bInvert
)

Set whether an axis is inverted

Public function Virtual

void

 

SetAnalogAxisOffset

(
    int32 DeviceHandle,
    int32 AxisIndex,
    float Offset
)

Sets the offset of the given axis