Skip to content

Commit

Permalink
Disable pseudo-thread callback for mouse delta
Browse files Browse the repository at this point in the history
  • Loading branch information
evilC committed Jun 13, 2018
1 parent 989b3fc commit 20d5e2f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Threads/ProfileInputThread.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -735,9 +735,10 @@ Class _InputThread {
for ControlGuid, DeviceID in this._DeltaBindings {
if (DeviceID == -1 || DeviceID == ThisMouse){
;Outputdebug % "UCR| ProfileInputThread Firing callback for MouseDelta ControlGUID " ControlGuid ", DeviceID: " ThisMouse
;this.Callback.Call(ControlGuid, state)
fn := this.InputEvent.Bind(this, ControlGUID, state)
SetTimer, % fn, -0
this.Callback.Call(ControlGuid, state)
; Using SetTimer -0 seems to utterly hammer performance, so don't do it for mouse delta
;~ fn := this.InputEvent.Bind(this, ControlGUID, state)
;~ SetTimer, % fn, -0
}
}

Expand Down

0 comments on commit 20d5e2f

Please sign in to comment.