Unreal Engine: All Mouse Events Explained

Mouse events in Unreal Engine 5 make your game respond when players click or move their mouse. They help players do important things, like looking around, clicking on menus, and choosing things in the game world.

Therefore, in Unreal Engine 5, using mouse events is crucial, especially if you are a beginner and you want to give PC players a fluid and interactive experience. If you’re interested in learning more about Keyboard Events in Unreal Engine, I suggest reading our post.

Mouse Event List

Right-clicking in any Event Graph, such as the Level Blueprint, and selecting ‘Input -> Mouse Events’ will bring up a list of all events for mouse inputs.

  • Left Mouse Button: The event is executed when the Left Mouse Button key is pressed or released.
  • Right Mouse Button: The event is executed when the Right Mouse Button key is pressed or released.
  • Middle Mouse Button: The event is executed when the Middle Mouse Button key is pressed or released.
  • Mouse Wheel Up: Events for when the Mouse Wheel Up key is pressed or released.
  • Mouse Wheel Down: Events for when the Mouse Wheel Down key is pressed or released.
  • Mouse Wheel Axis: Event that provides the current value of the Mouse Wheel Axis once per frame when input is enabled for the containing actor.
  • Mouse X: The event will execute when the player moves the mouse right or left. Keep in mind that it will execute once per frame, like an Event Tick, when input is enabled for the containing actor.
  • Mouse Y: It works exactly the same as Mouse X, but when you move the mouse up and down.
  • Mouse XY 2D-Axis: Event that provides the current value of the Mouse XY 2D-Axis axis once per frame when input is enabled for the containing actor.
  • Thumb Mouse Button: Events for when the Thumb Mouse Button key is pressed or released.
  • Thumb Mouse Button 2: Events for when the Thumb Mouse Button 2 key is pressed or released.
Unreal Engine Mouse Events

Get Mouse Axis Value

Right-clicking in any Event Graph and selecting ‘Input -> Mouse Values’ will bring up a list of all mouse values.

You can get the Mouse Axis Value without triggering the event, by using the “Get Mouse” Blueprint nodes. This will provide you with a float value that matches the axis value from an event exactly.

Tip: If you are using two events, for example, one for Mouse X and one for Mouse Y, you can combine these nodes with an Event Tick to reduce it to one event. Then, instead of two events being called every frame, only one will be called.

Unreal Engine Get Mouse Axis Value

Unreal Engine Roadmap