Skip to main content

Give your mouse some mass

Project description

===HeavyMouse===

A simple program to give your mouse momentum and mass

–install–

pip3 install heavymouse

–usage–

python3 -m heavymouse

–details–

heavymouse uses defopt for command line options, you can see the details by running

python3 -m heavymouse –help

usage: heavymouse.py [-h] [–drag DRAG] [–grav GRAV] [–bottom BOTTOM]

[–left LEFT] [–right RIGHT] [–top TOP] [–allsides ALLSIDES] [–maxspeed MAXSPEED] [–framerate FRAMERATE]

HeavyMouse - a python mouse mover

example, for bouncy walls, no gravity and less speed:

python heavymouse.py –drag .04 –grav 0 –allsides bounce –maxspeed 10

optional arguments:
-h, --help

show this help message and exit

--drag DRAG

amount of drag. 0.0 to 1.0, default is 0.02 (default: 0.02)

--grav GRAV

gravity, default is 1.5 (default: 1.5)

--bottom BOTTOM

can be ‘bounce’, ‘wrap’ or ‘stop’ - default is bounce (default: bounce)

--left LEFT

can be ‘bounce’, ‘wrap’ or ‘stop’ - default is bounce (default: bounce)

--right RIGHT

can be ‘bounce’, ‘wrap’ or ‘stop’ - default is bounce (default: bounce)

--top TOP

can be ‘bounce’, ‘wrap’ or ‘stop’ - default is bounce (default: bounce)

--allsides ALLSIDES

will override settings for each side - no default (default: None)

--maxspeed MAXSPEED

prevent the mouse moving (much) faster than this each frame - default is 40 (default: 40)

--framerate FRAMERATE

frequency the program operates at - default is 50 (default: 50)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

heavymouse-1.2.tar.gz (2.8 kB view details)

Uploaded Source

File details

Details for the file heavymouse-1.2.tar.gz.

File metadata

  • Download URL: heavymouse-1.2.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for heavymouse-1.2.tar.gz
Algorithm Hash digest
SHA256 cdc964656e62fa8b3f8790f7b953e15896ee38b3202204b2184ab8087eeae165
MD5 34f7bf00b52b1b5814b1d33f46e76b4a
BLAKE2b-256 9f04367f4b270c2960e9a30d1f4d17368fb5f0c436f1eb911f53f7d69b4f7faf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page