Re: How to change Mouse behavior

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Bob Powell [MVP] (bob_at__spamkiller_bobpowell.net)
Date: 01/20/05


Date: Thu, 20 Jan 2005 03:18:22 +0100

I think that you need to be dealing with the low-level system and not what's
happening at an application level.

You cannot have the OS thinking it's in one orientation and a single
application thinking it's in another.

I suggest that you talk to people in the DDK newsgroup.

-- 
Bob Powell [MVP]
Visual C#, System.Drawing
Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm
Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm
All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
"Carlos García-Carazo" <nospam@nospam.com> wrote in message 
news:uCxNnXi$EHA.4004@tk2msftngp13.phx.gbl...
> Sorry, but I didn't explain it correctly.
>
> My problem is:
> 1. Take the monitor in your hands, turn it 90 degrees to the left and
>    carefully leave it over the table.
>
> 2. Move the mouse to the right. I need the windows mouse cursor to go
>   that way, but it moves up.
>
> 3. The user can't click anything because it is very difficult to point the 
> mouse
>   arrow at the desired target.
>
> Looking at your code, your take the mouse coordinates from the MouseMove
> event and transform it to draw the screen. This is correct, but it is only 
> the half
> of my problem.
>
> The other half is that I need to move the mouse arrow in the transformed 
> space.
> In your example, the arrow icon of the mouse (managed by windows)
> should move at a step of 2 when the zoom factor is 200%, to solve my 
> problem.
>
> I need to capture the movement of the mouse and transform it before it 
> applies to
> the Windows arrow, so the user can point with it from its transformed 
> space.
>
> I know this is a weird thing, but it makes sense if you imagine a worker 
> looking at
> the image from a DLP projector over a working table, moving himself
> round the projection, and handling a wireless mouse from this "rotated" 
> position.
>
> Regards,
> Carlos
>
> 


Relevant Pages

  • Re: Partial zooming using transform
    ... Find great Windows Forms articles in Windows Forms Tips and Tricks ... Is there any "good way" of figuring out the dimensoions of the transformed image to get the size of the border I need to draw? ... the "object" will be a square or a slice of pixels with its own individual zoom and transform. ...
    (microsoft.public.dotnet.framework.drawing)
  • Re: Image drawn on custom button subclass does not show up
    ... Find great Windows Forms articles in Windows Forms Tips and Tricks ... Answer those GDI+ questions with the GDI+ FAQ ... My first step is to draw the 'down arrow' ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Zero Width Pen Draws through clipped region...
    ... Find great Windows Forms articles in Windows Forms Tips and Tricks ... Exclude the rectangle from the graphics clip region. ... IF you use a pen that is more than one pixel the clipping works ...
    (microsoft.public.dotnet.framework.drawing)
  • Re: Scrolling question
    ... Find great Windows Forms articles in Windows Forms Tips and Tricks ... protected override void OnPaint ... > to scoll just fine, but at least for me, the Sine wave will not scroll ...
    (microsoft.public.dotnet.framework.drawing)
  • Re: Rotate ellipse around center
    ... Find great Windows Forms articles in Windows Forms Tips and Tricks ... private void Form1_Paint(object sender, System.Windows.Forms.PaintEventArgs ... > ellipse what so erver. ...
    (microsoft.public.dotnet.framework.drawing)