Source code of mouse and keys


def draw():
screen.clear

def on_mouse_down(pos):
print(pos)

def on_key_down(key):
print(key)

Files

mouse_and_keys.py 104 bytes
May 20, 2023

Get Pygame Mouse Position

Leave a comment

Log in with itch.io to leave a comment.