seleuco / MAME4droid-2024

MAME4droid 2024 is developed by David Valdeita (Seleuco) as a port of the latest MAME emulator by MAMEDev and contributors. It emulates arcade games and systems like ZX Spectrum, Amstrad CPC, MSX etc. This version of MAME support over 40000 different ROMs.
GNU General Public License v2.0
89 stars 14 forks source link

Touches are not passed through to artwork ('.lay') system buttons #1

Closed johnparker007 closed 6 months ago

johnparker007 commented 8 months ago

Thanks for an interesting project @seleuco :)

The revised OSD doesn't seem to pass the 'button' pressed though in the same way as when using on the desktop build. These layouts are most commonly used for 'slot machines'.

Steps to reproduce:

  1. Load j6indy romset
  2. Allow some time for initial set up (you will hear alarm, and machine will reset, then boot)
  3. After ~30 seconds, the machine should go into attract mode (so the layout lamps flash to try to draw players in)
  4. Tapping on the on-screen '£1' button should insert coins, and then when coins have been inserted, tapping on the flashing 'START' button should spin the reels; on desktop this works, on mame4droid, the touches are not passed through to be processed by the artwork system.

Here is a screenshot of j6indy with those two buttons labelled in magenta: image

seleuco commented 8 months ago

Wow... That's amazing. I know that artworks are powerful but I didn't test that. I will take a look when I have some time.

El vie, 22 dic 2023, 13:20, John Parker @.***> escribió:

Thanks for an interesting project @seleuco https://github.com/seleuco :)

The revised OSD doesn't seem to pass the 'button' pressed though in the same way as when using on the desktop build. These layouts are most commonly used for 'slot machines'.

Steps to reproduce:

  1. Load j6indy romset
  2. Allow some time for initial set up (you will hear alarm, and machine will reset, then boot)
  3. After ~30 seconds, the machine should go into attract mode (so the layout lamps flash to try to draw players in)
  4. Tapping on the on-screen '£1' button should insert coins, and then when coins have been inserted, tapping on the flashing 'START' button should spin the reels; on desktop this works, on mame4droid, the touches are not passed through to be processed by the artwork system.

Here is a screenshot of j6indy with those two buttons labelled in magenta: image.png (view on web) https://github.com/seleuco/MAME4droid-2024/assets/17624161/5a42d359-8d78-4098-aba9-661208d4fe97

— Reply to this email directly, view it on GitHub https://github.com/seleuco/MAME4droid-2024/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABQGONA3DVQGJGGULFXYVN3YKV3IHAVCNFSM6AAAAABA7YGERGVHI2DSMVQWIX3LMV43ASLTON2WKOZSGA2TGOBUGYZTENY . You are receiving this because you were mentioned.Message ID: @.***>

johnparker007 commented 8 months ago

Awesome, thanks man, it would be cool to play some fruit machines on the go :)

The 'internal' text-only layouts can also be overridden with external .lay file and .png files in the /artwork folder to provide much richer graphical layouts. Here's an example of an old one of those from a previous project, they can look pretty good!

https://www.youtube.com/watch?v=V3cYTDEBue8

seleuco commented 6 months ago

Sorry. I forgot to answer you. I tried the issue you mentioned and at the time implemented an option in Mame4droid settings, input, mouse, always gaming touch mode (you have to enable) that makes the virtual mouse always enabled. In that way I tested the rom that you told me and I was able to interact with the layout. Enjoy fruit machines on the go without spend money. 🤣

johnparker007 commented 6 months ago

Sorry. I forgot to answer you. I tried the issue you mentioned and at the time implemented an option in Mame4droid settings, input, mouse, always gaming touch mode (you have to enable) that makes the virtual mouse always enabled. In that way I tested the rom that you told me and I was able to interact with the layout. Enjoy fruit machines on the go without spend money. 🤣

Ah ok, thanks for implementing the force mouse control mode :)

I see what you have done - what I was actually referring to was a feature to actually pass the touches through. I'm a bit under the weather at the mo, I could perhaps put together a pull request at some point.

So by tapping your finger on the screen of the phone, it would remap that to the MAME internal layout position and send that tap to be processed by the layout system. It would also need to support multitouch as for instance on a lot of games, you have to keep one button held down, while you tap a different one. Sorry I should have been more clear :) It's still a cool feature you have added though, good work!

If I do ever get time to write this implementation for your repo, I'll do a pull request so you can review/merge it - however, I have a bunch of other projects I need to get back to, that do seem to take up all my free time unfortunately - there's never enough time :)