Set mouse to center of screen

Hello,

i want to set my mouse cursor into center of screen when game starts. Is it possible to make it in Blueprints?

Thanks lot for help. :slight_smile:

1 Like

Heey :slight_smile:

Can you try this ?

8 Likes

Yo :D, yes i´ve try this but it doesn´t seems to work properly, i don´t know why but mouse cursor is not in middle of viewport screen

sorry it works as it should :smiley:

That will only work if your Window position is at 0,0 or in Fullscreen (you can verify when you start in new Pie Window with the option set to spawn at 0,0)

Sadly I don´t know of a way to get the Window position to fix that from BP (in C++ its pretty streight forward, you can find answers here on AH pretty easy)

yes that is it, windows needs to be on 0,0 location or at fullscreen and then it works :slight_smile:

You save me!