Skip to content

enum SF::Mouse::Button #

Mouse buttons

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

Methods#

#button_count?#

View source

#left?#

View source

#middle?#

View source

#right?#

View source

#x_button1?#

View source

#x_button2?#

View source