Class: Curses::MouseEvent
- Inherits:
-
Object
- Object
- Curses::MouseEvent
- Defined in:
- ext/curses/curses.c,
ext/curses/curses.c
Overview
Description
Curses::MouseEvent
Example
-
mouse.rb
:include: ../../sample/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