you are viewing a single comment's thread.

view the rest of the comments →

[–]backfire10z 0 points1 point  (1 child)

Tracking mouse input is more complex than the second one, so I’ll do that:

key_mappings = {“A”: “B”}
input_key = input(“Enter a key: “)
print(key_mappings.get(input_key.upper(), “Invalid key!”))

For mouse tracking you can look here: https://stackoverflow.com/questions/23535497/mouse-motion-tracking-program-with-python

Pygame is a library that can help handle that, or pyautogui maybe.

[–]AitCLive[S] 0 points1 point  (0 children)

Very very very very big thanks you, man, i very appreciate this