Jump to content




mouse event not working


  • You cannot reply to this topic
4 replies to this topic

#1 Kouksi44

  • Members
  • 89 posts
  • LocationMunich, Germany

Posted 12 August 2014 - 03: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:
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

#2 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 12 August 2014 - 03:41 PM

Are you using an advanced computer?

#3 Kouksi44

  • Members
  • 89 posts
  • LocationMunich, Germany

Posted 12 August 2014 - 03:42 PM

No I don´t. I am using a normal Computer.

#4 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 12 August 2014 - 03:44 PM

Normal computers do not support mouse interaction. You will need to use an advanced computer.

#5 Kouksi44

  • Members
  • 89 posts
  • LocationMunich, Germany

Posted 12 August 2014 - 03:58 PM

oh okay :) thank you !





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users