Git Product home page Git Product logo

Comments (9)

krassowski avatar krassowski commented on June 19, 2024 1

I think that PointerEvent API might be of some use, though I have not tried it.

from anki-touchscreen.

alaskakw avatar alaskakw commented on June 19, 2024 1

@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.

krassowski avatar krassowski commented on June 19, 2024 1

Or if someone is willing to try, I could guide them with some hints about how to implement this stuff.

from anki-touchscreen.

AnthonyCouthures avatar AnthonyCouthures commented on June 19, 2024 1

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.

fishnibble avatar fishnibble commented on June 19, 2024

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.

krassowski avatar krassowski commented on June 19, 2024

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.

fishnibble avatar fishnibble commented on June 19, 2024

I have a pen and a Windows Machine to support it

from anki-touchscreen.

krassowski avatar krassowski commented on June 19, 2024

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.

Ketsujiji avatar Ketsujiji commented on June 19, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.