28 lines
754 B
C++
28 lines
754 B
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
|
|
#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));*/
|
|
|
|
}
|
|
|
|
|