alias NCurses::Mouse

Alias Definition

LibNCurses::Mouse

Defined in:

ncurses.cr

Constant Summary

AllEvents = 268435455_u64

All mouse events (excl. position)

Use Mouse::Position | Mouse::AllEvents for both

Does not work well with #each

ALL_MOUSE_EVENTS

Alt = 134217728_u64

Alt was pressed at the same time

B1Clicked = 4_u64

BUTTON1_CLICKED

B1DoubleClicked = 8_u64

BUTTON1_DOUBLE_CLICKED

B1Pressed = 2_u64

BUTTON1_PRESSED

B1Released = 1_u64

B1: Left Button

BUTTON1_RELEASED

B1TripleClicked = 16_u64

BUTTON1_TRIPLE_CLICKED

B2Clicked = 128_u64

BUTTON2_CLICKED

B2DoubleClicked = 256_u64

BUTTON2_DOUBLE_CLICKED

B2Pressed = 64_u64

BUTTON2_PRESSED

B2Released = 32_u64

B2: Middle Button (scroll wheel)

BUTTON2_RELEASED

B2TripleClicked = 512_u64

BUTTON2_TRIPLE_CLICKED

B3Clicked = 4096_u64

BUTTON3_CLICKED

B3DoubleClicked = 8192_u64

BUTTON3_DOUBLE_CLICKED

B3Pressed = 2048_u64

BUTTON3_PRESSED

B3Released = 1024_u64

B3: Right button

BUTTON3_RELEASED

B3TripleClicked = 16384_u64

BUTTON3_TRIPLE_CLICKED

B4Clicked = 131072_u64

BUTTON4_CLICKED

B4DoubleClicked = 262144_u64

BUTTON4_DOUBLE_CLICKED

B4Pressed = 65536_u64

When scrolling up

BUTTON4_PRESSED

B4Released = 32768_u64

B4: Mouse Wheel Up

BUTTON4_RELEASED

B4TripleClicked = 524288_u64

BUTTON4_TRIPLE_CLICKED

B5Clicked = 4194304_u64

BUTTON5_CLICKED

B5DoubleClicked = 8388608_u64

BUTTON5_DOUBLE_CLICKED

B5Pressed = 2097152_u64

When scrolling down

BUTTON5_PRESSED

B5Released = 1048576_u64

B5: Mouse Wheel Down

BUTTON5_RELEASED

B5TripleClicked = 16777216_u64

BUTTON5_TRIPLE_CLICKED

Ctrl = 33554432_u64

Ctrl was pressed at the same time

BUTTON_CTRL

Position = 268435456_u64

Should mouse coordinates be reported

TODO Does this work?

REPORT_MOUSE_POSITION

Shift = 67108864_u64

Shift was pressed at the same time

BUTTON_SHIFT