Closed fimkov closed 6 days ago
If you need to find your touch device in an emulator, follow these steps:
Run the following command:
su -c getevent -dilp
Look for the touch device in the output. It might look something like "BlueStacks Virtual Touch". You will also see parameters like these:
ABS (0003): ABS_MT_POSITION_X : value 0, min 0, max 32767, fuzz 0, flat 0, resolution 0
ABS_MT_POSITION_Y : value 0, min 0, max 32767, fuzz 0, flat 0, resolution 0
Once you've found the correct device, use it to rewrite your touch handling code to make it compatible.
hello. i wan't try use it for bluestacks, but this code can't get touch there. i try rewrite current touch code, but but I couldn't catch him. help pls