Fix mouse buttons

feature/SubscribeAll
Clive Galway 5 years ago
parent 3a385189f0
commit 6cfa439bcb

@ -148,7 +148,6 @@ UpdateWidth(hwnd, reset := 0){
CheckboxChanged(id, hwnd){ CheckboxChanged(id, hwnd){
global AHI global AHI
GuiControlGet, state, , % hwnd GuiControlGet, state, , % hwnd
;~ ret := Monitor.SetDeviceFilterState(id, state)
if (state){ if (state){
if (id < 11){ if (id < 11){
AHI.SubscribeKeyboard(id, false, Func("KeyboardEvent").Bind(id)) AHI.SubscribeKeyboard(id, false, Func("KeyboardEvent").Bind(id))
@ -211,11 +210,9 @@ KeyboardEvent(id, code, state){
} }
MouseButtonEvent(id, code, state){ MouseButtonEvent(id, code, state){
global hLvMouse, filterMouseMove global hLvMouse
if (filterMouseMove && (x != 0 || y != 0))
return
Gui, ListView, % hLvMouse Gui, ListView, % hLvMouse
row := LV_Add(, id, code, state, x, y, "Button") row := LV_Add(, id, code, state, "", "", "Button")
LV_Modify(row, "Vis") LV_Modify(row, "Vis")
} }

Loading…
Cancel
Save