Skip to content

About

UE4 analog cursor management plugin with support for multiple local cursors.

Resources

Stars

3 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

31 Commits

Folders and files

Repository files navigation

Virtual Cursor

Unreal Engine 4 Mouse & Gamepad Cursor Management Plugin

This plugin enables seamless mouse/gamepad cursor input.

For example usage, see UE4GamepadUMG.

Original authors: Nick Darnell and Nick A. at Epic Games

Original plugin creator: Rama (EverNewJoy)

Other contributors

Notes About This Fork

This fork of the VirtualCursor was modified with the intent to provide support for local multiplayer without the need for any engine modifications.

Important Note

If you do not want to make any engine modifications, make sure set Hide Cursor During Capture to false when setting the PlayerController's input mode to UI or Game and UI.

Setting Hide Cursor During Capture to true will cause Player 1's cursor to jump to the location of other cursors whenever they click.

This is caused by the following lines in FSceneViewport::AcquireFocusAndCapture (present in 4.25)

if ( ViewportClient->HideCursorDuringCapture() && bShouldShowMouseCursor )
{
   bCursorHiddenDueToCapture = true;
   MousePosBeforeHiddenDueToCapture = MousePosition;
}

And subsequent uses of MousePosBeforeHiddenDueToCapture.

Some of these may be removable without engine modification by creating a child of UGameViewportClient and overriding the input functions (such as OnMouseButtonUp) to remove references of SetMousePos(MousePosBeforeHiddenDueToCapture), but this is up to the individual developer.

About

UE4 analog cursor management plugin with support for multiple local cursors.

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages