Enhanced Raw Input 1.0
Enhanced Raw Input for Unreal Engine
Loading...
Searching...
No Matches
FEnhancedRawInputWindows Class Reference

Windows Implementation. More...

#include <EnhancedRawInputWindows.h>

Inheritance diagram for FEnhancedRawInputWindows:
IEnhancedRawInput

Public Member Functions

 FEnhancedRawInputWindows (const TSharedRef< FGenericApplicationMessageHandler > &InMessageHandler)
virtual void SetBindings (const FString InterfaceName) override
 Applies the key binding settings to the specified controller.
virtual void SetAxisBinding (const FString InterfaceName, const EHidAxisUseages AxisUsage, const FName KeyName) override
 Binds a controller axis to a corresponding key.
virtual void SetButtonBinding (const FString InterfaceName, const int32 ButtonIndex, const FName KeyName) override
 Binds a controller button to a corresponding key.
virtual void SetPovAxisBinding (const FString InterfaceName, const int32 PovIndex, FName KeyName) override
 Binds a controller POV axis to a corresponding key.
virtual void SetPovButtonBinding (const FString InterfaceName, const int32 PovIndex, TArray< FName > KeyNames) override
 Binds a controller POV to a corresponding keys.
virtual void SetChannelValue (int32 ControllerId, FForceFeedbackChannelType ChannelType, float Value) override
virtual void SetChannelValues (int32 ControllerId, const FForceFeedbackValues &Values) override
virtual bool Exec (UWorld *InWorld, const TCHAR *Cmd, FOutputDevice &Ar) override
virtual void SetMessageHandler (const TSharedRef< FGenericApplicationMessageHandler > &InMessageHandler) override
virtual void Tick (float DeltaTime) override
virtual void SendControllerEvents () override
virtual bool SupportsForceFeedback (int32 ControllerId) override
virtual bool ProcessMessage (HWND hwnd, uint32 msg, WPARAM wParam, LPARAM lParam, int32 &OutResult) override
void EnumerateDevices ()
 Updates the list of all connected controllers. Notifies the engine of any new or removed controllers.
TArray< FHidDeviceGetConnectedDevices ()
 Returns information about all currently connected devices.
FHidDeviceFindDeviceByUserAndDeviceId (const FPlatformUserId UserId, const FInputDeviceId DeviceId)
 Finds a device by provided user and device ID.
TMap< EHidAxisUseages, FHidAxisGetAxisInfo (FString InterfaceName)
 Returns information about all axis for a specific device.
TArray< FHidPOVGetPovInfo (FString InterfaceName)
 Returns information about all POVs / Hat switches / D-PADs for a specific device.
DWORD NotificationCallback (CM_NOTIFY_ACTION Action)
 Internal callback for hotplug detection, not for public use.
Public Member Functions inherited from IEnhancedRawInput
 IEnhancedRawInput (const TSharedRef< FGenericApplicationMessageHandler > &InMessageHandler)
FEnhancedRawInputDataDelegate & GetDataReceivedHandler ()
 Delegete for raw, unprocessed HID data.

Friends

class UEnhancedRawInputSettings

Additional Inherited Members

Protected Attributes inherited from IEnhancedRawInput
TSharedRef< FGenericApplicationMessageHandler > MessageHandler
FEnhancedRawInputDataDelegate DataReceivedHandler

Detailed Description

Windows Implementation.

Member Function Documentation

◆ FindDeviceByUserAndDeviceId()

FHidDevice * FEnhancedRawInputWindows::FindDeviceByUserAndDeviceId ( const FPlatformUserId UserId,
const FInputDeviceId DeviceId )

Finds a device by provided user and device ID.

Parameters
UserIdas reported from engine
DeviceIdas reported from engine
Returns
Pointer to a FHidDevice Struct

◆ GetAxisInfo()

TMap< EHidAxisUseages, FHidAxis > FEnhancedRawInputWindows::GetAxisInfo ( FString InterfaceName)

Returns information about all axis for a specific device.

Parameters
InterfaceName
Returns
Array of FHidAxis structs

◆ GetConnectedDevices()

TArray< FHidDevice > FEnhancedRawInputWindows::GetConnectedDevices ( )

Returns information about all currently connected devices.

Returns
Array of FHidDevice Device structs

◆ GetPovInfo()

TArray< FHidPOV > FEnhancedRawInputWindows::GetPovInfo ( FString InterfaceName)

Returns information about all POVs / Hat switches / D-PADs for a specific device.

Parameters
InterfaceName
Returns
Array of FHidPOV structs

◆ NotificationCallback()

DWORD FEnhancedRawInputWindows::NotificationCallback ( CM_NOTIFY_ACTION Action)

Internal callback for hotplug detection, not for public use.

Parameters
ActionNotity Action
Returns
HRESULT

◆ SetAxisBinding()

void FEnhancedRawInputWindows::SetAxisBinding ( const FString InterfaceName,
const EHidAxisUseages AxisUsage,
const FName KeyName )
overridevirtual

Binds a controller axis to a corresponding key.

Parameters
InterfaceNameInterface name of the controller
AxisUsageHID Usage for this axis
KeyNameName of the Key to be bound

Reimplemented from IEnhancedRawInput.

◆ SetBindings()

void FEnhancedRawInputWindows::SetBindings ( const FString InterfaceName)
overridevirtual

Applies the key binding settings to the specified controller.

Parameters
InterfaceNameInterface name of the controller

Reimplemented from IEnhancedRawInput.

◆ SetButtonBinding()

void FEnhancedRawInputWindows::SetButtonBinding ( const FString InterfaceName,
const int32 ButtonIndex,
const FName KeyName )
overridevirtual

Binds a controller button to a corresponding key.

Parameters
InterfaceNameInterface name of the controller
ButtonIndexIndex (0 based) of the button
KeyNameName of the Key to be bound

Reimplemented from IEnhancedRawInput.

◆ SetPovAxisBinding()

void FEnhancedRawInputWindows::SetPovAxisBinding ( const FString InterfaceName,
const int32 PovIndex,
FName KeyName )
overridevirtual

Binds a controller POV axis to a corresponding key.

Parameters
InterfaceNameInterface name of the controller
PovIndexIndex (0 based) of the POV
KeyNameName of the Key to be bound

Reimplemented from IEnhancedRawInput.

◆ SetPovButtonBinding()

void FEnhancedRawInputWindows::SetPovButtonBinding ( const FString InterfaceName,
const int32 PovIndex,
TArray< FName > KeyNames )
overridevirtual

Binds a controller POV to a corresponding keys.

Parameters
InterfaceNameInterface name of the controller
PovIndexIndex (0 based) of the POV
KeyNamesName of the Key to be bound

Reimplemented from IEnhancedRawInput.


The documentation for this class was generated from the following files:
  • J:/Unreal/Plugins/UEEnhancedRawInput/Source/EnhancedRawInput/Public/Windows/EnhancedRawInputWindows.h
  • J:/Unreal/Plugins/UEEnhancedRawInput/Source/EnhancedRawInput/Private/Windows/EnhancedRawInputWindows.cpp