Created
July 29, 2018 20:21
-
-
Save jkinz3/1ffbddaac2a49d09b60dfd8d4e7f5ac1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright 1998-2018 Epic Games, Inc. All Rights Reserved. | |
#pragma once | |
#include "CoreMinimal.h" | |
#include "EdMode.h" | |
class FGeoEditorEdMode : public FEdMode | |
{ | |
public: | |
const static FEditorModeID EM_GeoEditorEdModeId; | |
public: | |
FGeoEditorEdMode(); | |
virtual ~FGeoEditorEdMode(); | |
// FEdMode interface | |
virtual void Enter() override; | |
virtual void Exit() override; | |
//virtual void Tick(FEditorViewportClient* ViewportClient, float DeltaTime) override; | |
//virtual void Render(const FSceneView* View, FViewport* Viewport, FPrimitiveDrawInterface* PDI) override; | |
//virtual void ActorSelectionChangeNotify() override; | |
bool UsesToolkits() const override; | |
// End of FEdMode interface | |
class TSharedPtr<class FUICommandList> UICommandList; | |
bool InputKey(FEditorViewportClient* InViewportClient, FViewport* InViewport, FKey InKey, EInputEvent InEvent); | |
private: | |
bool bRightMouseDown; | |
bool bCtrlPressed; | |
bool bAltPressed; | |
bool bShiftPressed; | |
void BindCommands(); | |
void AlignBrushVerticesToGrid(); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment