Posted 12 August 2014 - 04:31 PM
Hi,
my Problem seems to be , that I am unnable to get the example code from the wiki about the "mouse_click" event working…
This is the code:
Every time I c&p this code and execute the code the computer shows nothing on screen as if it was listening for the event, but even if I click several times nothing shows up :(/>
I really don´t get what I am doing wrong ?
Thank you in advance
Kouksi44
my Problem seems to be , that I am unnable to get the example code from the wiki about the "mouse_click" event working…
This is the code:
while true do
local event, button, xPos, yPos = os.pullEvent("mouse_click")
print("Mouse button clicked: ", button, " => Click Position X: ", xPos, " => Click Position Y: ", yPos)
end
Every time I c&p this code and execute the code the computer shows nothing on screen as if it was listening for the event, but even if I click several times nothing shows up :(/>
I really don´t get what I am doing wrong ?
Thank you in advance
Kouksi44