настроил почти сцену

This commit is contained in:
Andron666
2020-12-13 15:11:09 +05:00
parent 2d68ee31b4
commit 8ea7e53f60
30 changed files with 32 additions and 1 deletions
+1
View File
@@ -1,3 +1,4 @@
Build
Binaries
DerivedDataCache
Intermediate
Binary file not shown.

Before

Width:  |  Height:  |  Size: 71 KiB

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+1 -1
View File
@@ -8,7 +8,7 @@ public class Onejsky4U : ModuleRules
{
PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs;
PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore" });
PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore","ApplicationCore" });
PrivateDependencyModuleNames.AddRange(new string[] { });
@@ -3,3 +3,25 @@
#include "Onejsky4UGameModeBase.h"
#include "GenericPlatform/GenericWindow.h"
#include "Engine/Engine.h"
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
#pragma comment(lib,"User32.lib")
//#include "Winuser.h"
void AOnejsky4UGameModeBase::BeginPlay() {
UE_LOG(LogTemp, Warning, TEXT("Hello nigga"));
// set the settings in the gesture configuration
GESTURECONFIG gc[] = { 0,0,GC_ALLGESTURES };
void* ParentWindowHandle = GEngine->GameViewport->GetWindow()->GetNativeWindow()->GetOSWindowHandle();
/*HWND mywin;
mywin = reinterpret_cast<HWND&>(ParentWindowHandle);
//HWND mywin1 = *mywin;
UINT uiGcs = 1;
BOOL bResult = SetGestureConfig(mywin, 0, uiGcs, gc, sizeof(GESTURECONFIG));*/
}
+8
View File
@@ -2,10 +2,12 @@
#pragma once
#include "CoreMinimal.h"
#include "GameFramework/GameModeBase.h"
#include "Onejsky4UGameModeBase.generated.h"
/**
*
*/
@@ -14,4 +16,10 @@ class ONEJSKY4U_API AOnejsky4UGameModeBase : public AGameModeBase
{
GENERATED_BODY()
protected:
virtual void BeginPlay() override;
/*public:
virtual void* GetOSWindowHandle() const;*/
//void doit();
};