UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
KismetInputLibrary.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 "InputCoreTypes.h"
9#include "Input/Events.h"
11#include "KismetInputLibrary.generated.h"
12
14
15UENUM(BlueprintType)
17{
18 None,
19 Scroll,
20 Magnify,
21 Swipe,
22 Rotate,
24};
25
27USTRUCT(BlueprintType, DisplayName="Modifier Keys State")
38
39UCLASS(meta=(ScriptName="InputLibrary"), MinimalAPI)
41{
43
44
45 UFUNCTION(BlueprintCallable, Category="Input|MotionTracking")
46 static ENGINE_API void CalibrateTilt();
47
54 UFUNCTION(BlueprintPure, meta=(DisplayName = "Equal (Key)", CompactNodeTitle = "=="), Category="Input|Key")
56
63 UFUNCTION( BlueprintPure, meta = ( DisplayName = "Equal (InputChord)", CompactNodeTitle = "==" ), Category = "Input|Key" )
65
69 UFUNCTION(BlueprintPure, meta = (DisplayName = "Is Modifier Key"), Category="Input|Key")
70 static ENGINE_API bool Key_IsModifierKey(const FKey& Key);
71
75 UFUNCTION(BlueprintPure, meta = (DisplayName = "Is Gamepad Key"), Category="Input|Key")
76 static ENGINE_API bool Key_IsGamepadKey(const FKey& Key);
77
81 UFUNCTION(BlueprintPure, meta = (DisplayName = "Is Mouse Button"), Category="Input|Key")
82 static ENGINE_API bool Key_IsMouseButton(const FKey& Key);
83
87 UFUNCTION(BlueprintPure, meta = (DisplayName = "Is Keyboard Key"), Category="Input|Key")
88 static ENGINE_API bool Key_IsKeyboardKey(const FKey& Key);
89
93 UFUNCTION(BlueprintPure, meta = (DisplayName = "Is Axis 1D"), Category="Input|Key")
94 static ENGINE_API bool Key_IsAxis1D(const FKey& Key);
95
99 UFUNCTION(BlueprintPure, meta = (DisplayName = "Is Axis 2D"), Category="Input|Key")
100 static ENGINE_API bool Key_IsAxis2D(const FKey& Key);
101
105 UFUNCTION(BlueprintPure, meta = (DisplayName = "Is Axis 3D"), Category="Input|Key")
106 static ENGINE_API bool Key_IsAxis3D(const FKey& Key);
107
111 UFUNCTION(BlueprintPure, meta = (DisplayName = "Is Button Axis"), Category = "Input|Key")
112 static ENGINE_API bool Key_IsButtonAxis(const FKey& Key);
113
117 UFUNCTION(BlueprintPure, meta = (DisplayName = "Is Analog"), Category = "Input|Key")
118 static ENGINE_API bool Key_IsAnalog(const FKey& Key);
119
123 UFUNCTION(BlueprintPure, meta = (DisplayName = "Is Digital"), Category = "Input|Key")
124 static ENGINE_API bool Key_IsDigital(const FKey& Key);
125
129 UFUNCTION(BlueprintPure, meta = (DisplayName = "Is Valid Key"), Category = "Input|Key")
130 static ENGINE_API bool Key_IsValid(const FKey& Key);
131
132 UFUNCTION(BlueprintPure, meta = (DisplayName = "Get Key Navigation Action", DeprecatedFunction, DeprecationMessage = "Use Get Key Event Navigation Action instead"), Category = "Input|Key")
133 static ENGINE_API EUINavigationAction Key_GetNavigationAction(const FKey& InKey);
134
136 UFUNCTION(BlueprintPure, meta = (DisplayName = "Get Key Event Navigation Action"), Category = "Input|KeyEvent")
137 static ENGINE_API EUINavigationAction Key_GetNavigationActionFromKey(const FKeyEvent& InKeyEvent);
138
140 UFUNCTION(BlueprintPure, meta = (DisplayName = "Get Key Event Navigation Direction"), Category = "Input|KeyEvent")
141 static ENGINE_API EUINavigation Key_GetNavigationDirectionFromKey(const FKeyEvent& InKeyEvent);
142
144 UFUNCTION(BlueprintPure, meta = (DisplayName = "Get Analog Event Navigation Direction"), Category = "Input|AnalogEvent")
145 static ENGINE_API EUINavigation Key_GetNavigationDirectionFromAnalog(const FAnalogInputEvent& InAnalogEvent);
146
150 UFUNCTION(BlueprintPure, meta = (DisplayName = "Get Key Display Name", BlueprintAutocast), Category="Input|Key")
151 static ENGINE_API FText Key_GetDisplayName(const FKey& Key, bool bLongDisplayName = true);
152
156 UFUNCTION(BlueprintPure, meta=( DisplayName = "Is Repeat" ), Category="Input|InputEvent")
157 static ENGINE_API bool InputEvent_IsRepeat(const FInputEvent& Input);
158
162 UFUNCTION(BlueprintPure, meta=( DisplayName = "Is Shift Down" ), Category="Input|InputEvent")
163 static ENGINE_API bool InputEvent_IsShiftDown(const FInputEvent& Input);
164
168 UFUNCTION(BlueprintPure, meta=( DisplayName = "Is Left Shift Down" ), Category="Input|InputEvent")
169 static ENGINE_API bool InputEvent_IsLeftShiftDown(const FInputEvent& Input);
170
174 UFUNCTION(BlueprintPure, meta=( DisplayName = "Is Right Shift Down" ), Category="Input|InputEvent")
175 static ENGINE_API bool InputEvent_IsRightShiftDown(const FInputEvent& Input);
176
180 UFUNCTION(BlueprintPure, meta=( DisplayName = "Is Control Down" ), Category="Input|InputEvent")
181 static ENGINE_API bool InputEvent_IsControlDown(const FInputEvent& Input);
182
186 UFUNCTION(BlueprintPure, meta=( DisplayName = "Is Left Control Down" ), Category="Input|InputEvent")
187 static ENGINE_API bool InputEvent_IsLeftControlDown(const FInputEvent& Input);
188
192 UFUNCTION(BlueprintPure, meta=( DisplayName = "Is Right Control Down" ), Category="Input|InputEvent")
193 static ENGINE_API bool InputEvent_IsRightControlDown(const FInputEvent& Input);
194
198 UFUNCTION(BlueprintPure, meta=( DisplayName = "Is Alt Down" ), Category="Input|InputEvent")
199 static ENGINE_API bool InputEvent_IsAltDown(const FInputEvent& Input);
200
204 UFUNCTION(BlueprintPure, meta=( DisplayName = "Is Left Alt Down" ), Category="Input|InputEvent")
205 static ENGINE_API bool InputEvent_IsLeftAltDown(const FInputEvent& Input);
206
210 UFUNCTION(BlueprintPure, meta=( DisplayName = "Is Right Alt Down" ), Category="Input|InputEvent")
211 static ENGINE_API bool InputEvent_IsRightAltDown(const FInputEvent& Input);
212
216 UFUNCTION(BlueprintPure, meta=( DisplayName = "Is Command Down" ), Category="Input|InputEvent")
217 static ENGINE_API bool InputEvent_IsCommandDown(const FInputEvent& Input);
218
222 UFUNCTION(BlueprintPure, meta=( DisplayName = "Is Left Command Down" ), Category="Input|InputEvent")
223 static ENGINE_API bool InputEvent_IsLeftCommandDown(const FInputEvent& Input);
224
228 UFUNCTION(BlueprintPure, meta=( DisplayName = "Is Right Command Down" ), Category="Input|InputEvent")
229 static ENGINE_API bool InputEvent_IsRightCommandDown(const FInputEvent& Input);
230
234 UFUNCTION(BlueprintPure, meta=( DisplayName = "Is Shift Down" ), Category="Input|ModifierKeys")
235 static ENGINE_API bool ModifierKeysState_IsShiftDown(const FSlateModifierKeysState& KeysState);
236
240 UFUNCTION(BlueprintPure, meta=( DisplayName = "Is Control Down" ), Category="Input|ModifierKeys")
241 static ENGINE_API bool ModifierKeysState_IsControlDown(const FSlateModifierKeysState& KeysState);
242
246 UFUNCTION(BlueprintPure, meta=( DisplayName = "Is Alt Down" ), Category="Input|ModifierKeys")
247 static ENGINE_API bool ModifierKeysState_IsAltDown(const FSlateModifierKeysState& KeysState);
248
252 UFUNCTION(BlueprintPure, meta=( DisplayName = "Is Command Down" ), Category="Input|ModifierKeys")
253 static ENGINE_API bool ModifierKeysState_IsCommandDown(const FSlateModifierKeysState& KeysState);
254
256 UFUNCTION(BlueprintPure, Category = "Input|ModifierKeys")
257 static ENGINE_API FSlateModifierKeysState GetModifierKeysState();
258
260 UFUNCTION(BlueprintPure, meta = (DisplayName = "Get Input Chord Display Name"), Category = "Input|Key")
261 static ENGINE_API FText InputChord_GetDisplayName(const FInputChord& Key);
262
268 UFUNCTION(BlueprintPure, Category="Input|KeyEvent")
269 static ENGINE_API FKey GetKey(const FKeyEvent& Input);
270
271 UFUNCTION(BlueprintPure, Category = "Input|KeyEvent")
272 static ENGINE_API int32 GetUserIndex(const FKeyEvent& Input);
273
274 UFUNCTION(BlueprintPure, Category = "Input|InputEvent")
275 static ENGINE_API float GetAnalogValue(const FAnalogInputEvent& Input);
276
278 UFUNCTION(BlueprintPure, meta=( DisplayName = "Get Screen Space Position" ), Category="Input|PointerEvent")
279 static ENGINE_API FVector2D PointerEvent_GetScreenSpacePosition(const FPointerEvent& Input);
280
282 UFUNCTION(BlueprintPure, meta=( DisplayName = "Get Last Screen Space Position" ), Category="Input|PointerEvent")
283 static ENGINE_API FVector2D PointerEvent_GetLastScreenSpacePosition(const FPointerEvent& Input);
284
286 UFUNCTION(BlueprintPure, meta=( DisplayName = "Get Cursor Delta" ), Category="Input|PointerEvent")
287 static ENGINE_API FVector2D PointerEvent_GetCursorDelta(const FPointerEvent& Input);
288
290 UFUNCTION(BlueprintPure, meta=( DisplayName = "Is Mouse Button Down" ), Category="Input|PointerEvent")
291 static ENGINE_API bool PointerEvent_IsMouseButtonDown(const FPointerEvent& Input, FKey MouseButton);
292
294 UFUNCTION(BlueprintPure, meta=( DisplayName = "Get Effecting Button" ), Category="Input|PointerEvent")
295 static ENGINE_API FKey PointerEvent_GetEffectingButton(const FPointerEvent& Input);
296
298 UFUNCTION(BlueprintPure, meta=( DisplayName = "Get Wheel Delta" ), Category="Input|PointerEvent")
299 static ENGINE_API float PointerEvent_GetWheelDelta(const FPointerEvent& Input);
300
302 UFUNCTION(BlueprintPure, meta=( DisplayName = "Get User Index" ), Category="Input|PointerEvent")
303 static ENGINE_API int32 PointerEvent_GetUserIndex(const FPointerEvent& Input);
304
306 UFUNCTION(BlueprintPure, meta=( DisplayName = "Get Pointer Index" ), Category="Input|PointerEvent")
307 static ENGINE_API int32 PointerEvent_GetPointerIndex(const FPointerEvent& Input);
308
310 UFUNCTION(BlueprintPure, meta=( DisplayName = "Get Touchpad Index" ), Category="Input|PointerEvent")
311 static ENGINE_API int32 PointerEvent_GetTouchpadIndex(const FPointerEvent& Input);
312
314 UFUNCTION(BlueprintPure, meta=( DisplayName = "Is Touch Event" ), Category="Input|PointerEvent")
315 static ENGINE_API bool PointerEvent_IsTouchEvent(const FPointerEvent& Input);
316
318 UFUNCTION(BlueprintPure, Category="Input|PointerEvent")
319 static ENGINE_API ESlateGesture PointerEvent_GetGestureType(const FPointerEvent& Input);
320
322 UFUNCTION(BlueprintPure, meta=( DisplayName = "Get Gesture Delta" ), Category="Input|PointerEvent")
323 static ENGINE_API FVector2D PointerEvent_GetGestureDelta(const FPointerEvent& Input);
324};
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
ESlateGesture
Definition KismetInputLibrary.h:17
#define UPROPERTY(...)
UObject definition macros.
Definition ObjectMacros.h:744
#define UFUNCTION(...)
Definition ObjectMacros.h:745
#define GENERATED_UCLASS_BODY(...)
Definition ObjectMacros.h:768
#define UCLASS(...)
Definition ObjectMacros.h:776
#define UENUM(...)
Definition ObjectMacros.h:749
#define USTRUCT(...)
Definition ObjectMacros.h:746
#define GENERATED_USTRUCT_BODY(...)
Definition ObjectMacros.h:767
EUINavigationAction
Definition SlateEnums.h:124
EUINavigation
Definition SlateEnums.h:99
uint8_t uint8
Definition binka_ue_file_header.h:8
Definition GenericApplication.h:75
Definition Text.h:385
Definition BlueprintFunctionLibrary.h:16
Definition KismetInputLibrary.h:41
Definition Events.h:528
Definition InputChord.h:24
Definition Events.h:155
Definition Events.h:431
Definition InputCoreTypes.h:50
Definition Events.h:695
Definition KismetInputLibrary.h:29