Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 09-19-2022, 12:59 PM   #1
Musacio
Junior Member
Musacio began at the beginning.
 
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.
Musacio is offline   Reply With Quote
Old 09-19-2022, 04:01 PM   #2
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
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.
NiLuJe is offline   Reply With Quote
Advert
Old 09-20-2022, 02:56 AM   #3
Musacio
Junior Member
Musacio began at the beginning.
 
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.
Musacio is offline   Reply With Quote
Reply

Tags
pw2, python, shell, touch event


Forum Jump

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


All times are GMT -4. The time now is 08:17 PM.


MobileRead.com is a privately owned, operated and funded community.