Navigation
API > API/Runtime > API/Runtime/InputDevice
Input device interface. Useful for plugins/modules to support custom external input devices.
| Name | IInputDevice |
| Type | class |
| Header File | /Engine/Source/Runtime/InputDevice/Public/IInputDevice.h |
| Include Path | #include "IInputDevice.h" |
Syntax
class IInputDevice
Derived Classes
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~IInputDevice() |
IInputDevice.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool Exec
(
UWorld* InWorld, |
Exec handler to allow console commands to be passed through for debugging | IInputDevice.h | |
virtual IHapticDevice * GetHapticDevice() |
If this device supports a haptic interface, implement this, and inherit the IHapticDevice interface | IInputDevice.h | |
virtual bool IsGamepadAttached() |
IInputDevice.h | ||
virtual void ResetLightColor
(
int32 ControllerId |
IInputDevice.h | ||
void SendControllerEvents() |
Poll for controller state and send events if needed | IInputDevice.h | |
void SetChannelValue
(
int32 ControllerId, |
Force Feedback pass through functions | IInputDevice.h | |
void SetChannelValues
(
int32 ControllerId, |
IInputDevice.h | ||
virtual void SetDeviceProperty
(
int32 ControllerId, |
Sets a property for a given controller id. | IInputDevice.h | |
virtual void SetLightColor
(
int32 ControllerId, |
Pass though functions for light color | IInputDevice.h | |
void SetMessageHandler
(
const TSharedRef< FGenericApplicationMessageHandler >& InMessageHandler |
Set which MessageHandler will get the events from SendControllerEvents. | IInputDevice.h | |
virtual bool SupportsForceFeedback
(
int32 ControllerId |
IInputDevice.h | ||
void Tick
(
float DeltaTime |
Tick the interface (e.g. check for new controllers) | IInputDevice.h |