pointer-brakes
Pointer Brakes is a library for simulating mouse pointer motion. The pointer will behave like it is a little car with brakes. If you push it, it moves. If you let go, it keeps moving but slowly comes to a stop as it applies the brakes.
Table of Contents
Installation
pip install pointer-brakes
Usage
NOTE Windows users should prefer time.time_ns() as the resolution is very poor on time.monotonic_ns()
a_brakes = 1
sim_instance = PointerMotionSim(a_brakes)
sim_instance.tick(time.monotonic_ns(), (-52, -5))
sim_instance.tick(time.monotonic_ns(), (21, -92))
change_in_position = sim_instance.delta_position
For more information check out the documentation.
License
pointer-brakes is distributed under the terms of the MIT license.
Metadata
Release files for pointer-brakes 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pointer_brakes-0.2.1.tar.gz | 312.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pointer_brakes-0.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 319.1 kB
Release files / pointer_brakes-0.2.1.tar.gz
| Download URL | pointer_brakes-0.2.1.tar.gz |
|---|---|
| Size | 312.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
823ac83acb7dae405ad730739dd41a6489427543112e295fff689a4380987c16
|
|
BLAKE2b-256 checksum How to use checksums |
b78e8a3d5be43ec5bc43e61d4cd235a1b594532c6d3b3bd4ad88d63f93ffdb20
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.0.0 CPython/3.12.3
|
Release files / pointer_brakes-0.2.1-py3-none-any.whl
| Download URL | pointer_brakes-0.2.1-py3-none-any.whl |
|---|---|
| Size | 6.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e6d244844f55fc6efda1b31bb2044218f2f944ca145d18732ba266ba69d49aa8
|
|
BLAKE2b-256 checksum How to use checksums |
1d13f23df4a48cb8dc8842e6762d7926502f2ffb2a5da1f35c27a757de35483a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.0.0 CPython/3.12.3
|