UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
Events.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"
7#include "UObject/Class.h"
8#include "InputCoreTypes.h"
9#include "Types/SlateEnums.h"
12#include "Layout/Geometry.h"
13#include "Types/SlateVector2.h"
14#include "Events.generated.h"
15
16class FWidgetPath;
17class SWidget;
18class SWindow;
19
23UENUM()
25{
27 Mouse,
28
31
34
36 Cleared,
37
40
43};
44
49USTRUCT(BlueprintType)
51{
53
54public:
55
60 : Cause(EFocusCause::SetDirectly)
61 , UserIndex(0)
62 { }
63
70 : Cause(InCause)
71 , UserIndex(InUserIndex)
72 { }
73
80 {
81 return Cause;
82 }
83
90 {
91 return UserIndex;
92 }
93
94private:
95
97 EFocusCause Cause;
98
100 uint32 UserIndex;
101};
102
103
104USTRUCT(BlueprintType)
106{
108
109public:
114 : UserIndex(0)
115 , PointerIndex(0)
116 { }
117
119 : UserIndex(InUserIndex)
120 , PointerIndex(InPointerIndex)
121 { }
122
125
128};
129
130
149
153USTRUCT(BlueprintType)
155{
157
158public:
159
164 : ModifierKeys(FModifierKeysState())
165 , bIsRepeat(false)
166 , UserIndex(0)
167 , InputDeviceId(INPUTDEVICEID_NONE)
168 , EventPath(nullptr)
169 , EventTimestamp(FPlatformTime::Cycles64()) /* Initalize the timestamp of event input event to the current CPU cycle */
170 { }
171
179 : ModifierKeys(InModifierKeys)
180 , bIsRepeat(bInIsRepeat)
181 , UserIndex(InUserIndex)
182 , InputDeviceId(FInputDeviceId::CreateFromInternalId(InUserIndex))
183 , EventPath(nullptr)
184 , EventTimestamp(FPlatformTime::Cycles64()) /* Initalize the timestamp of event input event to the current CPU cycle */
185 { }
186
188 : ModifierKeys(InModifierKeys)
189 , bIsRepeat(bInIsRepeat)
190 , InputDeviceId(InDeviceId)
191 , EventPath(nullptr)
192 , EventTimestamp(FPlatformTime::Cycles64()) /* Initalize the timestamp of event input event to the current CPU cycle */
193 {
194 // Set the User Index to the PlatformUser ID by default for backwards compatibility
195 UserIndex = GetPlatformUserId().GetInternalId();
196 }
197
202
203public:
204
210 bool IsRepeat() const
211 {
212 return bIsRepeat;
213 }
214
220 bool IsShiftDown() const
221 {
222 return ModifierKeys.IsShiftDown();
223 }
224
228 bool IsLeftShiftDown() const
229 {
230 return ModifierKeys.IsLeftShiftDown();
231 }
232
236 bool IsRightShiftDown() const
237 {
238 return ModifierKeys.IsRightShiftDown();
239 }
240
244 bool IsControlDown() const
245 {
246 return ModifierKeys.IsControlDown();
247 }
248
252 bool IsLeftControlDown() const
253 {
254 return ModifierKeys.IsLeftControlDown();
255 }
256
261 {
262 return ModifierKeys.IsRightControlDown();
263 }
264
268 bool IsAltDown() const
269 {
270 return ModifierKeys.IsAltDown();
271 }
272
276 bool IsLeftAltDown() const
277 {
278 return ModifierKeys.IsLeftAltDown();
279 }
280
284 bool IsRightAltDown() const
285 {
286 return ModifierKeys.IsRightAltDown();
287 }
288
292 bool IsCommandDown() const
293 {
294 return ModifierKeys.IsCommandDown();
295 }
296
300 bool IsLeftCommandDown() const
301 {
302 return ModifierKeys.IsLeftCommandDown();
303 }
304
309 {
310 return ModifierKeys.IsRightCommandDown();
311 }
312
316 bool AreCapsLocked() const
317 {
318 return ModifierKeys.AreCapsLocked();
319 }
320
325 {
326 return ModifierKeys;
327 }
328
333 {
334 return UserIndex;
335 }
336
341 {
342 return InputDeviceId;
343 }
344
352
357 {
358 return EventTimestamp;
359 }
360
365 {
367 }
368
370 SLATECORE_API FGeometry FindGeometry(const TSharedRef<SWidget>& WidgetToFind) const;
371
372 SLATECORE_API TSharedRef<SWindow> GetWindow() const;
373
376 {
377 EventPath = &InEventPath;
378 }
379
381 {
382 return EventPath;
383 }
384
385 SLATECORE_API virtual FText ToText() const;
386
388 SLATECORE_API virtual bool IsPointerEvent() const;
389
391 SLATECORE_API virtual bool IsKeyEvent() const;
392
393protected:
394
395 // State of modifier keys when this event happened.
397
398 // True if this key was auto-repeated.
400
401 // The index of the user that caused the event.
403
404 // The ID of the input device that caused this event.
406
407 // Events are sent along paths. See (GetEventPath).
409
410 // The timestamp of when this input event was recorded. This is the
411 // cycle at which this event was recorded, populated by FPlatformTime::Cycles64()
412 // at the time of construction.
414};
415
416template<>
418{
419 enum
420 {
421 WithCopy = true,
422 };
423};
424
429USTRUCT(BlueprintType)
431{
433
434public:
439
449 const uint32 InUserIndex,
450 const bool bInIsRepeat,
452 const uint32 InKeyCode
453 );
454
458 const bool bInIsRepeat,
460 const uint32 InKeyCode,
462 );
463
465
471 FKey GetKey() const
472 {
473 return Key;
474 }
475
482 {
483 return CharacterCode;
484 }
485
492 {
493 return KeyCode;
494 }
495
496 SLATECORE_API virtual FText ToText() const override;
497
498 SLATECORE_API virtual bool IsKeyEvent() const override;
499
500private:
501 // Name of the key that was pressed.
502 FKey Key;
503
504 // The character code of the key that was pressed. Only applicable to typed character keys, 0 otherwise.
505 uint32 CharacterCode;
506
507 // Original key code received from hardware before any conversion/mapping
508 uint32 KeyCode;
509};
510
511template<>
513{
514 enum
515 {
516 WithCopy = true,
517 };
518};
519
520
525USTRUCT(BlueprintType)
528{
530
531public:
536 : FKeyEvent(FKey(), FModifierKeysState(), false, 0, 0, 0)
537 , AnalogValue(0.0f)
538 {
539 }
540
550 const uint32 InUserIndex,
551 const bool bInIsRepeat,
553 const uint32 InKeyCode,
554 const float InAnalogValue
555 )
557 , AnalogValue(InAnalogValue)
558 { }
559
572
574
582 float GetAnalogValue() const { return AnalogValue; }
583
584 SLATECORE_API virtual FText ToText() const override;
585
586private:
587 // Analog value between 0 and 1 (0 being not pressed at all, 1 being fully pressed).
588 float AnalogValue;
589};
590
591template<>
593{
594 enum
595 {
596 WithCopy = true,
597 };
598};
599
603USTRUCT(BlueprintType)
606{
608
609public:
615 , Character(0)
616 {
617 }
618
623
628
630
637 {
638 return Character;
639 }
640
641 SLATECORE_API virtual FText ToText() const override;
642
643private:
644
645 // The character that was pressed.
647};
648
649
650template<>
652{
653 enum
654 {
655 WithCopy = true,
656 };
657};
658
663 : public TSet<FKey>
664{
665public:
666
673 {
674 this->Add(Key);
675 }
676
677public:
678
679 // The standard set consists of just the left mouse button key.
681
682 // The empty set contains no valid keys.
684};
685
686
687
692USTRUCT(BlueprintType)
695{
697public:
698
703 : ScreenSpacePosition(FVector2f(0.f, 0.f))
704 , LastScreenSpacePosition(FVector2f(0.f, 0.f))
705 , CursorDelta(FVector2f(0.f, 0.f))
706 , PressedButtons(&FTouchKeySet::EmptySet)
707 , EffectingButton()
708 , PointerIndex(0)
709 , TouchpadIndex(0)
710 , Force(1.0f)
711 , bIsTouchEvent(false)
712 , GestureType(EGestureEvent::None)
713 , WheelOrGestureDelta(0.0f, 0)
714 , bIsDirectionInvertedFromDevice(false)
715 , bIsTouchForceChanged(false)
716 , bIsTouchFirstMove(false)
717 { }
718
726 float InWheelDelta,
728 )
730 , ScreenSpacePosition(InScreenSpacePosition)
731 , LastScreenSpacePosition(InLastScreenSpacePosition)
733 , PressedButtons(&InPressedButtons)
734 , EffectingButton(InEffectingButton)
735 , PointerIndex(InPointerIndex)
736 , TouchpadIndex(0)
737 , Force(1.0f)
738 , bIsTouchEvent(false)
739 , GestureType(EGestureEvent::None)
740 , WheelOrGestureDelta(0.0f, InWheelDelta)
741 , bIsDirectionInvertedFromDevice(false)
742 , bIsTouchForceChanged(false)
743 , bIsTouchFirstMove(false)
744 { }
745
753 float InWheelDelta,
755 )
757 , ScreenSpacePosition(InScreenSpacePosition)
758 , LastScreenSpacePosition(InLastScreenSpacePosition)
760 , PressedButtons(&InPressedButtons)
761 , EffectingButton(InEffectingButton)
762 , PointerIndex(InPointerIndex)
763 , TouchpadIndex(0)
764 , Force(1.0f)
765 , bIsTouchEvent(false)
766 , GestureType(EGestureEvent::None)
767 , WheelOrGestureDelta(0.0f, InWheelDelta)
768 , bIsDirectionInvertedFromDevice(false)
769 , bIsTouchForceChanged(false)
770 , bIsTouchFirstMove(false)
771 { }
772
780 float InWheelDelta,
783 )
785 , ScreenSpacePosition(InScreenSpacePosition)
786 , LastScreenSpacePosition(InLastScreenSpacePosition)
788 , PressedButtons(&InPressedButtons)
789 , EffectingButton(InEffectingButton)
790 , PointerIndex(InPointerIndex)
791 , TouchpadIndex(0)
792 , Force(1.0f)
793 , bIsTouchEvent(false)
794 , GestureType(EGestureEvent::None)
795 , WheelOrGestureDelta(0.0f, InWheelDelta)
796 , bIsDirectionInvertedFromDevice(false)
797 , bIsTouchForceChanged(false)
798 , bIsTouchFirstMove(false)
799 {
800 if (InOptionalSlateUserIndex.IsSet())
801 {
802 UserIndex = InOptionalSlateUserIndex.GetValue();
803 }
804 }
805
814 )
816 , ScreenSpacePosition(InScreenSpacePosition)
817 , LastScreenSpacePosition(InLastScreenSpacePosition)
818 , CursorDelta(InDelta)
819 , PressedButtons(&InPressedButtons)
820 , PointerIndex(InPointerIndex)
821 , TouchpadIndex(0)
822 , Force(1.0f)
823 , bIsTouchEvent(false)
824 , GestureType(EGestureEvent::None)
825 , WheelOrGestureDelta(0.0f, 0.0f)
826 , bIsDirectionInvertedFromDevice(false)
827 , bIsTouchForceChanged(false)
828 , bIsTouchFirstMove(false)
829 { }
830
839 )
841 , ScreenSpacePosition(InScreenSpacePosition)
842 , LastScreenSpacePosition(InLastScreenSpacePosition)
843 , CursorDelta(InDelta)
844 , PressedButtons(&InPressedButtons)
845 , PointerIndex(InPointerIndex)
846 , TouchpadIndex(0)
847 , Force(1.0f)
848 , bIsTouchEvent(false)
849 , GestureType(EGestureEvent::None)
850 , WheelOrGestureDelta(0.0f, 0.0f)
851 , bIsDirectionInvertedFromDevice(false)
852 , bIsTouchForceChanged(false)
853 , bIsTouchFirstMove(false)
854 { }
855
861 float InForce,
863 bool bInIsForceChanged = false,
864 bool bInIsFirstMove = false,
867 )
869 , ScreenSpacePosition(InScreenSpacePosition)
870 , LastScreenSpacePosition(InLastScreenSpacePosition)
872 , PressedButtons(bPressLeftMouseButton ? &FTouchKeySet::StandardSet : &FTouchKeySet::EmptySet)
873 , EffectingButton(EKeys::LeftMouseButton)
874 , PointerIndex(InPointerIndex)
875 , TouchpadIndex(InTouchpadIndex)
876 , Force(InForce)
877 , bIsTouchEvent(true)
878 , GestureType(EGestureEvent::None)
879 , WheelOrGestureDelta(0.0f, 0.0f)
880 , bIsDirectionInvertedFromDevice(false)
881 , bIsTouchForceChanged(bInIsForceChanged)
882 , bIsTouchFirstMove(bInIsFirstMove)
883 { }
884
890 float InForce,
892 bool bInIsForceChanged = false,
893 bool bInIsFirstMove = false,
897 )
899 , ScreenSpacePosition(InScreenSpacePosition)
900 , LastScreenSpacePosition(InLastScreenSpacePosition)
902 , PressedButtons(bPressLeftMouseButton ? &FTouchKeySet::StandardSet : &FTouchKeySet::EmptySet)
903 , EffectingButton(EKeys::LeftMouseButton)
904 , PointerIndex(InPointerIndex)
905 , TouchpadIndex(InTouchpadIndex)
906 , Force(InForce)
907 , bIsTouchEvent(true)
908 , GestureType(EGestureEvent::None)
909 , WheelOrGestureDelta(0.0f, 0.0f)
910 , bIsDirectionInvertedFromDevice(false)
911 , bIsTouchForceChanged(bInIsForceChanged)
912 , bIsTouchFirstMove(bInIsFirstMove)
913 {
914 if (InOptionalSlateUserIndex.IsSet())
915 {
916 UserIndex = InOptionalSlateUserIndex.GetValue();
917 }
918 }
919
929 )
931 , ScreenSpacePosition(InScreenSpacePosition)
932 , LastScreenSpacePosition(InLastScreenSpacePosition)
933 , CursorDelta(FVector2f(LastScreenSpacePosition) - FVector2f(ScreenSpacePosition))
934 , PressedButtons(&InPressedButtons)
935 , PointerIndex(0)
936 , TouchpadIndex(0)
937 , Force(1.0f)
938 , bIsTouchEvent(InGestureType != EGestureEvent::None)
939 , GestureType(InGestureType)
940 , WheelOrGestureDelta(InGestureDelta)
941 , bIsDirectionInvertedFromDevice(bInIsDirectionInvertedFromDevice)
942 , bIsTouchForceChanged(false)
943 , bIsTouchFirstMove(false)
944 { }
945
956
958
959public:
960
962 const UE::Slate::FDeprecateVector2DResult& GetScreenSpacePosition() const { return ScreenSpacePosition; }
963
965 const UE::Slate::FDeprecateVector2DResult& GetLastScreenSpacePosition() const { return LastScreenSpacePosition; }
966
968 const UE::Slate::FDeprecateVector2DResult& GetCursorDelta() const { return CursorDelta; }
969
971 bool IsMouseButtonDown( FKey MouseButton ) const { return PressedButtons->Contains( MouseButton ); }
972
974 FKey GetEffectingButton() const { return EffectingButton; }
975
977 float GetWheelDelta() const { return UE_REAL_TO_FLOAT(WheelOrGestureDelta.Y); }
978
980 uint32 GetPointerIndex() const { return PointerIndex; }
981
983 uint32 GetTouchpadIndex() const { return TouchpadIndex; }
984
986 float GetTouchForce() const { return Force; }
987
989 bool IsTouchEvent() const { return bIsTouchEvent; }
990
992 bool IsTouchForceChangedEvent() const { return bIsTouchForceChanged; }
993
995 bool IsTouchFirstMoveEvent() const { return bIsTouchFirstMove; }
996
998 EGestureEvent GetGestureType() const { return GestureType; }
999
1001 const UE::Slate::FDeprecateVector2DResult& GetGestureDelta() const { return WheelOrGestureDelta; }
1002
1004 bool IsDirectionInvertedFromDevice() const { return bIsDirectionInvertedFromDevice; }
1005
1007 const TSet<FKey>& GetPressedButtons() const { return *PressedButtons; }
1008
1009 SLATECORE_API virtual FText ToText() const override;
1010
1011 SLATECORE_API virtual bool IsPointerEvent() const override;
1012
1013 template<typename PointerEventType>
1015 {
1017 NewEvent.ScreenSpacePosition = VirtualPosition.CurrentCursorPosition;
1018 NewEvent.LastScreenSpacePosition = VirtualPosition.LastCursorPosition;
1019 //NewEvent.CursorDelta = VirtualPosition.GetDelta();
1020 return NewEvent;
1021 }
1022
1023private:
1024
1025 UE::Slate::FDeprecateVector2DResult ScreenSpacePosition;
1026 UE::Slate::FDeprecateVector2DResult LastScreenSpacePosition;
1028 const TSet<FKey>* PressedButtons;
1029 FKey EffectingButton;
1030 uint32 PointerIndex;
1031 uint32 TouchpadIndex;
1032 float Force;
1033 bool bIsTouchEvent;
1034 EGestureEvent GestureType;
1035 UE::Slate::FDeprecateVector2DResult WheelOrGestureDelta;
1036 bool bIsDirectionInvertedFromDevice;
1037 bool bIsTouchForceChanged;
1038 bool bIsTouchFirstMove;
1039 // NOTE: If you add a new member, make sure you add it to the assignment operator.
1040};
1041
1042
1043template<>
1045{
1046 enum
1047 {
1048 WithCopy = true,
1049 };
1050};
1051
1052
1057USTRUCT(BlueprintType)
1060{
1062
1063public:
1068 : Tilt(FVector(0, 0, 0))
1069 , RotationRate(FVector(0, 0, 0))
1070 , Gravity(FVector(0, 0, 0))
1071 , Acceleration(FVector(0, 0, 0))
1072 { }
1073
1076 const FVector& InTilt,
1077 const FVector& InRotationRate,
1078 const FVector& InGravity,
1079 const FVector& InAcceleration
1080 )
1082 , Tilt(InTilt)
1083 , RotationRate(InRotationRate)
1086 { }
1087
1090 const FVector& InTilt,
1091 const FVector& InRotationRate,
1092 const FVector& InGravity,
1093 const FVector& InAcceleration
1094 )
1096 , Tilt(InTilt)
1097 , RotationRate(InRotationRate)
1100 { }
1101
1102public:
1103
1105 const FVector& GetTilt() const { return Tilt; }
1106
1108 const FVector& GetRotationRate() const { return RotationRate; }
1109
1111 const FVector& GetGravity() const { return Gravity; }
1112
1114 const FVector& GetAcceleration() const { return Acceleration; }
1115
1116private:
1117
1118 // The current tilt of the device/controller.
1119 FVector Tilt;
1120
1121 // The rotation speed.
1122 FVector RotationRate;
1123
1124 // The gravity vector (pointing down into the ground).
1126
1127 // The 3D acceleration of the device.
1129};
1130
1131
1132template<>
1134{
1135 enum
1136 {
1137 WithCopy = true,
1138 };
1139};
1140
1145USTRUCT(BlueprintType)
1148{
1150
1151public:
1156 : NavigationType(EUINavigation::Invalid)
1157 , NavigationGenesis(ENavigationGenesis::User)
1158 { }
1159
1165
1171
1172public:
1173
1175 EUINavigation GetNavigationType() const { return NavigationType; }
1176
1178 ENavigationGenesis GetNavigationGenesis() const { return NavigationGenesis; }
1179
1180private:
1181
1182 // The navigation type
1183 EUINavigation NavigationType;
1184
1185 // The navigation genesis
1186 ENavigationGenesis NavigationGenesis;
1187};
1188
1189
1190template<>
1192{
1193 enum
1194 {
1195 WithCopy = true,
1196 };
1197};
1198
1206{
1207public:
1208
1215
1220
1221public:
1222
1225 {
1226 return ActivationType;
1227 }
1228
1231 {
1232 ActivationType = InActivationType;
1233 }
1234
1237 {
1238 return AffectedWindow;
1239 }
1240
1241private:
1242
1243 EActivationType ActivationType;
1244 TSharedRef<SWindow> AffectedWindow;
1245};
constexpr FInputDeviceId INPUTDEVICEID_NONE
Definition CoreMiscDefines.h:590
FPlatformTypes::TCHAR TCHAR
Either ANSICHAR or WIDECHAR, depending on whether the platform supports wide characters or the requir...
Definition Platform.h:1135
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
FPlatformTypes::uint64 uint64
A 64-bit unsigned integer.
Definition Platform.h:1117
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
EFocusCause
Definition Events.h:25
@ OtherWidgetLostFocus
return true
Definition ExternalRpcRegistry.cpp:601
EGestureEvent
Definition GenericApplicationMessageHandler.h:138
#define UE_REAL_TO_FLOAT(argument)
Definition LargeWorldCoordinates.h:30
#define UENUM(...)
Definition ObjectMacros.h:749
#define USTRUCT(...)
Definition ObjectMacros.h:746
#define GENERATED_USTRUCT_BODY(...)
Definition ObjectMacros.h:767
ENavigationGenesis
Definition SlateEnums.h:158
EUINavigation
Definition SlateEnums.h:99
uint8_t uint8
Definition binka_ue_file_header.h:8
uint32_t uint32
Definition binka_ue_file_header.h:6
Definition GenericApplication.h:75
Definition Text.h:385
Definition Events.h:664
static SLATECORE_API const FTouchKeySet EmptySet
Definition Events.h:683
FTouchKeySet(FKey Key)
Definition Events.h:672
static SLATECORE_API const FTouchKeySet StandardSet
Definition Events.h:680
Definition WidgetPath.h:51
Definition Events.h:1206
EActivationType
Definition Events.h:1210
@ EA_Deactivate
Definition Events.h:1213
@ EA_Activate
Definition Events.h:1211
@ EA_ActivateByMouse
Definition Events.h:1212
TSharedRef< SWindow > GetAffectedWindow() const
Definition Events.h:1236
FWindowActivateEvent(EActivationType InActivationType, TSharedRef< SWindow > InAffectedWindow)
Definition Events.h:1216
void SetActivationType(EActivationType InActivationType)
Definition Events.h:1230
EActivationType GetActivationType() const
Definition Events.h:1224
virtual APPLICATIONCORE_API FPlatformUserId GetUserForInputDevice(FInputDeviceId DeviceId) const
Definition GenericPlatformInputDeviceMapper.cpp:263
static APPLICATIONCORE_API IPlatformInputDeviceMapper & Get()
Definition GenericPlatformInputDeviceMapper.cpp:97
Definition SWidget.h:165
Definition SWindow.h:243
Definition SharedPointer.h:153
FDeprecateSlateVector2D FDeprecateVector2DResult
Definition SlateVector2.h:469
@ false
Definition radaudio_common.h:23
Definition InputCoreTypes.h:290
Definition Events.h:528
FAnalogInputEvent(const FKey InKey, const FModifierKeysState &InModifierKeys, const uint32 InUserIndex, const bool bInIsRepeat, const uint32 InCharacterCode, const uint32 InKeyCode, const float InAnalogValue)
Definition Events.h:548
virtual SLATECORE_API ~FAnalogInputEvent()
FAnalogInputEvent(const FKey InKey, const FModifierKeysState &InModifierKeys, const FInputDeviceId InDeviceId, const bool bInIsRepeat, const uint32 InCharacterCode, const uint32 InKeyCode, const float InAnalogValue, const TOptional< int32 > InOptionalSlateUserIndex=TOptional< int32 >())
Definition Events.h:560
FAnalogInputEvent()
Definition Events.h:535
float GetAnalogValue() const
Definition Events.h:582
Definition AndroidPlatformTime.h:18
static uint64 Cycles64()
Definition AndroidPlatformTime.h:34
Definition Events.h:106
int32 UserIndex
Definition Events.h:124
FCaptureLostEvent()
Definition Events.h:113
FCaptureLostEvent(int32 InUserIndex, int32 InPointerIndex)
Definition Events.h:118
int32 PointerIndex
Definition Events.h:127
Definition Events.h:606
FCharacterEvent(const TCHAR InCharacter, const FModifierKeysState &InModifierKeys, const uint32 InUserIndex, const bool bInIsRepeat)
Definition Events.h:619
virtual SLATECORE_API ~FCharacterEvent()
FCharacterEvent()
Definition Events.h:613
TCHAR GetCharacter() const
Definition Events.h:636
FCharacterEvent(const TCHAR InCharacter, const FModifierKeysState &InModifierKeys, const FInputDeviceId InDeviceId, const bool bInIsRepeat)
Definition Events.h:624
Definition Events.h:51
FFocusEvent()
Definition Events.h:59
uint32 GetUser() const
Definition Events.h:89
FFocusEvent(const EFocusCause InCause, uint32 InUserIndex)
Definition Events.h:69
EFocusCause GetCause() const
Definition Events.h:79
static double ToMilliseconds64(const uint64 Cycles)
Definition GenericPlatformTime.h:202
Definition Geometry.h:40
Definition CoreMiscDefines.h:524
Definition Events.h:155
uint32 GetUserIndex() const
Definition Events.h:332
FInputDeviceId GetInputDeviceId() const
Definition Events.h:340
void SetEventPath(const FWidgetPath &InEventPath)
Definition Events.h:375
const FWidgetPath * EventPath
Definition Events.h:408
FPlatformUserId GetPlatformUserId() const
Definition Events.h:348
const FModifierKeysState & GetModifierKeys() const
Definition Events.h:324
const FWidgetPath * GetEventPath() const
Definition Events.h:380
double GetMillisecondsSinceEvent() const
Definition Events.h:364
uint32 UserIndex
Definition Events.h:402
bool IsRightCommandDown() const
Definition Events.h:308
virtual SLATECORE_API ~FInputEvent()
bool IsRightAltDown() const
Definition Events.h:284
bool IsLeftControlDown() const
Definition Events.h:252
uint64 EventTimestamp
Definition Events.h:413
FInputEvent(const FModifierKeysState &InModifierKeys, const int32 InUserIndex, const bool bInIsRepeat)
Definition Events.h:178
bool bIsRepeat
Definition Events.h:399
bool IsLeftCommandDown() const
Definition Events.h:300
bool IsControlDown() const
Definition Events.h:244
FInputEvent(const FModifierKeysState &InModifierKeys, const FInputDeviceId InDeviceId, const bool bInIsRepeat)
Definition Events.h:187
bool AreCapsLocked() const
Definition Events.h:316
FModifierKeysState ModifierKeys
Definition Events.h:396
bool IsLeftShiftDown() const
Definition Events.h:228
bool IsShiftDown() const
Definition Events.h:220
FInputDeviceId InputDeviceId
Definition Events.h:405
bool IsRepeat() const
Definition Events.h:210
bool IsRightShiftDown() const
Definition Events.h:236
uint64 GetEventTimestamp() const
Definition Events.h:356
bool IsCommandDown() const
Definition Events.h:292
bool IsRightControlDown() const
Definition Events.h:260
FInputEvent()
Definition Events.h:163
bool IsAltDown() const
Definition Events.h:268
bool IsLeftAltDown() const
Definition Events.h:276
Definition Events.h:431
uint32 GetCharacter() const
Definition Events.h:481
virtual SLATECORE_API ~FKeyEvent()
FKey GetKey() const
Definition Events.h:471
uint32 GetKeyCode() const
Definition Events.h:491
Definition InputCoreTypes.h:50
Definition Events.h:1060
const FVector & GetTilt() const
Definition Events.h:1105
FMotionEvent(uint32 InUserIndex, const FVector &InTilt, const FVector &InRotationRate, const FVector &InGravity, const FVector &InAcceleration)
Definition Events.h:1074
const FVector & GetAcceleration() const
Definition Events.h:1114
FMotionEvent()
Definition Events.h:1067
const FVector & GetRotationRate() const
Definition Events.h:1108
const FVector & GetGravity() const
Definition Events.h:1111
FMotionEvent(const FInputDeviceId InDeviceId, const FVector &InTilt, const FVector &InRotationRate, const FVector &InGravity, const FVector &InAcceleration)
Definition Events.h:1088
Definition Events.h:1148
FNavigationEvent(const FModifierKeysState &InModifierKeys, const int32 InUserIndex, EUINavigation InNavigationType, ENavigationGenesis InNavigationGenesis)
Definition Events.h:1160
EUINavigation GetNavigationType() const
Definition Events.h:1175
FNavigationEvent(const FModifierKeysState &InModifierKeys, const FInputDeviceId InDeviceId, EUINavigation InNavigationType, ENavigationGenesis InNavigationGenesis)
Definition Events.h:1166
FNavigationEvent()
Definition Events.h:1155
ENavigationGenesis GetNavigationGenesis() const
Definition Events.h:1178
Definition CoreMiscDefines.h:470
Definition Events.h:695
FPointerEvent(uint32 InUserIndex, uint32 InPointerIndex, const UE::Slate::FDeprecateVector2DParameter &InScreenSpacePosition, const UE::Slate::FDeprecateVector2DParameter &InLastScreenSpacePosition, const UE::Slate::FDeprecateVector2DParameter &InDelta, const TSet< FKey > &InPressedButtons, const FModifierKeysState &InModifierKeys)
Definition Events.h:806
uint32 GetTouchpadIndex() const
Definition Events.h:983
float GetWheelDelta() const
Definition Events.h:977
FPointerEvent(uint32 InUserIndex, uint32 InPointerIndex, const UE::Slate::FDeprecateVector2DParameter &InScreenSpacePosition, const UE::Slate::FDeprecateVector2DParameter &InLastScreenSpacePosition, const TSet< FKey > &InPressedButtons, FKey InEffectingButton, float InWheelDelta, const FModifierKeysState &InModifierKeys)
Definition Events.h:746
static PointerEventType MakeTranslatedEvent(const PointerEventType &InPointerEvent, const FVirtualPointerPosition &VirtualPosition)
Definition Events.h:1014
bool IsDirectionInvertedFromDevice() const
Definition Events.h:1004
bool IsTouchForceChangedEvent() const
Definition Events.h:992
FPointerEvent(FInputDeviceId InDeviceId, uint32 InPointerIndex, const UE::Slate::FDeprecateVector2DParameter &InScreenSpacePosition, const UE::Slate::FDeprecateVector2DParameter &InLastScreenSpacePosition, const TSet< FKey > &InPressedButtons, FKey InEffectingButton, float InWheelDelta, const FModifierKeysState &InModifierKeys, const TOptional< int32 > InOptionalSlateUserIndex=TOptional< int32 >())
Definition Events.h:773
FPointerEvent(uint32 InPointerIndex, const UE::Slate::FDeprecateVector2DParameter &InScreenSpacePosition, const UE::Slate::FDeprecateVector2DParameter &InLastScreenSpacePosition, const UE::Slate::FDeprecateVector2DParameter &InDelta, const TSet< FKey > &InPressedButtons, const FModifierKeysState &InModifierKeys)
Definition Events.h:832
const UE::Slate::FDeprecateVector2DResult & GetLastScreenSpacePosition() const
Definition Events.h:965
FPointerEvent(uint32 InPointerIndex, const UE::Slate::FDeprecateVector2DParameter &InScreenSpacePosition, const UE::Slate::FDeprecateVector2DParameter &InLastScreenSpacePosition, const TSet< FKey > &InPressedButtons, FKey InEffectingButton, float InWheelDelta, const FModifierKeysState &InModifierKeys)
Definition Events.h:720
FPointerEvent(const FPointerEvent &Other, const UE::Slate::FDeprecateVector2DParameter &InScreenSpacePosition, const UE::Slate::FDeprecateVector2DParameter &InLastScreenSpacePosition)
Definition Events.h:947
float GetTouchForce() const
Definition Events.h:986
bool IsTouchFirstMoveEvent() const
Definition Events.h:995
EGestureEvent GetGestureType() const
Definition Events.h:998
const UE::Slate::FDeprecateVector2DResult & GetCursorDelta() const
Definition Events.h:968
virtual SLATECORE_API ~FPointerEvent()
uint32 GetPointerIndex() const
Definition Events.h:980
FKey GetEffectingButton() const
Definition Events.h:974
const TSet< FKey > & GetPressedButtons() const
Definition Events.h:1007
FPointerEvent(FInputDeviceId InDeviceId, uint32 InPointerIndex, const UE::Slate::FDeprecateVector2DParameter &InScreenSpacePosition, const UE::Slate::FDeprecateVector2DParameter &InLastScreenSpacePosition, float InForce, bool bPressLeftMouseButton, bool bInIsForceChanged=false, bool bInIsFirstMove=false, const FModifierKeysState &InModifierKeys=FModifierKeysState(), uint32 InTouchpadIndex=0, const TOptional< int32 > InOptionalSlateUserIndex=TOptional< int32 >())
Definition Events.h:885
bool IsTouchEvent() const
Definition Events.h:989
FPointerEvent(const UE::Slate::FDeprecateVector2DParameter &InScreenSpacePosition, const UE::Slate::FDeprecateVector2DParameter &InLastScreenSpacePosition, const TSet< FKey > &InPressedButtons, const FModifierKeysState &InModifierKeys, EGestureEvent InGestureType, const UE::Slate::FDeprecateVector2DParameter &InGestureDelta, bool bInIsDirectionInvertedFromDevice)
Definition Events.h:921
const UE::Slate::FDeprecateVector2DResult & GetGestureDelta() const
Definition Events.h:1001
bool IsMouseButtonDown(FKey MouseButton) const
Definition Events.h:971
FPointerEvent()
Definition Events.h:702
const UE::Slate::FDeprecateVector2DResult & GetScreenSpacePosition() const
Definition Events.h:962
FPointerEvent(uint32 InUserIndex, uint32 InPointerIndex, const UE::Slate::FDeprecateVector2DParameter &InScreenSpacePosition, const UE::Slate::FDeprecateVector2DParameter &InLastScreenSpacePosition, float InForce, bool bPressLeftMouseButton, bool bInIsForceChanged=false, bool bInIsFirstMove=false, const FModifierKeysState &InModifierKeys=FModifierKeysState(), uint32 InTouchpadIndex=0)
Definition Events.h:856
Definition Events.h:135
UE::Slate::FDeprecateVector2DResult CurrentCursorPosition
Definition Events.h:146
UE::Slate::FDeprecateVector2DResult LastCursorPosition
Definition Events.h:147
FVirtualPointerPosition(const UE::Slate::FDeprecateVector2DParameter &InCurrentCursorPosition, const UE::Slate::FDeprecateVector2DParameter &InLastCursorPosition)
Definition Events.h:141
FVirtualPointerPosition()
Definition Events.h:136
Definition Optional.h:131
Definition StructOpsTypeTraits.h:11
@ WithCopy
Definition StructOpsTypeTraits.h:17
Definition StructOpsTypeTraits.h:46
Definition SlateVector2.h:485