Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 09-19-2022, 11:59 AM   #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, 03: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,477
Karma: 26012492
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, 01: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

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 09:19 PM
Quick util to wait for press (in shell or python) krcrouse Kindle Developer's Corner 3 01-21-2014 01:02 AM
Shell script to wait for user input from K3g keyboard jmseight Kindle Developer's Corner 33 04-01-2012 04:32 PM
custom column input - needs mouse click cybmole Library Management 6 01-27-2011 11:24 AM
GUI Frontend for python scripts [windows] - seeking mod input first sherman Workshop 7 04-27-2009 01:04 AM


All times are GMT -4. The time now is 06:50 AM.


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