enum SF::Mouse::Button

Overview

Mouse buttons

Defined in:

window/obj.cr

Enum Members

Left = 0

The left mouse button

Right = 1

The right mouse button

Middle = 2

The middle (wheel) mouse button

XButton1 = 3

The first extra mouse button

XButton2 = 4

The second extra mouse button

ButtonCount = 5

Keep last -- the total number of mouse buttons

Instance Method Summary

Instance Method Detail

def button_count? #

[View source]
def left? #

[View source]
def middle? #

[View source]
def right? #

[View source]
def x_button1? #

[View source]
def x_button2? #

[View source]