# \#mouse-position

**URL:** https://forums.unrealengine.com/tag/mouse-position/3900.md

[Latest](https://forums.unrealengine.com/latest.md) · [Categories](https://forums.unrealengine.com/categories.md) · [Tags](https://forums.unrealengine.com/tags.md)

---

## [Getting Mouse position Not Equal To Set Mouse Position](https://forums.unrealengine.com/t/getting-mouse-position-not-equal-to-set-mouse-position/2708471)

<div class="topic-metadata">

**Author:** [@Roaringleagend45](https://forums.unrealengine.com/u/Roaringleagend45)\
**Replies:** 2\
**Last updated:** [March 25, 2026, 12:54am UTC](https://forums.unrealengine.com/t/getting-mouse-position-not-equal-to-set-mouse-position/2708471 "2026-03-25T00:54:55Z")

</div>

I am setting the X mouse position to 100 but get different number when retrieving mouse position depending on what function i get a different number from Viewport = 97.122314 from Platform = 103.0 How do I get the sa…

---

## [How can i manually set a button widget to hovered state](https://forums.unrealengine.com/t/how-can-i-manually-set-a-button-widget-to-hovered-state/373567)

<div class="topic-metadata">

**Author:** [@ViceVersa](https://forums.unrealengine.com/u/ViceVersa)\
**Replies:** 7\
**Last updated:** [March 18, 2026, 6:21pm UTC](https://forums.unrealengine.com/t/how-can-i-manually-set-a-button-widget-to-hovered-state/373567 "2026-03-18T18:21:54Z")

</div>

I noticed that they have events for when the widget is pressed or clicked, but not for hovered. I want to be able to change the buttons color whent he widget is being hovered (which works fine for mouse). but i want to …

---

## [Get Most Recently Used Input Device switches to Keyboard/Mouse when using Set Mouse Cursor Position (worked in 5.4.4) ](https://forums.unrealengine.com/t/get-most-recently-used-input-device-switches-to-keyboard-mouse-when-using-set-mouse-cursor-position-worked-in-5-4-4/2688290)

<div class="topic-metadata">

**Author:** [@StazixLS](https://forums.unrealengine.com/u/StazixLS)\
**Replies:** 0\
**Last updated:** [December 28, 2025, 9:16pm UTC](https://forums.unrealengine.com/t/get-most-recently-used-input-device-switches-to-keyboard-mouse-when-using-set-mouse-cursor-position-worked-in-5-4-4/2688290 "2025-12-28T21:16:31Z")

</div>

Hi, I’m running into an input detection issue after migrating a project from UE 5.4.4 to UE 5.6, related to the InputDeviceSubsystem. In my UI system, I rely on Set Mouse Cursor Position to ensure correct widget hover …

---

## [Get Mouse Position Stuck at Value While Mouse Button Pressed](https://forums.unrealengine.com/t/get-mouse-position-stuck-at-value-while-mouse-button-pressed/390659)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_77db0c85](https://forums.unrealengine.com/u/anonymous_user_77db0c85)\
**Replies:** 5\
**Last updated:** [March 10, 2025, 9:37pm UTC](https://forums.unrealengine.com/t/get-mouse-position-stuck-at-value-while-mouse-button-pressed/390659 "2025-03-10T21:37:34Z")

</div>

Below is a Youtube video demoing the issue. In short, when I click I can no longer move my mouse. I believe I have narrowed it down to the Get Mouse Position function. Is there a different function I should be using to g…

---

## [Bug: Problem when dragging left mouse button in orthographic viewports in OS X](https://forums.unrealengine.com/t/bug-problem-when-dragging-left-mouse-button-in-orthographic-viewports-in-os-x/381003)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_08c2fdfc](https://forums.unrealengine.com/u/anonymous_user_08c2fdfc)\
**Replies:** 10\
**Last updated:** [September 9, 2024, 2:19pm UTC](https://forums.unrealengine.com/t/bug-problem-when-dragging-left-mouse-button-in-orthographic-viewports-in-os-x/381003 "2024-09-09T14:19:02Z")

</div>

When I drag the left mouse button down in orthographic viewports (to select a mesh for example) it leads to incorrect mouse positions. The mouse cursor goes too far. It seems that the mouse moves by itself, twice as fas…

---

## [HUD blueprint mouse event problem. Is it a bug, or working well??](https://forums.unrealengine.com/t/hud-blueprint-mouse-event-problem-is-it-a-bug-or-working-well/1773224)

<div class="topic-metadata">

**Author:** [@P0dol](https://forums.unrealengine.com/u/P0dol)\
**Replies:** 2\
**Last updated:** [March 27, 2024, 10:22pm UTC](https://forums.unrealengine.com/t/hud-blueprint-mouse-event-problem-is-it-a-bug-or-working-well/1773224 "2024-03-27T22:22:48Z")

</div>

Hey Everyone! I wanted to do the following: I need a button, which on pressed, spawns an actor on the mouse’s world coordinates position, then the actor follows the mouse on move, and on release, the actor stay on the …

---

## [Set mouse position to button position?](https://forums.unrealengine.com/t/set-mouse-position-to-button-position/440522)

<div class="topic-metadata">

**Author:** [@Marcus-Universe](https://forums.unrealengine.com/u/Marcus-Universe)\
**Replies:** 1\
**Last updated:** [January 7, 2024, 9:25am UTC](https://forums.unrealengine.com/t/set-mouse-position-to-button-position/440522 "2024-01-07T09:25:40Z")

</div>

I want to control my Widget with my Controller. I use pictures as button style. Since there are many buttons, I would like the mouse position on the focus button is set. I made a array of all buttons and I checked where…

---

## [Mac Fullscreen Mouse Position in UMG](https://forums.unrealengine.com/t/mac-fullscreen-mouse-position-in-umg/326255)

<div class="topic-metadata">

**Author:** [@user37337](https://forums.unrealengine.com/u/user37337)\
**Replies:** 5\
**Last updated:** [December 19, 2023, 8:52pm UTC](https://forums.unrealengine.com/t/mac-fullscreen-mouse-position-in-umg/326255 "2023-12-19T20:52:29Z")

</div>

When using Fullscreen Mode in OSX without the native resolution then the mouse position in UMG is calculated wrong. I see the Cursor on the screen but the Widgets responds at a different position (left over the cursor). …

---

## [control the character with the mouse](https://forums.unrealengine.com/t/control-the-character-with-the-mouse/1414819)

<div class="topic-metadata">

**Author:** [@zmihnyuk](https://forums.unrealengine.com/u/zmihnyuk)\
**Replies:** 19\
**Last updated:** [November 23, 2023, 10:42pm UTC](https://forums.unrealengine.com/t/control-the-character-with-the-mouse/1414819 "2023-11-23T22:42:28Z")

</div>

Hello, I can’t solve the problem with pawn control. The task is to control a pawn in a certain area using the mouse. Control using the keys made everything work. but I can’t correctly convert the mouse position into glob…

---

## [Actor controls an charcter like a joystick](https://forums.unrealengine.com/t/actor-controls-an-charcter-like-a-joystick/1209867)

<div class="topic-metadata">

**Author:** [@N\_DOKY](https://forums.unrealengine.com/u/N_DOKY)\
**Replies:** 1\
**Last updated:** [June 27, 2023, 12:13am UTC](https://forums.unrealengine.com/t/actor-controls-an-charcter-like-a-joystick/1209867 "2023-06-27T00:13:33Z")

</div>

Hi there UE experts! Due to specific requirements, I need a cube actor that control the movement of my character in a particular manner. The position of a cube will determine the direction in which the character moves. …

---

## [Actor controls an charcter like a joystick](https://forums.unrealengine.com/t/actor-controls-an-charcter-like-a-joystick/1209865)

<div class="topic-metadata">

**Author:** [@N\_DOKY](https://forums.unrealengine.com/u/N_DOKY)\
**Replies:** 0\
**Last updated:** [June 25, 2023, 7:05am UTC](https://forums.unrealengine.com/t/actor-controls-an-charcter-like-a-joystick/1209865 "2023-06-25T07:05:56Z")

</div>

Hi there UE experts! Due to specific requirements, I find myself in need of an actor to control the movement of my character in a particular manner. The position of a cube will determine the direction in which the chara…

---

## [ndisplay: how to match player input with camera view?](https://forums.unrealengine.com/t/ndisplay-how-to-match-player-input-with-camera-view/484648)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_9f003c31](https://forums.unrealengine.com/u/anonymous_user_9f003c31)\
**Replies:** 1\
**Last updated:** [May 10, 2023, 3:20am UTC](https://forums.unrealengine.com/t/ndisplay-how-to-match-player-input-with-camera-view/484648 "2023-05-10T03:20:17Z")

</div>

hi developers, basically i have 2 monitors set vertically from each other, and i set the viewport of ndisplay with the in-game cameras. In order for the player to interact base on the viewport, i blend the top camera to…

---

## [How do I control character's arm with mouse in combat](https://forums.unrealengine.com/t/how-do-i-control-characters-arm-with-mouse-in-combat/467413)

<div class="topic-metadata">

**Author:** [@Hzrtnc](https://forums.unrealengine.com/u/Hzrtnc)\
**Replies:** 3\
**Last updated:** [October 29, 2022, 12:13pm UTC](https://forums.unrealengine.com/t/how-do-i-control-characters-arm-with-mouse-in-combat/467413 "2022-10-29T12:13:14Z")

</div>

Hello I’m pretty new on ue4. I want to move character’s arm with mouse in combat, when I move my mouse right my character’s arm will move right and when I move mouse up character’s arm will move to up, it same in other d…

---

## [Mouse location change every tick(frequency)](https://forums.unrealengine.com/t/mouse-location-change-every-tick-frequency/399833)

<div class="topic-metadata">

**Author:** [@mhesari](https://forums.unrealengine.com/u/mhesari)\
**Replies:** 1\
**Last updated:** [September 10, 2022, 1:21pm UTC](https://forums.unrealengine.com/t/mouse-location-change-every-tick-frequency/399833 "2022-09-10T13:21:28Z")

</div>

Hi Epic/community, I used the code below for find mouse location. get location is successfully. Problem, i get different position every tick without moving the mouse. and location change frequency between 2 location. L…

---

## [Why GetMousePosition return false and NULL for XY?](https://forums.unrealengine.com/t/why-getmouseposition-return-false-and-null-for-xy/299760)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_daa06def](https://forums.unrealengine.com/u/anonymous_user_daa06def)\
**Replies:** 2\
**Last updated:** [March 20, 2022, 1:11pm UTC](https://forums.unrealengine.com/t/why-getmouseposition-return-false-and-null-for-xy/299760 "2022-03-20T13:11:57Z")

</div>

Why GetMousePosition return false and NULL for XY?

---

## [Is it possible to freeze the cursor position in the viewport while still geting mouse delta?](https://forums.unrealengine.com/t/is-it-possible-to-freeze-the-cursor-position-in-the-viewport-while-still-geting-mouse-delta/336559)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_e159b8de](https://forums.unrealengine.com/u/anonymous_user_e159b8de)\
**Replies:** 2\
**Last updated:** [August 1, 2021, 1:17am UTC](https://forums.unrealengine.com/t/is-it-possible-to-freeze-the-cursor-position-in-the-viewport-while-still-geting-mouse-delta/336559 "2021-08-01T01:17:21Z")

</div>

I am making a blueprint that basically allows click and drag movement of a viewport displaying a 2d widget. The flow of execution goes pretty much like this: When right mouse pressed → Get mouse delta → Amplify mouse…

---

## [Slate OnMouseLeave event triggered on mouse zero coordinates](https://forums.unrealengine.com/t/slate-onmouseleave-event-triggered-on-mouse-zero-coordinates/416699)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_60aa5386](https://forums.unrealengine.com/u/anonymous_user_60aa5386)\
**Replies:** 1\
**Last updated:** [June 6, 2021, 6:24pm UTC](https://forums.unrealengine.com/t/slate-onmouseleave-event-triggered-on-mouse-zero-coordinates/416699 "2021-06-06T18:24:46Z")

</div>

Hi, the problem is that SCompoundWidget triggering OnMouseLeave event when mouse touches top or left sides of the viewport, but still in the viewport. Please, help me fix that. Here is a code of widget: STest.h: clas…

---

## [Fixing gimbal lock, mouse position based rotations](https://forums.unrealengine.com/t/fixing-gimbal-lock-mouse-position-based-rotations/472705)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_a1476126](https://forums.unrealengine.com/u/anonymous_user_a1476126)\
**Replies:** 0\
**Last updated:** [October 10, 2020, 10:26am UTC](https://forums.unrealengine.com/t/fixing-gimbal-lock-mouse-position-based-rotations/472705 "2020-10-10T10:26:13Z")

</div>

Hello everyone, I have a flying ship that rotates around the 3 axis based on the position of the mouse on the screen. Everything works great until the pitch is 90/-90 where I am assuming I hit gimbal lock and the shi…

---

## [Linux zero mouse values when running via VPN on other PC](https://forums.unrealengine.com/t/linux-zero-mouse-values-when-running-via-vpn-on-other-pc/467531)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_fac8d931](https://forums.unrealengine.com/u/anonymous_user_fac8d931)\
**Replies:** 1\
**Last updated:** [July 2, 2020, 5:27am UTC](https://forums.unrealengine.com/t/linux-zero-mouse-values-when-running-via-vpn-on-other-pc/467531 "2020-07-02T05:27:44Z")

</div>

Hi, we’re running Unreal Engine via streaming on an external machine on Linux. UnrealEngine does not seem to pick up the mousemove correctly in its viewport and slate. So e.g. when right-click and move the mouse in a bl…

---

## [How to resize Blui browser widget in ue4?](https://forums.unrealengine.com/t/how-to-resize-blui-browser-widget-in-ue4/449579)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_f52a3e91](https://forums.unrealengine.com/u/anonymous_user_f52a3e91)\
**Replies:** 0\
**Last updated:** [May 25, 2019, 10:15pm UTC](https://forums.unrealengine.com/t/how-to-resize-blui-browser-widget-in-ue4/449579 "2019-05-25T22:15:20Z")

</div>

Hi, Please provide me with some help i’m using Blui browser plugin for ue4 link : https://github.com/getnamo/BLUI/ my problem is that when ever i resized the blui canvas the mouse postion not working correctly more …

---

## [UI Widget not being set to mouse location](https://forums.unrealengine.com/t/ui-widget-not-being-set-to-mouse-location/446575)

<div class="topic-metadata">

**Author:** [@Geowil](https://forums.unrealengine.com/u/Geowil)\
**Replies:** 1\
**Last updated:** [April 5, 2019, 6:59am UTC](https://forums.unrealengine.com/t/ui-widget-not-being-set-to-mouse-location/446575 "2019-04-05T06:59:16Z")

</div>

I am attempting to get a widget drawn at the location of the mouse when the right mouse button is clicked. So far I have my blueprint drawing the menu but it is being drawn at some kind of offset from where the mouse is…

---

## [Value Replicated to Server in Editor but not in Standalone](https://forums.unrealengine.com/t/value-replicated-to-server-in-editor-but-not-in-standalone/438975)

<div class="topic-metadata">

**Author:** [@Clif101337](https://forums.unrealengine.com/u/Clif101337)\
**Replies:** 3\
**Last updated:** [December 7, 2018, 7:41am UTC](https://forums.unrealengine.com/t/value-replicated-to-server-in-editor-but-not-in-standalone/438975 "2018-12-07T07:41:20Z")

</div>

Hello! Thank you for your time to look this over and answer if possible. I have a current movement BP that adds local rotation to a mesh based off of where the mouse is located on the screen. I need this to happen ser…

---

## [How to get cursor location in world space in VR?](https://forums.unrealengine.com/t/how-to-get-cursor-location-in-world-space-in-vr/438940)

<div class="topic-metadata">

**Author:** [@Ixiguis](https://forums.unrealengine.com/u/Ixiguis)\
**Replies:** 0\
**Last updated:** [December 5, 2018, 9:18pm UTC](https://forums.unrealengine.com/t/how-to-get-cursor-location-in-world-space-in-vr/438940 "2018-12-05T21:18:55Z")

</div>

Using GetHitResultUnderCursor yields the wrong world-space location when playing in VR (see screenshot). What I want: the user using the PC (keyboard+mouse) to be able to interact with the world by using the mouse, whil…

---

## [Simple board game](https://forums.unrealengine.com/t/simple-board-game/420780)

<div class="topic-metadata">

**Author:** [@Borsuk31](https://forums.unrealengine.com/u/Borsuk31)\
**Replies:** 7\
**Last updated:** [April 1, 2018, 11:04am UTC](https://forums.unrealengine.com/t/simple-board-game/420780 "2018-04-01T11:04:57Z")

</div>

Hi, I would like to learn by making simple board game as we know from chlidhood :slight\_smile: First thing i want to do is moving player to specific tile by clicking on it. Could You help me and steer me what should i l…

---

## [Mouse cursor position is offset and hover hand not showing (HTML5)](https://forums.unrealengine.com/t/mouse-cursor-position-is-offset-and-hover-hand-not-showing-html5/413727)

<div class="topic-metadata">

**Author:** [@xadamxful](https://forums.unrealengine.com/u/xadamxful)\
**Replies:** 0\
**Last updated:** [January 4, 2018, 11:16am UTC](https://forums.unrealengine.com/t/mouse-cursor-position-is-offset-and-hover-hand-not-showing-html5/413727 "2018-01-04T11:16:35Z")

</div>

My mouse cursor will not change to the hover hand in HTML5. It also becomes more vertically offset the further you move it from the center of the screen.

---

## [Every time I click on a button the mouse position goes to the top left screen position. How to solve that?](https://forums.unrealengine.com/t/every-time-i-click-on-a-button-the-mouse-position-goes-to-the-top-left-screen-position-how-to-solve-that/412455)

<div class="topic-metadata">

**Author:** [@Pedro](https://forums.unrealengine.com/u/Pedro)\
**Replies:** 2\
**Last updated:** [December 17, 2017, 11:43am UTC](https://forums.unrealengine.com/t/every-time-i-click-on-a-button-the-mouse-position-goes-to-the-top-left-screen-position-how-to-solve-that/412455 "2017-12-17T11:43:11Z")

</div>

Every time I click on a button the mouse position goes to the top left screen position. That is resulting the button to not work, and only works if I click two times really fast. How to solve that?

---

## [Get mouse position problem in packaged game](https://forums.unrealengine.com/t/get-mouse-position-problem-in-packaged-game/407308)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_9ecdd9af](https://forums.unrealengine.com/u/anonymous_user_9ecdd9af)\
**Replies:** 0\
**Last updated:** [October 18, 2017, 10:11am UTC](https://forums.unrealengine.com/t/get-mouse-position-problem-in-packaged-game/407308 "2017-10-18T10:11:16Z")

</div>

Hello, I pickup objects with physics handle and i rotate physics handle with get mouse position in order to rotate held objects.When press button i disables the default FPS input axis turn and lookup and instead of them…

---

## [Mouse position isnt updated while dragging](https://forums.unrealengine.com/t/mouse-position-isnt-updated-while-dragging/402868)

<div class="topic-metadata">

**Author:** [@stucki](https://forums.unrealengine.com/u/stucki)\
**Replies:** 0\
**Last updated:** [August 25, 2017, 11:36pm UTC](https://forums.unrealengine.com/t/mouse-position-isnt-updated-while-dragging/402868 "2017-08-25T23:36:14Z")

</div>

hi everybody here, hope you can help me. i work on a classical point and click adventure game, with a inventory bar on the bottom of the screen. in the inventory there are small widgets displaying the ojbects the playe…

---

## [How to move character with mouse click?](https://forums.unrealengine.com/t/how-to-move-character-with-mouse-click/400995)

<div class="topic-metadata">

**Author:** [@lueha55](https://forums.unrealengine.com/u/lueha55)\
**Replies:** 2\
**Last updated:** [August 2, 2017, 10:48am UTC](https://forums.unrealengine.com/t/how-to-move-character-with-mouse-click/400995 "2017-08-02T10:48:50Z")

</div>

I don’t know how to use it. Could you explain it a little bit more?

---

## [MouseDown drag problem (bug?)](https://forums.unrealengine.com/t/mousedown-drag-problem-bug/300382)

<div class="topic-metadata">

**Author:** [@blurdot](https://forums.unrealengine.com/u/blurdot)\
**Replies:** 10\
**Last updated:** [April 4, 2017, 5:36pm UTC](https://forums.unrealengine.com/t/mousedown-drag-problem-bug/300382 "2017-04-04T17:36:37Z")

</div>

There seems to be an problem with the way playerController-\>IsInputKeyDown(EKeys::LeftMouseButton), it is causing issues with getting updated screen coordinates of my mouse cursor. I am currently using the mouse to orbi…

[Next page](https://forums.unrealengine.com/tag/mouse-position/3900.md?match_all_tags=true&page=1&tags%5B%5D=mouse-position)
