UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
WebView3DInputHandler.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
7#include "Input/Events.h"
8
10
12
19{
20public:
21
23
25 const FString& EventName, const FPointerEvent& MouseEvent);
27 void SendKeyEventToJS(IWebBrowserWindow& InWindow, const FString& EventName, const FKeyEvent& KeyEvent);
28
29private:
30
31 FString BoolToString(bool InBool);
32 FString GetCurrentJSElement();
33
34 void DispatchInputEvent(IWebBrowserWindow& InWindow, const FString& InputType, TCHAR* InputData);
35
36 FString GetModifierKeyStatus();
37 bool CheckIfCharacterIsInputable(TCHAR CharToInput);
38
39 void UpdateModifierKeys(const FKey& Key, bool KeyDown);
40
41 bool bCtrlKeyDown;
42 bool bAltKeyDown;
43 bool bCmdKeyDown;
44 bool bShiftKeyDown;
45 bool bCapsLockOn;
46
47 FVector2f MousePos;
48};
FPlatformTypes::TCHAR TCHAR
Either ANSICHAR or WIDECHAR, depending on whether the platform supports wide characters or the requir...
Definition Platform.h:1135
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define DECLARE_LOG_CATEGORY_EXTERN(CategoryName, DefaultVerbosity, CompileTimeVerbosity)
Definition LogMacros.h:361
Definition WebView3DInputHandler.h:19
void SendMouseEventToJS(IWebBrowserWindow &InWindow, const FString &EventName, const FPointerEvent &MouseEvent)
Definition WebView3DInputHandler.cpp:46
void SendKeyEventToJS(IWebBrowserWindow &InWindow, const FString &EventName, const FKeyEvent &KeyEvent)
Definition WebView3DInputHandler.cpp:232
void SendCharEventToJS(IWebBrowserWindow &InWindow, const FCharacterEvent &CharEvent)
Definition WebView3DInputHandler.cpp:193
FWebView3DInputHandler()
Definition WebView3DInputHandler.cpp:13
Definition IWebBrowserWindow.h:85
Definition Events.h:606
Definition Events.h:431
Definition InputCoreTypes.h:50
Definition Events.h:695