C
Carlos García-Carazo
Hello,
I am working on a C# application for an industrial machine, using Windows
Forms,
where the user could look at the screen from a 90 degree rotated position,
like he
could turn the monitor to leave it standing on its left (or right) side.
There are many ways to show a "turned" interface in this case, but the
problem is that when he moves the mouse right, in a turned screen the mouse
cursor goes down (or up), when he moves it up the cursor goes left, and so
on.
So I need to swap the mouse Input axis at OS level, or at least inside my
application window. I need the X input be the Y (or negative Y) and vice
versa.
I believe this could be a common problem for several developers, so there
should be some kind of utility or sample code out there, but I haven't found
anything.
I have tried to capture and change the events coming through .NET framework,
but the mouse cursor is still managed from Windows OS. Also I haven't found
anything
useful in Open Source DLL's to jump to kernel-mode (Ring0) and change the
mouse hardware registers.
Is there some suggestion or should I write a mouse driver as the only
solution possible?
Thx,
Carlos
I am working on a C# application for an industrial machine, using Windows
Forms,
where the user could look at the screen from a 90 degree rotated position,
like he
could turn the monitor to leave it standing on its left (or right) side.
There are many ways to show a "turned" interface in this case, but the
problem is that when he moves the mouse right, in a turned screen the mouse
cursor goes down (or up), when he moves it up the cursor goes left, and so
on.
So I need to swap the mouse Input axis at OS level, or at least inside my
application window. I need the X input be the Y (or negative Y) and vice
versa.
I believe this could be a common problem for several developers, so there
should be some kind of utility or sample code out there, but I haven't found
anything.
I have tried to capture and change the events coming through .NET framework,
but the mouse cursor is still managed from Windows OS. Also I haven't found
anything
useful in Open Source DLL's to jump to kernel-mode (Ring0) and change the
mouse hardware registers.
Is there some suggestion or should I write a mouse driver as the only
solution possible?
Thx,
Carlos