Comments (12)
It's a design simplification, as this should be an exceedingly rare occurrence in practice.
(Also, we also clobber slots on contact losses on some Kobo protocols later, anyway).
from koreader-base.
Fair enough. I am working with the remarkable and its happening regularly.
I will do by best to handle it further downstream.
Want me to close this?
from koreader-base.
Want me to close this?
Not necessarily, base's issue tracker isn't crowded, so leaving this open isn't really problematic.
As far as I'm concerned, this would be fairly low on the priority list, even if I actually had time to work on this (spoiler: I don't have any time ;p).
from koreader-base.
Could possibly be as simple as passing along the fd number from the C module to Lua-land and simply using fd + ABS_MT_SLOT
in GestureManager, as we don't actually care about the slots value per se (in fact, some Kobo devices don't even emit a slot 0).
from koreader-base.
Yeah I did think about something along those lines, but I am not entirely sure what goes on in KOReader wrt slots and ids once they go into gesture detector.
I am just getting some funny double free exceptions from somewhere and it seems to be related to touch and tool events mingling.
from koreader-base.
Might need to be slightly more complex, because of the initial state in https://github.com/koreader/koreader/blob/19a607b5484299623cc57563f7a4baa3f49faff5/frontend/device/input.lua#L220-L226 (among possibly other things).
If we had a guarantee that the first event device we open is the touch screen, we might be able to use the inputfds
index instead, but we don't.
from koreader-base.
It would probably not be too gnarly to deal with, I just have zero time to devote to this (or anything else, really :/) for the foreseeable future.
from koreader-base.
ok cool.
I will leave it be.
from koreader-base.
There might be a similar issue with cross-device ABS_MT_TRACKING_ID
values, too (although a collision there is possibly much rarer).
from koreader-base.
From my little bit of watching the event streams on this one device then yes, it looks rarer. One device always uses the same ABS_MT_TRACKING_ID
0, and the other just continuously increments it.
from koreader-base.
As far as passing along the fd info, it should only take some minor contortions to stuff it in the table ;).
from koreader-base.
that is probably the simplest unobtrusive fix
from koreader-base.
Related Issues (20)
- Dropbear URL broken HOT 2
- SDL: Disables screensaver HOT 8
- czmq: kindle build fails HOT 6
- Add SDL2 library HOT 3
- Is it doable/reasonable to add opencv? HOT 3
- add functions to save images to file. HOT 8
- Pocketbook: Make distinction between NTX and Allwinner boards HOT 12
- Android: remove versioning from soname HOT 12
- sdcv update broke mac CI HOT 12
- Are those two lines necessary? HOT 2
- SDL: do something with SDL_GL_GetDrawableSize
- button-listen doesn't seem to work on reMarkable 1 HOT 3
- Stressful PDF corpus
- blitbuffer paintRect and fill alpha values HOT 5
- koreader cannot build without network access (seeking feedback for PR) HOT 20
- lunasvg compile error with gcc-13.1.0 HOT 6
- Gentoo zlib mirror link no longer available HOT 8
- build fails for folder with spaces HOT 2
- curl fails to build with autoconf 2.72 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from koreader-base.