Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: MAME and Touchscreen Support - Megatouch Emulation **SOLVED**  (Read 425 times)

0 Members and 1 Guest are viewing this topic.

JdotFite

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 9
  • Last login:March 10, 2024, 03:06:41 pm
MAME and Touchscreen Support - Megatouch Emulation **SOLVED**
« on: February 22, 2024, 06:12:20 pm »
I am struggling to find concrete information on the topic of MAME and touchscreen support.  I have a touchscreen monitor and have been fiddling with the Megatouch XL 6000 rom but I can't get the touch to register correctly.

The best that I have come up with is to set the Lightgun Input Provider to win32.  The problem is that I think the first touch sets the coordinates and then I need to touch again in that area to register the touch.  I haven't been able to figure out a better method or work around to get the first touch to almost "double" click.



  • I tried setting the mouse input provider to win32 and dinput, but the calibration was always off.
  • I tried adjusting the monitor to match the games resolution of 640x480 thinking that might help with the positioning, but it did not.
  • I tried playing with the calibration tool in Megatouch, but that didn't work.
  • I tried creating an AHK script that would send a keyboard letter when the screen is touched (left mouse button is clicked), but the "virtual" key, while seen in windows and MAME UI, does not register in MAME itself.
  • I tried changing the keyboard input provider to see if it would allow the "virtual" key to show up in MAME, but none of the options made a difference.

I can't seem to dig up munch information on this topic and I am hoping someone here has gone down this path before and can provide some insight.
« Last Edit: February 23, 2024, 03:29:03 pm by JdotFite »

JdotFite

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 9
  • Last login:March 10, 2024, 03:06:41 pm
Re: MAME and Touchscreen Support - Megatouch Emulation
« Reply #1 on: February 23, 2024, 10:51:26 am »
I dug up an old thread from 16 years ago on here and it looks like there was possible success using an Elo screen and enabling "mouse emulation mode".  I believe this changes the touch behavior of the touchscreen in windows and actually moves the mouse around when you touch. I tried turning on the virtual touchpad in windows and I guess it would work similar'ish to this but be full screen and hidden.

https://forum.arcadecontrols.com/index.php/topic,76684.0/all.html

« Last Edit: February 23, 2024, 10:58:27 am by JdotFite »

JdotFite

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 9
  • Last login:March 10, 2024, 03:06:41 pm
Re: MAME and Touchscreen Support - Megatouch Emulation
« Reply #2 on: February 23, 2024, 03:26:20 pm »
It didn't look like HP had any software related to the touchscreen I am using (HP L6015tm) so tried installing Elo's control panel software to see if maybe I could turn on their ForceMouse mode.  Unfortunately, I couldn't apply any settings once inside the application. 

At this point, I understood that I essentially needed the touchscreen to act like a trackpad.  I wondered if a trackpad driver could somehow replace the generic mouse driver for the touchscreen. 

I eventually came across a few comments about software called Tablet Pro STUDIO which I believe is an evolution of software that was originally called touchmousepointer.  The links to touchmousepointer were all dead, but after some digging I was able to find what I believe was the final version "touchzoomdesktop2105".

I am happy to say that things are working!  :applaud:



In summary (in case someone stumbles upon this in another 16 years)

MAME:
Input Device Options:
  • Lightgun Device Assignment: Mouse
  • Lightgun Input Provider > win32

Advanced Options:
  • Mouse On
  • Lightgun On


Install TouchZoomDesktop Component (touchzoomdesktop2105)

Settings > Pinch > Mode > Touch to Mouse Mode

I haven't played around with the other settings in TouchZoomDesktop yet.  I am excited that I can move forward with a new bartop touchscreen build!
« Last Edit: February 23, 2024, 03:46:12 pm by JdotFite »