Skip to main content

Simulate multi-touch scrolling using uinput

Project description

touchscroller

Simulate smooth multi-touch scrolling on Linux with uinput.

Install

pip install touchscroller

Usage

Note that you must have the uinput kernel module loaded to use touchscroller. To load the module, run:

modprobe -i uinput

If you would like to have uinput to be loaded on every system boot, add uinput to /etc/modules.

Example:

from touchscroller import TouchScroller

ts = TouchScroller()

directions = [
    (3, 0), (2, 2), (0, 3), (-2, 2),
    (-3, 0), (-2, -2), (0, -3), (2, -2)
]

ts = TouchScroller()
with ts.touch() as touch:
    for dx, dy in directions:
        for _ in range(30):
            touch.move(dx, dy)

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

touchscroller-0.1.0.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

touchscroller-0.1.0-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file touchscroller-0.1.0.tar.gz.

File metadata

  • Download URL: touchscroller-0.1.0.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for touchscroller-0.1.0.tar.gz
Algorithm Hash digest
SHA256 10a5f4ead9e0d3703997809a3718e9917c8bcabde429480787989403559a256f
MD5 e1262916f82c9c28035c27146475361f
BLAKE2b-256 b818e65c99519f9ccbcc4eb54b8d1e64093400af42de3ade5aaf3d5feeb234bc

See more details on using hashes here.

File details

Details for the file touchscroller-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: touchscroller-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for touchscroller-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 729e2221073ec1bec88a90cf15ec2b5ef735c2a5ff9118f3befb628d2fbc699d
MD5 dfe55dd51d8f3b9b3e18ef3586b02ea5
BLAKE2b-256 1b5392db6b3e414362a2753b8b59781434f38f03d01295a45f282dcfaca2895b

See more details on using hashes here.

Supported by

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