module Processing::Core::Input::Mouse

Direct including types

Defined in:

processing/core/input/mouse.cr

Instance Method Summary

Instance Method Detail

def mouse_button : MouseButton | Nil #

The mouse button that was pressed.


[View source]
def mouse_clicked #

Placeholder event handler method for when the mouse is clicked.


[View source]
def mouse_dragged #

Placeholder event handler method for when the mouse is clicked and dragged.


[View source]
def mouse_moved #

Placeholder event handler method for when the mouse is moved.


[View source]
def mouse_pressed #

Placeholder event handler method for when a mouse button is pressed.


[View source]
def mouse_released #

Placeholder event handler method for when a mouse button is released.


[View source]
def mouse_wheel(event) #

Placeholder event handler method for when a mouse wheel is rotated.


[View source]
def mouse_x : Int32 #

The current X coordinate of the mouse cursor


[View source]
def mouse_y : Int32 #

The current Y coordinate of the mouse cursor


[View source]
def pmouse_x : Int32 | Nil #

The X coordinate that a mouse button was pressed at.


[View source]
def pmouse_y : Int32 | Nil #

The Y coordinate that a mouse button was pressed at.


[View source]