Oh! I confused "button" with "key", I'm sorry, my answer is pretty useless then.

On Thu, Aug 2, 2012 at 2:26 PM, Julien Danjou <[email protected]> wrote:
> On Thu, Aug 02 2012, Vincent Bernat wrote:
>
>> I would like to determine if a mouse button is pressed. It is possible
>> using events and tracking the button states myself but something
>> like mouse.coords would be more helpful. Is something like this already
>> available?
>
> mouse.coords() returns the button status too in the returned table:
> mouse.coords[1] is true or false according to the status of button 1,
> etc.
>
> --
> Julien Danjou
> ;; Free Software hacker & freelance
> ;; http://julien.danjou.info

-- 
To unsubscribe, send mail to [email protected].

Reply via email to