Skip to content

Commit

Permalink
Fix WheelLeft/WheelRight
Browse files Browse the repository at this point in the history
  • Loading branch information
evilC committed Oct 27, 2018
1 parent b399ab6 commit 10aef37
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Threads/BindModeThread.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ class _BindMapper {
InputEvent(e, i){
;~ OutputDebug % "UCR| BindMode KBM IO Event: " e ", Code: " i ", IOClass: " this.ReturnIOClass
this.Callback.Call(e, i, 0, this.ReturnIOClass)
if (i == 158 || i == 159){
if (i >= 156 && i <= 159){
; Mouse wheel only has a down event, simulate an up event so that bind mode properly ends
this.Callback.Call(0, i, 0, this.ReturnIOClass)
}
Expand Down
4 changes: 2 additions & 2 deletions Threads/ProfileInputThread.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ Class _InputThread {
}

KeyEvent(ControlGUID, e){
;OutputDebug % "UCR| AHK_KBM_Input Key event for GuiControl " ControlGUID
;~ OutputDebug % "UCR| AHK_KBM_Input Key event for GuiControl " ControlGUID ", state " e
;msgbox % "Hotkey pressed - " this.ParentControl.Parentplugin.id
;this.Callback.Call(ControlGUID, e)
fn := this.InputEvent.Bind(this, ControlGUID, e)
Expand Down Expand Up @@ -239,7 +239,7 @@ Class _InputThread {
max := bo.Binding.Length()
Loop % max {
key := bo.Binding[A_Index]
if (key == 158 || key == 159){
if (key >= 156 && key <= 159){
; Mouse Wheel
return true
}
Expand Down

0 comments on commit 10aef37

Please sign in to comment.