Module mouse

Module mouse 

Source

Enums§

Button
An enum representing a mouse button
DeltaMode
MouseEvent
An event related to the mouse

Functions§

are_mouse_events_recorded
Return true if your program already called start_recording_mouse_events() in the past.
get_mouse_position
Return the current position of the mouse. Make sure you called start_recording_mouse_events() before.
is_mouse_in_canvas
Return false if the mouse is outsite the tab. Make sure you called start_recording_mouse_events() before.
is_pressed
Return true if the button of the mouse is currently pressed. Make sure you called start_recording_mouse_events() before.
start_recording_mouse_events
Start recording mouse events in real time. This cannot be stopped! It allows you to use these functions. You may want to use are_mouse_events_recorded() to check if your program already called this function in the past.