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: NextWindow Touchscreens and MAME?  (Read 2385 times)

0 Members and 1 Guest are viewing this topic.

WindDrake

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 271
  • Last login:December 03, 2020, 09:49:05 pm
  • Electrical Engineer
NextWindow Touchscreens and MAME?
« on: May 24, 2013, 02:53:10 pm »
So, I've been messing around with an HP All-In-One, an IQ500, trying to get MAME to recognize the touchscreen as a valid device for input.

These things use an optical touchscreen interface made by NextWindow.

Using the config utilities, I've forced the device into USB HID Mouse mode and disabled it's multitouch functions.

MAME still doesn't see it as an input device. It completely ignores it.

The wired mouse works fine, however.

Anybody ever mess with something like this? Is MAME just not up to the task?

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:July 13, 2025, 11:38:27 am
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: NextWindow Touchscreens and MAME?
« Reply #1 on: May 24, 2013, 04:55:43 pm »
Do you have multi-mouse enabled?  Because if you do, mame's default mappings only apply to the first mouse on your system, not all of them.

Chris John Hunter

  • Guest
  • Trade Count: (0)
Re: NextWindow Touchscreens and MAME?
« Reply #2 on: May 29, 2013, 08:16:43 am »
I think it might be more of a 'get system to recognise the HID' - Surely if the system recognises it then its simply a matter of creating a controller profile for mame and then selecting that controller for your input?


With my cabs I use a different controller profile for each controller. I switch between them on the fly when I select a game. But then I am using my own FE.

I think mouse input is enabled by default for mame whereas other controllers are not. I had some trouble with a couple of mine but I got there in the end.

Goodluck

WindDrake

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 271
  • Last login:December 03, 2020, 09:49:05 pm
  • Electrical Engineer
Re: NextWindow Touchscreens and MAME?
« Reply #3 on: May 29, 2013, 02:13:05 pm »
Mouse and Multi-Mouse are enabled. Even then, I can't get MAME to see the touchscreen's inputs as valid.

Any other ideas? :(

Edit:

Messed with it more. Apparently the touchscreen is not a mouse. It's a GUN. It shows up as a Lightgun, and started working once I enabled it.

What's weird is that in Touchmaster it doesn't track tapping very well, despite touch to click working fine in the OS. I tend to have to double-tap to get it to register a touch. This may be the Touchscreen > Mouse translation's problem, though, not MAME's fault.

I also noticed that the "Lightgun" does not translate from the 16:9 panel to a 4:3 image on screen. I think this is the same problem the lightgun guys have. I think they have to actually run and calibrate the screen in 4:3 in order to get proper tracking. I'd really like to avoid that if at all possible.
« Last Edit: May 29, 2013, 02:32:52 pm by WindDrake »

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:July 13, 2025, 11:38:27 am
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: NextWindow Touchscreens and MAME?
« Reply #4 on: May 29, 2013, 07:33:50 pm »
That seems reasonable.... any non-relative mouse input would show up as a lightgun in mame. 

What resolution are you running the games at?  My suggestion would be to run the games in 16:9 but with a 4:3 ratio, that *should* do it, but honestly, you have to calibrate for every gun game in mame. 

WindDrake

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 271
  • Last login:December 03, 2020, 09:49:05 pm
  • Electrical Engineer
Re: NextWindow Touchscreens and MAME?
« Reply #5 on: May 30, 2013, 10:26:09 am »
Well, I've got it more or less working. I either have to calibrate the screen in 4:3 to play games in 4:3, or just run them in 16:9.

Still can't figure out this tapping thing, though. Windows always picks up a tap as a left click, but MAME has decided that tapping isn't generally good enough. It wants more of a tap-and-wiggle, which doesn't make any sense. Non-mame stuff doesn't do this.

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:July 13, 2025, 11:38:27 am
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: NextWindow Touchscreens and MAME?
« Reply #6 on: May 30, 2013, 04:37:28 pm »
It probably has to do with the fact that MAME is looking for a button press (they are mice buttons but still buttons) other more generic programs are looking for a mouse click, which is a different animal. 

In other words the wiggle probably isn't needed, but holding it down a while might be.  Also it entirely depends upon how the hardware is sending button presses. 

You might want to contact some of the mame devs as it could be something that could be fixed in a future update.