Class: Curses::MouseEvent
- Inherits:
-
Object
- Object
- Curses::MouseEvent
- Defined in:
- curses.c
Overview
Description
Curses::MouseEvent
Example
-
mouse.rb
:include: mouse.rb
Instance Method Summary collapse
-
#bstate ⇒ Object
Returns the current mouse's button state.
-
#eid ⇒ Object
Returns the current mouse id.
-
#x ⇒ Object
Returns the current mouse's X coordinate.
-
#y ⇒ Object
Returns the current mouse's Y coordinate.
-
#z ⇒ Object
Returns the current mouse's Z coordinate.
Instance Method Details
#bstate ⇒ Object
Returns the current mouse's button state. Use this with the button state constants to determine which buttons were pressed.
#eid ⇒ Object
Returns the current mouse id
#x ⇒ Object
Returns the current mouse's X coordinate
#y ⇒ Object
Returns the current mouse's Y coordinate
#z ⇒ Object
Returns the current mouse's Z coordinate