mirror of
https://github.com/reactos/reactos.git
synced 2024-08-07 19:58:21 +00:00
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:
parent
e891a5adeb
commit
2cba955bd3
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -38,6 +38,7 @@ vfatfs.sys = 3
|
|||
keyboard.sys = 3
|
||||
mouclass.sys = 3
|
||||
psaux.sys = 3
|
||||
sermouse.sys = 3
|
||||
|
||||
unbzip2.sys = 3
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue