Class | Rubygame::MouseDownEvent |
In: |
lib/rubygame/event.rb
lib/rubygame/event.rb |
Parent: | Event |
Indicates that a mouse button was pressed.
This event has these attributes:
string: | string indicating the button that was pressed ("left","middle", or "right"). | ||||||
pos: | the position of the mouse cursor when the button was pressed, in the form [x,y]. | ||||||
button: | the mouse button that was pressed; one of these constants in module Rubygame (or the corresponding button number):
|
button | [RW] | |
button | [RW] | |
pos | [RW] | |
pos | [RW] | |
string | [RW] | |
string | [RW] |