# Mouse input is offset in UMG/Slate when the resolution/ViewportSize is changed at run-time (Standalone Game)

**URL:** <https://forums.unrealengine.com/t/mouse-input-is-offset-in-umg-slate-when-the-resolution-viewportsize-is-changed-at-run-time-standalone-game/328401>\
**Category:** UI\
**Tags:** offset, unreal-engine, bug-report, question, UMG\
**Created:** [August 12, 2015, 6:59am UTC](https://forums.unrealengine.com/t/mouse-input-is-offset-in-umg-slate-when-the-resolution-viewportsize-is-changed-at-run-time-standalone-game/328401 "2015-08-12T06:59:52Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![alexpanter](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@alexpanter](https://forums.unrealengine.com/u/alexpanter)\
**Post date:** [February 27, 2024, 7:12pm UTC](https://forums.unrealengine.com/t/mouse-input-is-offset-in-umg-slate-when-the-resolution-viewportsize-is-changed-at-run-time-standalone-game/328401/12 "2024-02-27T19:12:03Z")

</div>

@Devolution.exe I’m having big troubles with this still. I have two monitors, where the primary one is a high-DPI model. My issue, in case you (or someone) else discovers a solution:

> [@How to select on which monitor to display the game ?](https://forums.unrealengine.com/t/how-to-select-on-which-monitor-to-display-the-game/110390):
>
> Hello, I am trying to build a settings menu for my game and I would like to add the option to select on which monitor the game should be displayed in case the player has several monitors. Then it would be great to retrieve the list of supported resolutions for that selected screen. Many games have this setting and nowadays it is very widely spread to have more than 1 monitor. Is it something possible ? How can I create that ? Right know I am only able to retrieve supported resolutions for th…

It is exactly as you describe:

I can start the application perfectly fine on the primary monitor. But if I start on the secondary monitor the mouse coordinates are just wrong. If I switch monitor then _sometimes_ this also messes up the mouse coordinates when switching to the secondary monitor.

There are quite a few variables involved here: UGameUserSettings, the UGameViewportClient, FSlateApplication, the GEngine-\>GameViewport, and I’m not quite sure where to look.

Any help is appreciated. And I will post here if I discover a solution.

---

_[View the full topic](https://forums.unrealengine.com/t/mouse-input-is-offset-in-umg-slate-when-the-resolution-viewportsize-is-changed-at-run-time-standalone-game/328401)._
