Comments (9)
I think that PointerEvent API might be of some use, though I have not tried it.
from anki-touchscreen.
@krassowski is a windows pen all you need? If it'd speed up the resolution of this problem, I'd be willing to buy one off ebay and have it shipped to you. Needless to say if you also need a surface, I wouldn't be able to help with that.
from anki-touchscreen.
Or if someone is willing to try, I could guide them with some hints about how to implement this stuff.
from anki-touchscreen.
Hello here,
I have the solution, this "bug" is due to the windows pen itself. In fact, it generates a lot more position data than a usual mouse and maybe other pen.
I put the code below I use now and it seem to work well with my windows pen. This way I can choose the "step" of drawing for mor fluency.
https://github.com/AnthonyCouthures/Touchscreen-Anki/blob/master/__init__.py
from anki-touchscreen.
I saw the repo owner does not have own a windows pen. I own one and am willing to help out with what i can. I'm not familiar with the libraries that are out there that support the pen with python. @Ketsujiji Could you give me some ideas about what you've looked at so far?
from anki-touchscreen.
No, I would need someone to rent the device or (much-preferred option) I would need someone to point me towards a way to set-up a virtual machine to test this issue. I did not find anything with a quick search, but I am not working with development for Windows and may miss keywords.
I know that Microsoft did such a thing back then when they introduced Edge - they released special VM images for developers to allow them to support their (back then) new browser.
from anki-touchscreen.
I have a pen and a Windows Machine to support it
from anki-touchscreen.
Would you be able to test if this simple substitute of API to PointerEvents works?
Simply replace contents of the __init__.py
file with the this. You can locate the file from Anki menu choosing Tools
-> Add-ons
-> select touchscreen addon -> View Files
button; please remember to restart Anki afterwards. Please let me know if it works for you.
from anki-touchscreen.
I lost my account for github for a while, I tested the add-on and it registers the pen. will use it for a while to see how well it works
from anki-touchscreen.
Related Issues (20)
- Please fix the problem HOT 1
- just a reminder HOT 2
- Text input! HOT 1
- Anki 2.0
- Doesn't work for Ipad HOT 1
- EFDRC is not defined
- Conflict between Night Mode and Touch screen HOT 1
- Windows blue screen "WHEA UNCORRECTABLE ERROR"
- When enabling touchscreen or disabling touchscreen, switches automatically to next learncard.
- Stack touchpad buttons vertically HOT 1
- Mouse click results in continuous drawing, even once mouse is released? HOT 3
- Make the addon works with the touchscreen HOT 2
- Some Issues With Touchscreen HOT 2
- Windows Compatibility HOT 1
- [Anki 23.10 beta 6] No module named 'PyQt5'
- Imports are not compatible with Anki 23.10.1
- i cannot write on the note type of enhanced image occlusion
- Canvas blocks button interaction HOT 4
- The lines aren't drawn under the cursor as intended. HOT 6
- Add color difference for visibility button HOT 9
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 anki-touchscreen.