tinus
authorMagnus Olsen <magnus@greatlord.com>
Wed, 4 May 2005 23:06:15 +0000 (23:06 +0000)
committerMagnus Olsen <magnus@greatlord.com>
Wed, 4 May 2005 23:06:15 +0000 (23:06 +0000)
implement MouseResolution setting

Me (Magnus Olsen)
remove old psuax drv from hiveinst.inf and add tinus mouse drv settings
add MouseResolution setting to reg

svn path=/trunk/; revision=14982

reactos/bootdata/hiveinst.inf
reactos/bootdata/hivesys.inf
reactos/drivers/input/i8042prt/i8042prt.h
reactos/drivers/input/i8042prt/mouse.c

index 888b3c8..ab8226e 100644 (file)
@@ -24,7 +24,8 @@ HKLM,"SYSTEM\CurrentControlSet\Services\Vga","Start",0x00010001,0x00000001
 ;
 
 ; PS/2 mouse port driver
-HKLM,"SYSTEM\CurrentControlSet\Services\Psaux","Start",0x00010001,0x00000001
+HKLM,"SYSTEM\CurrentControlSet\Services\i8042Prt","Start",0x00010001,0x00000001
+
 
 ; Serial mouse driver
 ;HKLM,"SYSTEM\CurrentControlSet\Services\Sermouse","Start",0x00010001,0x00000001
index 087c99f..012ce92 100644 (file)
@@ -583,6 +583,7 @@ HKLM,"SYSTEM\CurrentControlSet\Services\i8042Prt","Type",0x00010001,0x00000001
 
 HKLM,"SYSTEM\CurrentControlSet\Services\i8042Prt\Parameters","SampleRate",0x00010001,0x00000060
 HKLM,"SYSTEM\CurrentControlSet\Services\i8042Prt\Parameters","BreakOnSysRq",0x00010001,0x00000001
+HKLM,"SYSTEM\CurrentControlSet\Services\i8042Prt\Parameters","MouseResolution",0x00010001,0x00000003
 
 ; Keyboard class driver
 HKLM,"SYSTEM\CurrentControlSet\Services\kbdclass","ErrorControl",0x00010001,0x00000000
index 6d155e2..85bb549 100644 (file)
@@ -87,7 +87,7 @@ typedef struct _I8042_SETTINGS
        DWORD OverrideKeyboardSubtype;
        DWORD MouseResendStallTime;
        DWORD MouseSynchIn100ns;
-       DWORD MouseResolution;
+       DWORD MouseResolution;        /* done */
        DWORD NumberOfButtons;
        DWORD EnableWheelDetection;
 } I8042_SETTINGS, *PI8042_SETTINGS;
index b044b0f..ec7239f 100644 (file)
@@ -299,7 +299,9 @@ BOOLEAN STDCALL I8042MouseResetIsr(PDEVICE_EXTENSION DevExt,
                DevExt->MouseResetState = ExpectingFinalResolutionACK;
                return TRUE;
        case ExpectingFinalResolutionACK:
-               I8042IsrWritePortMouse(DevExt, 0x03);
+               I8042IsrWritePortMouse(DevExt,
+                                      DevExt->Settings.MouseResolution & 0xff);
+               DPRINT1("%x\n", DevExt->Settings.MouseResolution);
                DevExt->MouseResetState = ExpectingFinalResolutionValueACK;
                return TRUE;
        case ExpectingFinalResolutionValueACK: