ruffle-android icon indicating copy to clipboard operation
ruffle-android copied to clipboard

Touch not working

Open BomberDuck opened this issue 1 year ago • 7 comments

I'm using a Retroid Pocket 2+ and touch controls don't work ingame. After I exit a game, it also disables touch in the menus until I restart the app. I've tried newer versions and those fix the menu not working after exiting a game, but touch controls still don't work ingame. I'm using android 9.

BomberDuck avatar Apr 23 '24 12:04 BomberDuck

https://github.com/ruffle-rs/ruffle-android/releases/tag/20240408 Give this version a try. If it still doesn't work, it's best to provide the game's SWF file

hhh-hu avatar Apr 30 '24 03:04 hhh-hu

https://github.com/ruffle-rs/ruffle-android/releases/tag/20240408 Give this version a try. If it still doesn't work, it's best to provide the game's SWF file

Where should I send you a swf? I have a game that exhibits this same issue, for both current release and the alternate one you provided in your original reply.

lazybonesitis avatar May 06 '24 03:05 lazybonesitis

https://github.com/ruffle-rs/ruffle-android/releases/tag/20240408 Give this version a try. If it still doesn't work, it's best to provide the game's SWF file

Where should I send you a swf? I have a game that exhibits this same issue, for both current release and the alternate one you provided in your original reply.

Please use the "Link" or "Attach Files" button on this reply function to provide a file.

hhh-hu avatar May 06 '24 05:05 hhh-hu

https://github.com/ruffle-rs/ruffle-android/releases/tag/20240408 Give this version a try. If it still doesn't work, it's best to provide the game's SWF file

Where should I send you a swf? I have a game that exhibits this same issue, for both current release and the alternate one you provided in your original reply.

Please use the "Link" or "Attach Files" button on this reply function to provide a file.

When I try to Github won't lead me upload a swf file. I get the following: screenshot

Here is a .zip with the swf, but a bit of warning, the following game is definitely an 18+ game, but you won't be able to even see anything NSFW as touch isn't working haha. If this goes against TOS let me know and I will delete it, but regardless of the nature of the game, I hope it will provide valuable feedback into why touch is not working.

swf.zip

lazybonesitis avatar May 06 '24 06:05 lazybonesitis

İ can confirm.The touch screen doesn't work with this game in the latest nighty version of ruffle.

Adnan1091 avatar May 16 '24 14:05 Adnan1091

I found that this is related to the parsing error of "AVM2" in the "Ruffle" main project, but I am not very good at this AVM2 module. Sorry, this may need to be fixed in the main project in the future. T.T

hhh-hu avatar May 16 '24 15:05 hhh-hu

I think the bug related to default_motion_filter in https://github.com/rust-mobile/android-activity

https://github.com/rust-mobile/android-activity/blob/0d299300f4120821ae1fcaaf0276129c512c2c96/android-activity/game-activity-csrc/game-activity/native_app_glue/android_native_app_glue.c#L265-L268

Touchscreens on some devices might not be recognized as SOURCE_TOUCHSCREEN. In my app of Ruffle on Android, I remove default_motion_filter and it works on Retroid Pocket 2+: https://play.google.com/store/apps/details?id=games.flashlite

zhenghaozzz avatar Jul 02 '24 04:07 zhenghaozzz