function init() setmode(0) end function update() cls() locate(0,0) if mousebutton(1) then print("Has pulsat el boto esquerre") elseif mousebutton(2) then print("Has pulsat el boto del mig") elseif mousebutton(3) then print("Has pulsat el boto dret") else print("No has pulsat cap boto") end end