; touchkit_PS2.inf
;
; Installation file (.inf) for the Touchkit device.
;
; (c) Copyright 2008 Inc. 
;

[Version]
Signature="$Windows NT$"
Provider=%TOUCHKIT%
ClassGUID={4D36E96F-E325-11CE-BFC1-08002BE10318}
Class=Mouse
CatalogFile=touchkit_PS2.cat
DriverVer=01/17/2008, 5.0.0.5017
[SourceDisksNames]
1 = %DiskId1%,,
[DestinationDirs]
DefaultDestDir   = 12
;DLLCopyFiles = 11
;
; Driver information
;

[Manufacturer]
%TOUCHKIT%   = TouchkitMfg;

[TouchkitMfg]
%PS2_TOUCH%	     = egxps2_Inst, *PNP0F13

;
; General installation section
;

;====================================================================
; PS2 Installation Section
;====================================================================

[egxps2_Inst]
; perform port related actions from msmouse.inf
Include=msmouse.inf
Needs=PS2_Inst
AddReg=egxps2_AddReg
CopyFiles=egxps2_Copyfiles, DLLCopyFiles

[egxps2_AddReg]
;
; File sections
;
;HKR,,EnumPropPages32,,"touchkitprop.dll,EnumPropPages"

[egxps2_CopyFiles]
egxfilter.sys

[DLLCopyFiles]
;touchkitprop.dll

;
; Service Installation
;

[egxps2_Inst.Services]
; Install the port driver and mouclass from msmouse.inf
Include=msmouse.inf
Needs=PS2_Inst.Services
AddService = egxfilter,, egxfilter_Service_Inst

[egxfilter_Service_Inst]
ServiceType    = 1                  ; SERVICE_KERNEL_DRIVER
StartType      = 3                  ; SERVICE_DEMAND_START
ErrorControl   = 0                  ; SERVICE_ERROR_IGNORE
LoadOrderGroup = Pointer Port
ServiceBinary  = %12%\egxfilter.sys

;[egxfilter_EventLog_Inst]
;AddReg = egxfilter_EventLog_AddReg

;[egxfilter_EventLog_AddReg]
;HKR,,EventMessageFile,0x00020000,"%SystemRoot%\System32\IoLogMsg.dll;%SystemRoot%\System32\drivers\egxfilter.sys"
;HKR,,TypesSupported,0x00010001,7

[egxps2_Inst.HW]
; Add the device upper filter
Include=msmouse.inf
Needs=PS2_Inst.HW
DelReg = egxps2_DelReg
AddReg = egxfilter.HW.AddReg
[egxfilter.HW.AddReg]
HKR,,"UpperFilters",0x00010000,"egxfilter"
HKR,,"CalSource",0x00010003,0x00000000	     ;Read/Write Calibration data for EEPROM
HKR,,"BeepMode",0x00010003,0x00000001        ;Set last argument to 0x00000000 =  Off Beep
                                             ;Set last argumentto 0x00000001 =  Beep when touched
                                             ;Set last argumentto 0x00000002 =  Beep when released
                                             
HKR,,"BeepFrequency",0x00010003,0x00000064   ;Beep Frequency    0x00000064~0x00000FA0
HKR,,"BeepDuration",0x00010003,0x00000019    ;Beep duration     0x00000019~0x000001F4
HKR,,"MouseMode",0x00010003,0x40000000
                          ; you can set last argument for MouseMode follow :
                          ; 0x80000000   make driver to report right button.
                          ; 0x40000000   enable auto right button feature.
                          ; 0x20000000   disable driver to report mouse event.
                          ; 0x10000000   Set this flag to make driver to by pass the software filter to get more fast response.
                          ; 0x00000000   Default value of mouse emulation mode.
                          ; 0x00000001   set the mouse emulation mode to be "Click on Touch".
                          ; 0x00000002   set the mouse emulation mode to be "Click on Release".
                          ; 0x00000003   set the mouse emulation mode to be "Click On Touch No Move".
                          ; 0x00000004	  set the mouse emulation mode to be "click On Release No Move".

HKR,,"ConstDuration",0x00010003,0x0000012C  ;constant touch parameter which define the touch duration 
                                            ;in milli-second for auto right click.(0x0000012C~0x00000384)
					      
HKR,,"ConstRange",0x00010003,0x00000008     ;constant touch parameter which define the touch range for
                                            ; auto right click.(0x00000008~0x00000080)
                                                                 
;HKR,,"EdgeInfo",0x00000001,0x32,0x00,0x00,0x00,0x32,0x00,0x00,0x00,0x32,0x00,0x00,0x00,0x32,0x00,0x00,0x00,0x00,0xFB,0xFF,0xFF,0x00,0xFB,0xFF,0xFF,0x01,0x00,0x00,0x00
;--------------------------/      lLeft        /       lRight      /        lTop       /        lBottom    /      lOffsetX     /      lOffsetY     /        ulMode     /
;HKR,,"BeepMode",0x00010003,1
;HKR,,"MouseMode",0x00010003,0x00000000

[egxps2_DelReg]
HKR,,"BeepMode"
HKR,,"BeepFrequency"
HKR,,"BeepDuration"
HKR,,"MouseMode"
HKR,,"ConstDuration"
HKR,,"ConstMode"
HKR,,"ConstRange"
HKR,,"EdgeInfo"
HKR,,"Branch"
HKR,,"CalInfo"
HKR,,"CalSource"
HKR,,"LinzInfo"
HKR,,"Migrated"
HKR,,"MonitorInfo"
HKR,,"NativeName"
HKR,,"Orient"
HKR,,"SymbolicName"
HKR,,"TouchGrid"
HKR,,"TouchSpeed"
;
; Source file information
;
[SourceDisksFiles]
; Files for disk Touchkit Touchscreen Controller. Installation Disk #1 (Mouse)
egxfilter.sys = 1,,
;touchkitprop.dll = 1,,

[Strings]

;
; Non-Localizable Strings
;

REG_SZ         = 0x00000000
REG_MULTI_SZ   = 0x00010000
REG_EXPAND_SZ  = 0x00020000
REG_BINARY     = 0x00000001
REG_DWORD      = 0x00010001
SERVICEROOT    = "System\CurrentControlSet\Services"

;
; Localizable Strings
;

PS2_TOUCH	= "Touchkit Filter"
EGX_BUS		= "TouchScreen Enumerator"
RUNONCEKEYNAME = "Software\Microsoft\Windows\CurrentVersion\RunOnce"
DiskId1 = "Touchkit. Driver Installation Disk(TouchScreen)"
TOUCHKIT = "Touchkit"
