UDocumentation
UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
IInputProcessor.h
Go to the documentation of this file.
1
// Copyright Epic Games, Inc. All Rights Reserved.
2
3
#pragma once
4
5
#include "
CoreMinimal.h
"
6
#include "
GenericPlatform/ICursor.h
"
7
8
class
FSlateApplication
;
9
struct
FAnalogInputEvent
;
10
struct
FKeyEvent
;
11
struct
FMotionEvent
;
12
struct
FPointerEvent
;
13
17
class
IInputProcessor
18
{
19
public
:
20
IInputProcessor
(){};
21
virtual
~IInputProcessor
(){}
22
23
virtual
void
Tick
(
const
float
DeltaTime,
FSlateApplication
& SlateApp,
TSharedRef<ICursor>
Cursor) = 0;
24
26
virtual
bool
HandleKeyDownEvent
(
FSlateApplication
& SlateApp,
const
FKeyEvent
&
InKeyEvent
) {
return
false
; }
27
29
virtual
bool
HandleKeyUpEvent
(
FSlateApplication
& SlateApp,
const
FKeyEvent
&
InKeyEvent
) {
return
false
; }
30
32
virtual
bool
HandleAnalogInputEvent
(
FSlateApplication
& SlateApp,
const
FAnalogInputEvent
&
InAnalogInputEvent
) {
return
false
; }
33
35
virtual
bool
HandleMouseMoveEvent
(
FSlateApplication
& SlateApp,
const
FPointerEvent
&
MouseEvent
) {
return
false
; }
36
38
virtual
bool
HandleMouseButtonDownEvent
(
FSlateApplication
& SlateApp,
const
FPointerEvent
&
MouseEvent
) {
return
false
; }
39
41
virtual
bool
HandleMouseButtonUpEvent
(
FSlateApplication
& SlateApp,
const
FPointerEvent
&
MouseEvent
) {
return
false
; }
42
44
virtual
bool
HandleMouseButtonDoubleClickEvent
(
FSlateApplication
& SlateApp,
const
FPointerEvent
&
MouseEvent
) {
return
false
; }
45
47
virtual
bool
HandleMouseWheelOrGestureEvent
(
FSlateApplication
& SlateApp,
const
FPointerEvent
&
InWheelEvent
,
const
FPointerEvent
*
InGestureEvent
) {
return
false
; }
48
50
virtual
bool
HandleMotionDetectedEvent
(
FSlateApplication
& SlateApp,
const
FMotionEvent
&
MotionEvent
) {
return
false
; };
51
53
virtual
const
TCHAR
*
GetDebugName
()
const
{
return
TEXT
(
""
); }
54
};
CoreMinimal.h
TEXT
#define TEXT(x)
Definition
Platform.h:1272
TCHAR
FPlatformTypes::TCHAR TCHAR
Either ANSICHAR or WIDECHAR, depending on whether the platform supports wide characters or the requir...
Definition
Platform.h:1135
StaticCastSharedRef
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition
SharedPointer.h:127
ICursor.h
FSlateApplication
Definition
SlateApplication.h:252
IInputProcessor
Definition
IInputProcessor.h:18
IInputProcessor::IInputProcessor
IInputProcessor()
Definition
IInputProcessor.h:20
IInputProcessor::~IInputProcessor
virtual ~IInputProcessor()
Definition
IInputProcessor.h:21
IInputProcessor::Tick
virtual void Tick(const float DeltaTime, FSlateApplication &SlateApp, TSharedRef< ICursor > Cursor)=0
IInputProcessor::HandleMouseWheelOrGestureEvent
virtual bool HandleMouseWheelOrGestureEvent(FSlateApplication &SlateApp, const FPointerEvent &InWheelEvent, const FPointerEvent *InGestureEvent)
Definition
IInputProcessor.h:47
IInputProcessor::HandleMouseMoveEvent
virtual bool HandleMouseMoveEvent(FSlateApplication &SlateApp, const FPointerEvent &MouseEvent)
Definition
IInputProcessor.h:35
IInputProcessor::HandleKeyUpEvent
virtual bool HandleKeyUpEvent(FSlateApplication &SlateApp, const FKeyEvent &InKeyEvent)
Definition
IInputProcessor.h:29
IInputProcessor::HandleMotionDetectedEvent
virtual bool HandleMotionDetectedEvent(FSlateApplication &SlateApp, const FMotionEvent &MotionEvent)
Definition
IInputProcessor.h:50
IInputProcessor::HandleAnalogInputEvent
virtual bool HandleAnalogInputEvent(FSlateApplication &SlateApp, const FAnalogInputEvent &InAnalogInputEvent)
Definition
IInputProcessor.h:32
IInputProcessor::HandleMouseButtonDownEvent
virtual bool HandleMouseButtonDownEvent(FSlateApplication &SlateApp, const FPointerEvent &MouseEvent)
Definition
IInputProcessor.h:38
IInputProcessor::GetDebugName
virtual const TCHAR * GetDebugName() const
Definition
IInputProcessor.h:53
IInputProcessor::HandleMouseButtonDoubleClickEvent
virtual bool HandleMouseButtonDoubleClickEvent(FSlateApplication &SlateApp, const FPointerEvent &MouseEvent)
Definition
IInputProcessor.h:44
IInputProcessor::HandleMouseButtonUpEvent
virtual bool HandleMouseButtonUpEvent(FSlateApplication &SlateApp, const FPointerEvent &MouseEvent)
Definition
IInputProcessor.h:41
IInputProcessor::HandleKeyDownEvent
virtual bool HandleKeyDownEvent(FSlateApplication &SlateApp, const FKeyEvent &InKeyEvent)
Definition
IInputProcessor.h:26
TSharedRef
Definition
SharedPointer.h:153
FAnalogInputEvent
Definition
Events.h:528
FKeyEvent
Definition
Events.h:431
FMotionEvent
Definition
Events.h:1060
FPointerEvent
Definition
Events.h:695
Engine
Source
Runtime
Slate
Public
Framework
Application
IInputProcessor.h
Generated by
1.9.8