Commit df89ad18 authored by Vojtech Pavlik's avatar Vojtech Pavlik

Support the 0xff ps/2 mouse reset command in mousedev.c, XFree

needs it for mouse autodetection.
parent a019f4c3
...@@ -351,6 +351,15 @@ static ssize_t mousedev_write(struct file * file, const char * buffer, size_t co ...@@ -351,6 +351,15 @@ static ssize_t mousedev_write(struct file * file, const char * buffer, size_t co
list->ps2[1] = 0x60; list->ps2[2] = 3; list->ps2[3] = 200; list->ps2[1] = 0x60; list->ps2[2] = 3; list->ps2[3] = 200;
list->bufsiz = 4; list->bufsiz = 4;
break; break;
case 0xff: /* Reset */
list->impsseq = 0;
list->imexseq = 0;
list->mode = 0;
list->ps2[0] = 0xaa;
list->ps2[1] = 0x00;
list->bufsiz = 2;
break;
} }
list->buffer = list->bufsiz; list->buffer = list->bufsiz;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment