Skip to content

Instantly share code, notes, and snippets.

View fabjan's full-sized avatar

Fabian Bergström fabjan

View GitHub Profile
@fabjan
fabjan / MoveMouseByCurvePlugin.cpp
Created February 11, 2020 15:42 — forked from pomettini/MoveMouseByCurvePlugin.cpp
Unreal Engine 4 Plugin that moves the cursor along a Curve
#include "MoveMouseByCurvePlugin.h"
#define LOCTEXT_NAMESPACE "FMoveMouseByCurvePluginModule"
void FMoveMouseByCurvePluginModule::StartupModule()
{
UE_LOG(LogTemp, Warning, TEXT("Moving curve along mouse start initialization"));
FConsoleCommandWithArgsDelegate MoveMouseDelegate;
MoveMouseDelegate.BindRaw(this, &FMoveMouseByCurvePluginModule::MoveMouseAlongCurveWithPath);