Skip to main content
Skip table of contents

Switch Between Hovering and Locked Mouse Schemes

This document explains two methods to toggle between Hovering Mouse and Locked Mouse schemes when using Pixel Streaming.

Mouse Schemes

Hovering Mouse Scheme

In this mode, your mouse location and movement are not sent to the Unreal application until you click or hold the left mouse button.

CODE
{"cmd":"switchMouseControlSchemeTo","value":"HoveringMouse"}

Locked Mouse Scheme

In this mode, your mouse position and movements are constantly sent to the Unreal application, regardless of clicking.

To enable:

CODE
{"cmd":"switchMouseControlSchemeTo","value":"LockedMouse"}

You can switch between these schemes using either of the following methods:

Method 1. Manually Writing and Sending Messages

Using the E3DS Features Plugin (Method 2) is faster, easier, and less error-prone.

  1. Create a new Blueprint.

  2. Add the PixelStreamingInput component.

  3. Create two custom events:

    • MyHoveringMouseEvent → sends HoveringMouse message.

    • MyLockedMouseEvent → sends LockedMouse message.

  4. Convert the messages into a string and call Send Pixel Streaming Response.

image-20250828-013620.png

FIgure 1. Send Pixel Streaming Response

Method 2. Using E3DS Features Plugin (Recommended)

Prerequisite:

Before proceeding, ensure you have downloaded and installed the E3DS Features Plugin in your Unreal Engine project. For detailed instructions, refer to:
Download and Install the E3DS Features Plugin

  1. Place BP_E3DS_PS_Actor from the plugin content into your active level.

  2. Reuse the same two events (MyHoveringMouseEvent and MyLockedMouseEvent).

  3. Instead of writing JSON manually, call the premade function Change Mouse Control Scheme.

  4. From the dropdown, choose either:

    • HoveringMouse

    • LockedMouse

image-20250828-014030.png

Figure 2. Change Mouse Control Scheme

 

 


Need help?

🛠️ Contact our Support Team

💬 Join the Community on Discord

🆓 Get Started for free

 

Follow us on:

Facebook | GitHub | LinkedIn | YouTube

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.