You are not logged in.

#1 2009-09-20 03:11:35

y27
Member
Registered: 2009-05-27
Posts: 147
Website

Reading data from mouse to add scrolling capability

Hi all,

I bought a new laptop recently and beside the amazing RAM / processor / gfx (6GB / AMD64 Turion ultra x2, 1GB dedicated), I started to like one thing about it very much : the capability to scroll windows using the thingy on the rightmost part of the touchpad.

I have another VERY old laptop which doesn't have this feature, but I've been thinking if it could be implemented in software maybe?


I wanted to write something for this myself, but AFAIK the PS/2 mouse (which is emulated by the touchpad (it's a simple 2-button touchpad)?) sends only 3 bytes per movement/click, which are the flags byte, the delta X byte, and delta Y. Correct me if I'm wrong.

Therefore if I want to monitor only the rightmost part of the touchpad, a problem arises : if you know only the delta's, how do you get the absolute position? Is it recorded somewhere? And what happens when you remove your finger from the touchpad and touch it in a completely different place?

Any guidance and help is greatly appreciated.

Thanks

Offline

Board footer

Powered by FluxBB