09-19-2022, 12:59 PM | #1 |
Junior Member
Posts: 3
Karma: 10
Join Date: Sep 2022
Device: PW2
|
PW2 python mouse input (or shell)
Hey im tinkering on an dashboard/os python script. I tried the mouse lib for python and luckily mouse.get_position() works to get the coords of the last click but nothing else. Is there a way to get an touch event (mouse down) in python? (or shell). Currently i can detect clicks as long its not the exact same point and scrolling but i want to detect a touch hold too.
|
09-19-2022, 04:01 PM | #2 |
BLAM!
Posts: 13,497
Karma: 26047188
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
You'll *probably* have to write an input handler based on parsing the input stream from the evdev input device yourself. IIRC, there are libevdev Python bindings, at least. I might even ship 'em, for all I remember.
EDIT: Why, yes, I do. In the Python 3 distro ;p. |
Advert | |
|
09-20-2022, 02:56 AM | #3 |
Junior Member
Posts: 3
Karma: 10
Join Date: Sep 2022
Device: PW2
|
The man, the myth, thank you very much! I appreciate all the work you putted in to make my project (and all the others) possible.
|
Tags |
pw2, python, shell, touch event |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to use python/shell scripts to edit the metadata of selected book(s) in calibre? | patricorgi | Calibre | 8 | 12-20-2020 10:19 PM |
Quick util to wait for press (in shell or python) | krcrouse | Kindle Developer's Corner | 3 | 01-21-2014 02:02 AM |
Shell script to wait for user input from K3g keyboard | jmseight | Kindle Developer's Corner | 33 | 04-01-2012 05:32 PM |
custom column input - needs mouse click | cybmole | Library Management | 6 | 01-27-2011 12:24 PM |
GUI Frontend for python scripts [windows] - seeking mod input first | sherman | Workshop | 7 | 04-27-2009 02:04 AM |