I am trying to get mouse wheel up and down to change a variable while the gui cursor is active. I tried utilizing the following think hook, but it didn’t work for me.
[lua]hook.Add(“Think”, “MiddleMouse”, function()
if input.IsMouseDown(MOUSE_WHEEL_DOWN) then
print( “going down” )
elseif input.IsMouseDown(MOUSE_WHEEL_UP) then
print( “going up” )
Thanks for the help.