-
-
Notifications
You must be signed in to change notification settings - Fork 409
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Capacitive Touch Screen Emulation #123
Comments
I dont think so. You can only emulate an absolute mouse. |
Hi Nico, What is the thing which makes it not possible? Thanks |
Because I dont know how to have multiple inputs? Do you have any sample of a working HID device? |
Actually yes, and there are device descriptors which can be found in those links. I am working on a simple library to make it with pro micro. Still it doesnt function, when it functions I will put on github. With teensy: |
Here is my first trial code if you are interested, but windows says that "A request for the USB device descriptor failed." I couldnt try it with linux yet because now I only have my work pc. https://gist.github.com/mbt28/406bdf15a248029c774085832c7c0c0c |
Hi mbt28 , |
Hi Actually I wrote usb multi touch hid to Arduino. But my code is such a mess now, working properly. Nowadays I have heavy workload once I have free time I will put it to github. |
Hello mbt28
I also need to emulate HID mutitouch screen with raspberry pi Zero w to send the data to host via bluetooth |
@mbt28 If there is any progress, I want to know about it. |
Hi,
I am not maintaining this code anymore however the logic was simple. If you
used a valid descriptor (please check microsoft webpage) just report your
touch locations in parallel or serial. Serial worked me very well.
Regards
…On Thu, Aug 20, 2020, 07:30 Ueo ABC, Ai ***@***.***> wrote:
@mbt28 <https://github.com/mbt28>
I'm playing with your code. I confirmed windows can recognize this as a
touch device, but not sure how to check it's working correctly.
If there is any progress, I want to know about it.
What I want to do is emulating double touching to do pinch-in and
pinch-out with pushing button.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#123 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADM2W5UZ73BMHICNJ26RDUTSBSYGHANCNFSM4EBNKLXQ>
.
|
Hi, I added here the source that I used for creating valid descriptor. I used the serial reporting and you just reporting to OS and it somehow understand the multiple fingers. It worked for the Windows, Linux and Android. Hope somebody will have enough time and put a working code online. |
I am inlining the content here, in case the link will break in the future. Thanks for sharing!
|
@NicoHood : thanks for this great project allowing different options on HID functions. |
Hi @xcarcelle , Yes it was working with android but I dont really remember if I test it with an IOS device. But it was working with Linux, Windows, and Android 8 or 7 at that time. (I had still nexus 4 these days). Look at the code on touch.cpp, after the correct descriptor used you should have a different procedure for reporting not the absolute mouse. You should write it with getting help from Nico's code, he has actually everything. Use the move function everytime you have a touch event, thats just it. I can post it with the descriptor included too if you want.
|
Hi @mbt28 |
@xcarcelle Would you like to try my example code on whatever platform you're using? Touchy.ino emulates ten fingers to draw ten rectangles concurrently on your screen. On my Android device with touch position overlay enabled it looks like this: I'm looking forward to your answer. If time permits I'm going to create a pull request. Edit: I edited my gist to support a report id. This means HID().SendReport can be used according to its actual definition. I don't know if it behaves differently or more compatible though. Compact and easy to understand information about HID is pretty rare. |
@erictroebs : thanks for your message.
|
- Ref : NicoHood/HID#123 - Absolute digitizer working w/ Arduino Micro
@erictroebs : I made more tests with you ino touchscreen code with a Android tablet and it looks like the (0, 0) origin of your code is down/left corner and from there absolute move are able. Do you know why this position ? Can it be possible to have it in the upper/left corner ? Cheers. |
@xcarcelle screen touch cannot use in ios 14? right? below 14 is ok? have you tried it? |
Hi,
Is it possible to emulate multi touch capacitive touch screen with this library?
Thanks
The text was updated successfully, but these errors were encountered: