Google Answers Logo
View Question
Q: Invert mouse in a DirectInput-based game? ( No Answer,   2 Comments )
Subject: Invert mouse in a DirectInput-based game?
Category: Computers > Programming
Asked by: blaize-ga
List Price: $100.00
Posted: 30 Sep 2004 15:12 PDT
Expires: 30 Oct 2004 15:12 PDT
Question ID: 408579
hi all. i'm looking for a way to invert mouse input on the y axis in apps that
use DirectInput - specifically, in the game Beyond Good & Evil. there's an
in-game option that does this, but it inverts the x-axis as well, which renders
the option unusable. (see this thread [1].)

acceptable answers would either be a setting in the game or windows XP that
controls mouse orientation per-axis, or a program that runs in the background
and inverts the mouse input (per-axis). i've looked for the former, and i doubt
it exists, so the latter is probably your best bet.

the success criteria is pretty simple - download the Beyond Good & Evil demo
[2], apply your answer, and check that you can play with the mouse y axis
inverted and the x axis normal, in both "camera" and "look" modes. if you can,
i'll accept your answer!


i've done a fair amount of research on this, and it's definitely possible...but
i'm not a windows/directx developer, and i'm not quite ready to learn. :P

i've looked through the windows mouse control panel, the registry, etc., and
haven't found anything.

i tried installing Logitech's MouseWare [3,4], which lets you change the mouse's
orientation, and still has effect in DirectInput-based apps (close!), but
doesn't let you change it per-axis (doh). i also tried Kensington MouseWorks
[5], but i don't have a Kensington mouse, so i couldn't use it. (btw, if your
answer requires me to buy a specific mouse, i'll consider it.)

i've tried a number of utilities that let you drive the mouse pointer with a
joystick, and can control the orientation of each axis independently...but they
don't have any effect when you use the mouse itself.

finally, i wrote a script [6] for AutoHotKey [7], a pretty sophisticated
program that lets you script and remap mouse, keyboard, and joystick input. it
inverts the mouse per-axis successfully, but doesn't affect DirectInput apps.

sigh...i just want to play the game already! :P









Clarification of Question by blaize-ga on 15 Oct 2004 18:49 PDT
i originally posted this question to 'Computers > Games', but it went
unanswered for two weeks. so, i'm reposting here in the hopes that
some directx guru can whip up some quick-and-dirty code. thanks in
There is no answer at this time.

Subject: Re: Invert mouse in a DirectInput-based game?
From: mafsoft-ga on 27 Oct 2004 06:13 PDT

this is to tell you (before time is over) that i am working on it. i
have seen your question some days ago and since then spent several
hours on finding a solution. i have already programmed one approach
but that didn't work well in windows and in directinput it didn't work
at all. but i am confident that my current idea could work some time.
the only problem is that i don't have much time for that.

even if i give up later, i could send you a lot of useful info.

Subject: Re: Invert mouse in a DirectInput-based game?
From: mafsoft-ga on 10 Nov 2004 10:27 PST

i have got it to work! i now have a mouse driver that is able to
invert one mouse axis on request. it is tested on windows xp with
different ps2 and usb mice. but it should also work on windows 2000
and other mice.

i did not test it with the mentioned game but with some other
directinput games and it works smoothly and well.

the driver is also good to annoy colleagues :)

if someone has other ideas how to change mouse movements on-the-fly,
please tell me. i could think of special functions for people with
disabilities or so.

the driver is available on request.

-moritz (maf-soft)

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  

Google Home - Answers FAQ - Terms of Service - Privacy Policy