[Fix] Pass through instance

PS2
evilC 6 years ago
parent 1c20a69cd1
commit 3a06df1d72

@ -74,7 +74,7 @@ class AutoHotInterception {
; --------------- Querying ------------------------
GetDeviceID(IsMouse, VID, PID, instance := 1){
static devType := {0: "Keyboard", 1: "Mouse"}
dev := this.Instance.GetDeviceId(IsMouse, VID, PID)
dev := this.Instance.GetDeviceId(IsMouse, VID, PID, instance)
if (dev == 0){
MsgBox % "Could not get " devType[isMouse] " with VID " VID ", PID " PID ", Instance " instance
ExitApp
@ -83,11 +83,11 @@ class AutoHotInterception {
}
GetKeyboardID(VID, PID, instance := 1){
return this.GetDeviceId(false, VID, PID)
return this.GetDeviceId(false, VID, PID, instance)
}
GetMouseID(VID, PID, instance := 1){
return this.GetDeviceId(true, VID, PID)
return this.GetDeviceId(true, VID, PID, instance)
}
GetDeviceList(){

Loading…
Cancel
Save