MOUSE
Description
Enumerations used by:
It's also part of the Enums/BUTTON_CODE.
Catch mouse wheel
You can catch the mouse wheel's value by:
local testVal = 0
hook.Add("InputMouseApply", "testMouseWheel", function(cmd, x, y, ang)
testVal = testVal + cmd:GetMouseWheel() * 2 --any scale number you want to use
print(testVal)
end)
Values
MOUSE_FIRST | 107 | First mouse button |
MOUSE_LEFT | 107 | Left mouse button |
MOUSE_RIGHT | 108 | Right mouse button |
MOUSE_MIDDLE | 109 | Middle mouse button, aka the wheel press |
MOUSE_4 | 110 | Mouse 4 button ( Sometimes, mouse wheel tilt left ) |
MOUSE_5 | 111 | Mouse 5 button ( Sometimes, mouse wheel tilt right ) |
MOUSE_WHEEL_UP | 112 | Mouse wheel scroll up |
MOUSE_WHEEL_DOWN | 113 | Mouse wheel scroll down |
MOUSE_LAST | 113 | Last mouse button |
MOUSE_COUNT | 7 | Mouse button count |