Reference

# Module `button`

awesome button API

Author:

Julien Danjou <julien@danjou.info>

Copyright© 2008-2009 Julien Danjou

## Functions

add_signal (name, func) | Add a signal.
emit_signal (name, ...) | Emit a signal.
remove_signal (name, func) | Remove a signal.

## Tables

button | Button object.

## Functions

add_signal (name, func)
  Add a signal.

  ### Parameters

  - name: A signal name.
  - func: A function to call when the signal is emitted.
emit_signal (name, ...)
  Emit a signal.

  ### Parameters

  - name: A signal name.
  - ...: Various arguments, optional.
remove_signal (name, func)
  Remove a signal.

  ### Parameters

  - name: A signal name.
  - func: A function to remove.

## Tables

button
  Button object. Fields
  - button: The mouse button number, or 0 for any button.
  - modifiers: The modifier key table that should be pressed while the button is pressed.