enenH / AndroidImgui

53 stars 21 forks source link

how get touch on bluestacks? #10

Closed fimkov closed 6 days ago

fimkov commented 1 month ago

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

fimkov commented 6 days ago

If you need to find your touch device in an emulator, follow these steps:

  1. Run the following command:

    su -c getevent -dilp
  2. 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
  3. Once you've found the correct device, use it to rewrite your touch handling code to make it compatible.