Skip to content
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

Support single touch event files #15

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

konradweiss
Copy link

Some emulators do not have files supporting multitouch but single touch to emulate events. To support it the scoring was adapted to consider input files having that capability but still giving moultitouch the preference. Most important are two changes:

  1. State contains the event code attributes used to send the touch events depending on the property of the device.
  2. The function set_abs_configuration sets some information such as screen resolution and event code used for touches.

@sorccu
Copy link
Member

sorccu commented Mar 29, 2017 via email

@konradweiss
Copy link
Author

Yes, I send the right event depending on the capabilities of the device. I will do a test if I can leave that command out for single touch devices and will do a new commit.

@sorccu
Copy link
Member

sorccu commented Mar 29, 2017 via email

@konradweiss
Copy link
Author

I could define a is_multitouch in state and depending on that perform the touch with the ABS_MT_POSITION_... or ABS_... events, if that is the the way you prefer it and better structures the project for your future extension?

…nts into single and multi touch. This removes the dynamically set event codes for x and y coordinates
@konradweiss
Copy link
Author

Sorry, I was busy with a different project in the last month. I tried to interpret your suggestions in the correct manner and created different functions for single and multi touch events to remove the dynamically set event codes. I also removed syn_mt_report from the single_touch methods. As I don't know exactly which events are necessary, I did not dare to remove every event containing MT in the single touch methods. So if you want to remove more of them, tell me or just do it after pulling in case you accept the pull request.

Regards,
Konrad

@sorccu
Copy link
Member

sorccu commented May 8, 2017 via email

@gounthar
Copy link

Is there any chance this MR will be merged someday? Or has minitouch.c evolved too far to merge?
Thanks.

@sorccu
Copy link
Member

sorccu commented May 21, 2018

I want to try using a mouse with an OTG adapter first.

@gounthar
Copy link

Got it, thanks.

@gounthar
Copy link

Is there anything I can do on my side? I have the OTG adapter and the mouse.
Thanks.

@koral--
Copy link
Member

koral-- commented May 30, 2018

@gounthar you can try compiling minitouch with this PR applied and post your feedback here.

@gounthar
Copy link

gounthar commented Jun 12, 2018

For the time being, I have a problem with downloading libedev behind the corporate proxy. 👎
I will keep you posted.

@sorccu
Copy link
Member

sorccu commented Jun 12, 2018

You might be able to use https://github.com/whot/libevdev instead, if you just replace one line in .gitmodules.

@gounthar
Copy link

gounthar commented Jun 12, 2018

Thanks @sorccu . Before reading your comment, I had changed it to https://anongit.freedesktop.org/git/libevdev.git/ .
The first build is now finished.
I now have to find how to include my version on an STF Docker image...

@gounthar
Copy link

@sorccu is there a documentation somewhere on how you pushed it on npm? Thanks.

@sorccu
Copy link
Member

sorccu commented Jun 12, 2018

You'd have to use a different package name. Other than that, npm publish should do everything for you.

@gounthar
Copy link

Thanks a lot, I will give it a try.

@gounthar
Copy link

I recompiled, published, but this doesn't solve the mouse problem. ;-)

stf@stf-macmini:~$ adb shell /data/local/tmp/minitouch Note: device /dev/input/mice is not supported by libevdev Unable to find a suitable touch device

@qmfrederik
Copy link

I have a similar use case - in my scenario, and Android-x86 VM running on top of qemu/kubevirt, exposing a mouse and keyboard only.

I've rebased this branch on top off minitouch master and updated the submodule to the latest libevdev; but I get the same results as @gounthar .

I will probably working around this by getting qemu to provide a tablet/touchpad device, but thought I'd leave this here anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants