ruffle-rs / ruffle

A Flash Player emulator written in Rust
https://ruffle.rs
Other
15.56k stars 807 forks source link

Mobile Mode - Change Mouse behavior Controls for some games. #11378

Open desertking opened 1 year ago

desertking commented 1 year ago

Hello,

I mentioned it on the discord before. For some games it would be wise to have an alternate mode for the behavior:

Example Cover Orange: This game could run well on mobile. That games like this in mobile first use the "aim" and execute the "mouse click" after the finger is released. I guess it should be possible with the "touchevents" that the first tap is not recognized as the click. It should work if the touchend is used as the mousedown. If it makes sense what I say and ruffle is build like that... Because right now in mobile mode those stuff is dropped instantly without the option that it can be placed it well before it got released.

So in mobile mode the alternate mode needs to be. First "move" something with the first touch then execute when finger is released. For Bubble Shooter I'm not sure if it makes 100% sense or if a delayed input would be smarter. As it is strange to release the finger all the time to shoot. But to aim correctly it's necessary to have some alternate mode for this games.

CreaZyp154 commented 1 year ago

So the idea would be to make it act like some sort of touchpad, right?

desertking commented 1 year ago

Dunno if a touchpad is necessary with that idea. It's basically an alternate mode for some games like cut the rope. Where you place objects before they should be released. Some stacking games also may work like that. And for games where you need to aim before an execution. Like some bubble shooter games. ( but they rather may need a delayed input)

So I rather see it as something you can put into the config settings in ruffle for certain games in mobile mode.

CreaZyp154 commented 1 year ago

Oh so it wouldn't send a mousedown event until you actually released the press right?

desertking commented 1 year ago

I want to give some more games as an example on mobile:

https://www.spiele-umsonst.de/azad/downloads/flashgames/doughnutsinspector.swf - First shoots than moves https://www.spiele-umsonst.de/azad/downloads/flashgames/CoverOrange.swf - Objects placed before movement https://www.spiele-umsonst.de/azad/downloads/flashgames/woobies.swf - first shoots then moves https://www.spiele-umsonst.de/azad/downloads/flashgames/bubblehithalloween.swf - first shoots then moves.

A lot of games in the categories bubble shooter, zuma games, "stacking games" follow the same principles. So those are just a few examples.