Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have an Acer Netbook with Windows 7 starter and I am using the Kindle-PC to read books. The Graphics driver has an option to rotate the screen and when I rotate it 90-deg (for more text in Kindle-PC full-screen mode) the mouse stays at the original orientation. It is a mental struggle in spatial concepts to use the mouse when Left moves Up and Right moves Down etc.

I need an app (or write one in Delphi) that will grab mouse movements and translate them into their 90-degree equivalents and then move the mouse.

Any suggestions or code snippets?

share|improve this question

migrated from stackoverflow.com Dec 2 '11 at 18:45

This question came from our site for professional and enthusiast programmers.

    
You did say "mouse".... So rotate the mouse 90 degrees. In the event that you really meant "built-in trackpad", you really need to do this at the driver level. –  Chris Thornton Dec 2 '11 at 15:44
    
Thanks, I did mean mouse as I have a USB one, but also the trackpad would need changing too. However, Tim's suggestion below solves the problem as it takes the mouse and trackpad movements with it on the Rotate. –  user983145 Dec 2 '11 at 17:11
add comment

2 Answers

In Win7, you can go to the screen resolution settings and change the orientation. Doing it this way, rather than your graphics driver, will cause windows to map the mouse movement to what you'd expect.

share|improve this answer
    
Thanks Tim, that works as expected. I used the raw graphics driver setup to change orientation, I didn't think of looking at Screen Resolution. –  user983145 Dec 2 '11 at 17:12
    
I would have written a small app to do it. If you read the full original post, that's why I asked for Code Snippets! ">Someone asked" I did a search and also read the entire list presented when I started the post. It would be more helpful to quote the link, I thought we were here to help each other. –  user983145 Dec 2 '11 at 20:25
    
In the spirit of stack overflow/superuser.com/ all stack exchange sites, you normally mark the answer that worked for you as the answer by checking the checkmark next to the answer. I thought you had yesterday, but I don't see the checkmark now. –  Tim Coker Dec 3 '11 at 11:35
    
Hi Tim, I guess I spoke too soon. After shutting down last night and restarting this morning the mouse has reverted to non-conforming with the orientation. It looks like I need to write a small app that will change orientation and translate the mouse movement though 90-degrees. I am back to my original request for code-snippet Help. {grin} –  user983145 Dec 3 '11 at 17:43
add comment

If you have a Synaptics touchpad you could take a look at this project for scrolling.

It uses the api provided by the synaptics driver to simulate scrolling when you use two fingers. This api fires an event whenever it detects a finger movement. You can catch this event in your application (so the driver will not report this movement to the operating system) and simulate mouse movements back to windows.

As this project is written in Borland C++ it should be fairly easy to port it to Delphi.

share|improve this answer
    
Thanks, it does have a Synaptics pad. I will give it a try. I think I still have a Borland C++ around version 5 or 6 on an older laptop. I can build an app on that. –  user983145 Dec 4 '11 at 16:20
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.