Closed archit9169 closed 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 }
}
Sorry my bad its working in some cases. Maybe the problem is else where.
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) {
}