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
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
addbind("mwheelup") addbind("mwheeldown") addhook("key","button_press") function button_press(id,key,state) 	msg(key.." "..state) end