[Question] Auto Center Mouse

The place to discuss scripting and game modifications for X4: Foundations.

Moderators: Scripting / Modding Moderators, Moderators for English X Forum

MWohlgemuth
Posts: 20
Joined: Wed, 6. Nov 02, 20:31
x4

[Question] Auto Center Mouse

Post by MWohlgemuth »

Does anybody know, if you can control the mouse location in the game using a script? I'm using mouse/keyboard combination and it is really annoying that, every time I leave a menu/screen back into the cockpit view, my ship starts spinning, because I forgot to center the mouse before doing so or forgot to turn off mouse steering. So a simple script centering your mouse, or even turn off mouse steering automatically as soon as you enter anything else but cockpit view, could do the trick.
Two possibilities exist: either we are alone in the universe or we are not. Both are equally terrifying. (Arthur C. Clarke)

Gnothi Seauton!
morbideth
Posts: 391
Joined: Sun, 9. Nov 08, 03:07
x3tc

Re: [Question] Auto Center Mouse

Post by morbideth »

iirc it already recenters when you are using a controller, or maybe just a gamepad, I saw something about it in the map menu code.
MWohlgemuth
Posts: 20
Joined: Wed, 6. Nov 02, 20:31
x4

Re: [Question] Auto Center Mouse

Post by MWohlgemuth »

Thanks for the hint, but up until now I only found, how to determine whether the player is using mouse steering at the moment or not.
Will keep looking.
Two possibilities exist: either we are alone in the universe or we are not. Both are equally terrifying. (Arthur C. Clarke)

Gnothi Seauton!

Return to “X4: Foundations - Scripts and Modding”