evilC / AutoHotInterception

An AutoHotkey wrapper for the Interception driver
MIT License
708 stars 64 forks source link

Mouse Wheel events #35

Closed archit9169 closed 5 years ago

archit9169 commented 5 years ago

For Mouse Wheel events, the parameter will be 1 for Wheel Up / Right and -1 for Wheel Down / Left

Wheel Up and Wheel Right is working fine, however Wheel Down And Wheel Left are behaving like up and right.

the problem is with states, they are only 0 and 1 for both.i had to write another functionfor the states.

getButtonState(KEY, STATE) {

if(KEY = WheelDown OR KEY = WheelLeft) {

if(STATE = 0)
    return 0
else 
    return -1
}

}

archit9169 commented 5 years ago

Sorry my bad its working in some cases. Maybe the problem is else where.