class Curses::MouseEvent

Description

Curses::MouseEvent

Example

Public Instance Methods

bstate() click to toggle source

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

static VALUE curs_mouse_bstate(VALUE mouse)
{
    struct mousedata *mdata;
    GetMOUSE(mouse, mdata);
    return ULONG2NUM(mdata->mevent->bstate);
}