input

Interact with mouse and keyboard.

When passing a button to the mouse:

  • 1 - Left Mouse

  • 2 - Right Mouse

  • 3 - Middle Mouse

Functions:

Mouse Move

input.mouse_move(int: x, int: y)

Mouse Click

input.mouse_click(int: button)

Simulates a click.

Mouse Down

input.mouse_down(int: button)

Simulates holding a mouse button down.

Mouse Up

input.mouse_up(int: button)

Simulates lifting a mouse button.

Cursor Position

input.get_cursor_position()

Returns the x, y coordinates of the cursor.

Last updated