Mouse Input: Difference between revisions

Jump to navigation Jump to search
[unchecked revision][unchecked revision]
Content deleted Content added
Creature (talk | contribs)
m More grammar fixes...
Creature (talk | contribs)
m Damn I just keep seeing grammar mistakes everywhere...
Line 28: Line 28:
indicating the status of mouse wheels and extra buttons.
indicating the status of mouse wheels and extra buttons.


Mice with no scroll wheels use 3 byte packets exclusively. Mice with scroll wheeels, and up to
Mice with no scroll wheels use 3 byte packets exclusively. Mice with scroll wheels, and up to
5 buttons (currently) can send 4 byte packets, if they are initialized properly.
5 buttons (currently) can send 4 byte packets, if they are initialized properly.


Line 57: Line 57:
! Always 1
! Always 1
! Middle Btn
! Middle Btn
! Left Btn
! Right Btn
! Right Btn
! Left Btn
|}
|}
<br>
<br>
Line 269: Line 269:
Scaling: if it is 1, scaling 2:1 is enabled; if 0 then scaling 1:1 is enabled.<br>
Scaling: if it is 1, scaling 2:1 is enabled; if 0 then scaling 1:1 is enabled.<br>


=====Resolution, scaling and sampling rate=====
These terms are all like 'settings' or 'options' for the mouse. For example, when you move the mouse, how many
packets it will send per movement, etc. Below you will find an explanation of these terms and a table with their
respective possibly values.

Resolution: How many packets will be sent for each millimeter of mouse movement.<br />
Scaling: Changes the actual packet that is sent (the movement bytes, for example).<br />
Sampling Rate: How many packets the mouse can send per second.<br />


=====Resolution, Scaling and Sampling rate =====
Those is some options about the mouse, when you move it, and about how many packets it can make pr second.
Resolution: this is how many packets pr millimeter movement.
Scaling: is a change to the packet reported for each millimeter.
Sampling rate: this is how many packets the mouse can send pr second.
Those “options” can (of cause) have different value, so let’s sum them up:
Resolution:
Resolution:


Line 295: Line 297:
|}
|}
<br>
<br>
For scaling, there is not many possibilities, since it can either be “1:1” or “2:1”, but looking at the scheme (below) we can see what happens if it is “2:1”
For scaling, there aren't many possibilities, since it can either be “1:1” or “2:1”, but looking at the scheme (below) we can see what happens if it is “2:1”


{| border="1" cellspacing="0" cellpadding="5" align="center"
{| border="1" cellspacing="0" cellpadding="5" align="center"
Line 351: Line 353:


===Initializing a PS2 Mouse===
===Initializing a PS2 Mouse===

The PS2 mouse port on a PC is attached to the auxiliary input of the PS2 keyboard controller. That input
The PS2 mouse port on a PC is attached to the auxiliary input of the PS2 keyboard controller. That input
might be disabled at bootup, and needs to be enabled. It is usually also desirable to have the mouse generate
might be disabled at bootup, and needs to be enabled. It is usually also desirable to have the mouse generate