flat assembler
Message board for the users of flat assembler.

Index > OS Construction > PS/2 mouse scroll wheel

Author
Thread Post new topic Reply to topic
edfed



Joined: 20 Feb 2006
Posts: 4240
Location: 2018
edfed
Quote:
Here is Z3 though Z0 is a signed value, of the Z movement (scroll) if it is increased/ decreased with 2, then it is the vertical scroll wheel, else it is just the horizontal scroll wheel.

but what does it mean?

does it means:
odd values of Z (LSb set) are about vertical
even values (LSb clear) are about horizontal
means bit 0 indicates a displacement on V or H.

or:
if Z=(Z-1) +1 then, vertical
if Z=(Z-1) -1 then, idem

if Z=(Z-1) +2 then horizontal
if Z=(Z-1) -2 then idem

meaning can scroll only one position per frame...

or anything else?

because here, this explantations found everywhere in a cpy paste way is a little blur, there is not any illustraction to show what it is really.

i don't have this type of mouse at home, then, i cannot test..
maybe the touch pad is some emultation... i wonder...

thanks.
Post 01 Mar 2011, 15:52
View user's profile Send private message Visit poster's website Reply with quote
edfed



Joined: 20 Feb 2006
Posts: 4240
Location: 2018
edfed
finally got an answer from the author of the osdev wiki article about mouse.

and sugested to rewrite it with a truth table

Code:
truth table for the dual scroll wheel Z field (bits 0 to 3 of 4th byte)
0 no scroll
1 one positive step on vertical scroll
2 one positive step on horizontal scroll
3 to D invalid
E one n├ęgative step on horinzontal scroll
F one n├ęgative step on vertical scroll    

then, no possible confusion.
Post 02 Mar 2011, 21:45
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.