Fix movement direction of mouse cursor, install serial mouse driver but

do not load it by default

svn path=/trunk/; revision=5232
This commit is contained in:
Gé van Geldorp 2003-07-23 20:03:28 +00:00
parent e891a5adeb
commit 2cba955bd3
5 changed files with 12 additions and 16 deletions

View file

@ -62,8 +62,7 @@ DRIVERS_LIB = bzip2
DEVICE_DRIVERS = beep blue debugout floppy null serial vga videoprt
# Kernel mode input drivers
# keyboard mouclass psaux sermouse
INPUT_DRIVERS = keyboard mouclass psaux
INPUT_DRIVERS = keyboard mouclass psaux sermouse
# Kernel mode file system drivers
# cdfs ext2 fs_rec ms np vfat

View file

@ -267,6 +267,13 @@ HKLM,"SYSTEM\CurrentControlSet\Services\Psaux","ImagePath",0x00020000,"system32\
HKLM,"SYSTEM\CurrentControlSet\Services\Psaux","Start",0x00010001,0x00000001
HKLM,"SYSTEM\CurrentControlSet\Services\Psaux","Type",0x00010001,0x00000001
; Serial mouse driver
HKLM,"SYSTEM\CurrentControlSet\Services\Psaux","ErrorControl",0x00010001,0x00000000
HKLM,"SYSTEM\CurrentControlSet\Services\Psaux","Group",0x00000000,"Pointer Port"
HKLM,"SYSTEM\CurrentControlSet\Services\Psaux","ImagePath",0x00020000,"system32\drivers\serial.sys"
HKLM,"SYSTEM\CurrentControlSet\Services\Psaux","Start",0x00010001,0x00000004
HKLM,"SYSTEM\CurrentControlSet\Services\Psaux","Type",0x00010001,0x00000001
; RPC service
HKLM,"SYSTEM\CurrentControlSet\Services\Rpcss","ErrorControl",0x00010001,0x00000001
HKLM,"SYSTEM\CurrentControlSet\Services\Rpcss","ImagePath",0x00020000,"%SystemRoot%\system32\rpcss.exe"

View file

@ -38,6 +38,7 @@ vfatfs.sys = 3
keyboard.sys = 3
mouclass.sys = 3
psaux.sys = 3
sermouse.sys = 3
unbzip2.sys = 3

View file

@ -177,8 +177,8 @@ microsoft_mouse_handler(IN PKINTERRUPT Interrupt, PVOID ServiceContext)
[DeviceExtension->InputDataCount[Queue]];
/* Retrieve change in x and y from packet */
change_x = (int)(signed char)((mpacket[0] & 0x03) << 6) + mpacket[1];
change_y = (int)(signed char)((mpacket[0] & 0x0c) << 4) + mpacket[2];
change_x = - (int)(signed char)((mpacket[0] & 0x03) << 6) - mpacket[1];
change_y = - (int)(signed char)((mpacket[0] & 0x0c) << 4) - mpacket[2];
/* Some mice need this */
if (1 == coordinate)
@ -187,18 +187,6 @@ microsoft_mouse_handler(IN PKINTERRUPT Interrupt, PVOID ServiceContext)
change_y-=128;
}
#if 0
/* Change to signed */
if (128 <= change_x)
{
change_x = change_x - 256;
}
if (128 <= change_y)
{
change_y = change_y - 256;
}
#endif
Input->LastX = 2 * change_x;
Input->LastY = - 3 * change_y;

View file

@ -42,6 +42,7 @@ copy drivers\lib\bzip2\unbzip2.sys %ROS_INSTALL%\system32\drivers
copy drivers\input\keyboard\keyboard.sys %ROS_INSTALL%\system32\drivers
copy drivers\input\mouclass\mouclass.sys %ROS_INSTALL%\system32\drivers
copy drivers\input\psaux\psaux.sys %ROS_INSTALL%\system32\drivers
copy drivers\input\sermouse\sermouse.sys %ROS_INSTALL%\system32\drivers
copy drivers\dd\blue\blue.sys %ROS_INSTALL%\system32\drivers
copy drivers\dd\beep\beep.sys %ROS_INSTALL%\system32\drivers
copy drivers\dd\debugout\debugout.sys %ROS_INSTALL%\system32\drivers