emufreak / iAmiga

iAmiga sources
44 stars 17 forks source link

Add auto fire option for virtual joypad #38

Open simontoens opened 8 years ago

simontoens commented 8 years ago

I would like to be able to easily enable and disable auto fire when using the virtual joypad. This should also work when connecting remote virtual joypads.

emufreak commented 8 years ago

That would be nice. Question is how to add this:

First: Should this be only for Button Mapped to Joypad input or just for some buttons or should this apply to all buttons. Second: How to do this in a user friendly manner

My first Idea is this:

For devices supporting force touch it would be a option to use this for auto fire. For devices not using force touch a twofinger tap or a swipe on the button could do the trick. I think the button should also be in another color when autofire is activated.

I like the force touch part but I'm not very happy with the not force touch part. Alternative would be a small button on the bottom left or right depending on where the joypadbuttons are active to turn it on or off completely.

simontoens commented 8 years ago

I think it is enough to only add it for the fire button, not for all buttons the joypad exposes.

To enable/disable, it could be a 2 finger swipe anywhere across the screen. There would have to be some visual indication that it auto-fire is currently enabled - for example a small red square could show up on the top left corner if auto-fire is enabled.

simontoens commented 8 years ago

Or to rephrase, if auto-fire can only be triggered for a single, pre-determined button on the virtual joypad, that would be enough for 99% of games.