Skip to content

🕹️ Joystick-like action and behaviour with a mouse !

License

Notifications You must be signed in to change notification settings

RohanGautam/JoystickMouse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JoystickMouse 🕹️

A script to emulate joystick-like cursor movement using a mouse/trackpad.

Requirements

  • pyautogui, pip install pyautogui
  • numpy, pip install numpy

By default, moving the mouse to any corner of the screen stops the script, owing to pyautogui's built in fail safe. You can set pyautogui.FAILSAFE to False to avoid this, but it is not recommended.

How it works

  • Cursor continues in the direction that the user moves it in.
  • Small movement in a direction = cursor continues moving slowly
  • Large movement in a direction = cursor continues moving fast
  • making a small movement in an opposing direction (while the cursor is moving) stops the movement.

About

🕹️ Joystick-like action and behaviour with a mouse !

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages