|
@@ -736,106 +736,36 @@ void shutdown_user()
|
|
|
|
|
|
|
|
|
|
void ps2_mouse_init_user() {
|
|
void ps2_mouse_init_user() {
|
|
|
|
+ uint8_t rcv;
|
|
|
|
+
|
|
|
|
|
|
PS2_MOUSE_SEND(0xE2, "set trackpoint sensitivity: 0xE2");
|
|
PS2_MOUSE_SEND(0xE2, "set trackpoint sensitivity: 0xE2");
|
|
PS2_MOUSE_SEND(0x81, "set trackpoint sensitivity: 0x81");
|
|
PS2_MOUSE_SEND(0x81, "set trackpoint sensitivity: 0x81");
|
|
PS2_MOUSE_SEND(0x4A, "set trackpoint sensitivity: 0x4A");
|
|
PS2_MOUSE_SEND(0x4A, "set trackpoint sensitivity: 0x4A");
|
|
- PS2_MOUSE_SEND(0x60, "set trackpoint sensitivity: 0x60");
|
|
+ PS2_MOUSE_SEND(0x49, "set trackpoint sensitivity: 0x59");
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ PS2_MOUSE_SEND(0xE2, "set negative inertia factor: 0xE2");
|
|
|
|
+ PS2_MOUSE_SEND(0x81, "set negative inertia factor: 0x81");
|
|
|
|
+ PS2_MOUSE_SEND(0x4D, "set negative inertia factor: 0x4D");
|
|
|
|
+ PS2_MOUSE_SEND(0x06, "set negative inertia factor: 0x06");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
PS2_MOUSE_SEND(0xE2, "set trackpoint speed: 0xE2");
|
|
PS2_MOUSE_SEND(0xE2, "set trackpoint speed: 0xE2");
|
|
PS2_MOUSE_SEND(0x81, "set trackpoint speed: 0x81");
|
|
PS2_MOUSE_SEND(0x81, "set trackpoint speed: 0x81");
|
|
PS2_MOUSE_SEND(0x60, "set trackpoint speed: 0x60");
|
|
PS2_MOUSE_SEND(0x60, "set trackpoint speed: 0x60");
|
|
- PS2_MOUSE_SEND(0x90, "set trackpoint speed: 0x90");
|
|
+ PS2_MOUSE_SEND(0x61, "set trackpoint speed: 0x61");
|
|
|
|
|
|
-
|
|
+
|
|
- PS2_MOUSE_SEND(0xE2, "set negative inertia factor: 0xE2");
|
|
|
|
- PS2_MOUSE_SEND(0x81, "set negative inertia factor: 0x81");
|
|
|
|
- PS2_MOUSE_SEND(0x4D, "set negative inertia factor: 0x4D");
|
|
|
|
- PS2_MOUSE_SEND(0x03, "set negative inertia factor: 0x03");
|
|
|
|
-
|
|
|
|
-
|
|
|
|
- PS2_MOUSE_SEND(0xE2, "set disable up threshold: 0xE2");
|
|
|
|
- PS2_MOUSE_SEND(0x47, "set disable up threshold: 0x47");
|
|
|
|
- PS2_MOUSE_SEND(0x2C, "set disable up threshold: 0x2C");
|
|
|
|
- PS2_MOUSE_SEND(0x01, "set disable up threshold: 0x01");
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
- print("ps2_mouse_init: send 0xE2: ");
|
|
|
|
- rcv = ps2_host_send(0xE2);
|
|
|
|
- phex(rcv); phex(ps2_error); print("\n");
|
|
|
|
- print("ps2_mouse_init: send 0x81: ");
|
|
|
|
- rcv = ps2_host_send(0x81);
|
|
|
|
- phex(rcv); phex(ps2_error); print("\n");
|
|
|
|
- print("ps2_mouse_init: send 0x5D: ");
|
|
|
|
- rcv = ps2_host_send(0x5D);
|
|
|
|
- phex(rcv); phex(ps2_error); print("\n");
|
|
|
|
-
|
|
|
|
- print("ps2_mouse_init: send 0x87: ");
|
|
|
|
- rcv = ps2_host_send(0x87);
|
|
|
|
- phex(rcv); phex(ps2_error); print("\n");
|
|
|
|
- */
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
- print("ps2_mouse_init: send 0xE2: ");
|
|
|
|
rcv = ps2_host_send(0xE2);
|
|
rcv = ps2_host_send(0xE2);
|
|
- phex(rcv); phex(ps2_error); print("\n");
|
|
+ rcv = ps2_host_send(0x2C);
|
|
- print("ps2_mouse_init: send 0x81: ");
|
|
+ rcv = ps2_host_recv_response();
|
|
- rcv = ps2_host_send(0x81);
|
|
+ if ((rcv & 1) == 1) {
|
|
- phex(rcv); phex(ps2_error); print("\n");
|
|
+
|
|
- print("ps2_mouse_init: send 0x59: ");
|
|
+ rcv = ps2_host_send(0xE2);
|
|
- rcv = ps2_host_send(0x59);
|
|
+ rcv = ps2_host_send(0x47);
|
|
- phex(rcv); phex(ps2_error); print("\n");
|
|
+ rcv = ps2_host_send(0x2C);
|
|
-
|
|
+ rcv = ps2_host_send(0x01);
|
|
- print("ps2_mouse_init: send 0x14: ");
|
|
+ }
|
|
- rcv = ps2_host_send(0x14);
|
|
|
|
- phex(rcv); phex(ps2_error); print("\n");
|
|
|
|
- */
|
|
|
|
}
|
|
}
|