1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9
addbind('mwheelup')
addhook("key","button_press")
function button_press(id,key,state)
if key == 'mwheelup' then
msg('success')
end
end
Scripts
addbind scroll?
addbind scroll?
1

addbind('mwheelup')
addhook("key","button_press")
function button_press(id,key,state)
if key == 'mwheelup' then
msg('success')
end
end
addbind("mwheelup")
function button_press(id,key,state)
if key == "mwheelup" and state == 0 then
msg("success")
end
end
Edik: And why is that? addbind("mwheelup")
addbind("mwheeldown")
addhook("key","button_press")
function button_press(id,key,state)
	msg(key.." "..state)
end
addbind has written
Mouse: "mouse1" (left click), "mouse2" (right click), "mouse3" (middle click), "mwheelup", "mwheeldown" (scrolling)
Quattro: It seems I didn't added it and documentation is incorrect.
SQ:
1
