The mouse
module contains two tables containing values for all the keys you can press. The two tables are the following:
Values are accessed by their string key, i.e. mouse.button['left']
returns the value for the left mouse button.
Button string | Description |
---|---|
release | A button is released |
press | A button is pressed |
Button string | Description |
---|---|
left | Left button |
right | Right button |
middle | Middle button |
1 | Button 1 |
2 | Button 2 |
3 | Button 3 |
4 | Button 4 |
5 | Button 5 |
6 | Button 6 |
7 | Button 7 |
8 | Button 8 |