Mouses dont work like that, im sorry to tell you, they work like this:
2 sets of these (up/down, right/left)
IR Emitter----->) :O: [-----> IR Detector
spaced "pins" wheel
it logically reads how fast the "pins" on the wheel are going by, and what
direction they are going, and you get slow/fast movement, and up/down
movement.