Class: Curses::MouseEvent

Inherits:
Object
  • Object
show all
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

Instance Method Details

#bstateObject

Returns the current mouse’s button state. Use this with the button state constants to determine which buttons were pressed.

#eidObject

Returns the current mouse id

#xObject

Returns the current mouse’s X coordinate

#yObject

Returns the current mouse’s Y coordinate

#zObject

Returns the current mouse’s Z coordinate