![]() |
Enhanced Raw Input 1.0
Enhanced Raw Input for Unreal Engine
|
Windows Implementation. More...
#include <EnhancedRawInputWindows.h>
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< FHidDevice > | GetConnectedDevices () |
Returns information about all currently connected devices. | |
FHidDevice * | FindDeviceByUserAndDeviceId (const FPlatformUserId UserId, const FInputDeviceId DeviceId) |
Finds a device by provided user and device ID. | |
TMap< EHidAxisUseages, FHidAxis > | GetAxisInfo (FString InterfaceName) |
Returns information about all axis for a specific device. | |
TArray< FHidPOV > | GetPovInfo (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 |
Windows Implementation.
FHidDevice * FEnhancedRawInputWindows::FindDeviceByUserAndDeviceId | ( | const FPlatformUserId | UserId, |
const FInputDeviceId | DeviceId ) |
Finds a device by provided user and device ID.
UserId | as reported from engine |
DeviceId | as reported from engine |
TMap< EHidAxisUseages, FHidAxis > FEnhancedRawInputWindows::GetAxisInfo | ( | FString | InterfaceName | ) |
Returns information about all axis for a specific device.
InterfaceName |
TArray< FHidDevice > FEnhancedRawInputWindows::GetConnectedDevices | ( | ) |
Returns information about all currently connected devices.
TArray< FHidPOV > FEnhancedRawInputWindows::GetPovInfo | ( | FString | InterfaceName | ) |
Returns information about all POVs / Hat switches / D-PADs for a specific device.
InterfaceName |
DWORD FEnhancedRawInputWindows::NotificationCallback | ( | CM_NOTIFY_ACTION | Action | ) |
Internal callback for hotplug detection, not for public use.
Action | Notity Action |
|
overridevirtual |
Binds a controller axis to a corresponding key.
InterfaceName | Interface name of the controller |
AxisUsage | HID Usage for this axis |
KeyName | Name of the Key to be bound |
Reimplemented from IEnhancedRawInput.
|
overridevirtual |
Applies the key binding settings to the specified controller.
InterfaceName | Interface name of the controller |
Reimplemented from IEnhancedRawInput.
|
overridevirtual |
Binds a controller button to a corresponding key.
InterfaceName | Interface name of the controller |
ButtonIndex | Index (0 based) of the button |
KeyName | Name of the Key to be bound |
Reimplemented from IEnhancedRawInput.
|
overridevirtual |
Binds a controller POV axis to a corresponding key.
InterfaceName | Interface name of the controller |
PovIndex | Index (0 based) of the POV |
KeyName | Name of the Key to be bound |
Reimplemented from IEnhancedRawInput.
|
overridevirtual |
Binds a controller POV to a corresponding keys.
InterfaceName | Interface name of the controller |
PovIndex | Index (0 based) of the POV |
KeyNames | Name of the Key to be bound |
Reimplemented from IEnhancedRawInput.