Skip to content

Commit 47a477a

Browse files
Jaybee-kamocat
authored andcommitted
ps2 mouse initialize_and_move
1 second at 1MHz. Initialize a ps2 mouse, configure it; the mouse then reports movement data. - host resets device, waits for reset to complete - host sets sample rate to 200, 100, 80 - this activates reporting scroll wheel data is available - host sets device to maximum sample rate: 200; resolution=1: 2 count/mm; 1:1 scaling, stream mode - host gets device id, enable data reporting - after a delay, the mouse is moved, and reports it's changing location, in sequences of 4 bytes: - flags, x movement, y movement, z (scroll wheel) movement. - the sample data does not include any button presses or scroll wheel movement
1 parent a5e5171 commit 47a477a

1 file changed

File tree

ps2_mouse_initialize_and_move.sr

5.09 KB
Binary file not shown.

0 commit comments

Comments
 (0)