настроил почти сцену
This commit is contained in:
@@ -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));*/
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -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();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user