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: Controlling MAME via VNC?  (Read 2723 times)

0 Members and 1 Guest are viewing this topic.

8BitMonk

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 989
  • Last login:March 15, 2025, 10:47:05 pm
Controlling MAME via VNC?
« on: October 05, 2013, 02:20:52 pm »
Does anyone have a workable solution for controlling MAME over VNC?

Once I launch MAME over VNC no controls work for me. Other emulators work fine. I've tried a couple VNC clients, launching MAME in and out of FE's, not changing resolution, with and without multiple keyboards etc. to no avail. I've tried Logmein and uVNC and MAME .144 and .150.

A quick forum search shows the latest posts on the topic are from '09. I couldn't find anything conclusive online, some vague info about MAME using raw inputs and the ability to control via VNC maybe going away around version 117-118?

Not something I'd use a lot, just some minor remote testing but I'm curious if it's doable.
Games: Asteroids Deluxe | Atomiswave | Centipede | Championship Sprint | Defender | Donkey Kong | Dig Dug | Frogger | Ikari Warriors | Missile Command | Pac-Man | Pole Position | Robotron | Spy Hunter | Tempest | Super Mario Strikers

dgame

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 620
  • Last login:June 01, 2025, 11:09:55 pm
  • I am no Jedi
Re: Controlling MAME via VNC?
« Reply #1 on: October 05, 2013, 03:49:09 pm »
You have to compile your own MAME:

You cannot inject keys into MAME because it uses Raw Input to read the keyboard.

You can compile Mame to use the DirectInput API by modifying src\osd\windows\input.c following line:

Code: [Select]
// For testing purposes: force DirectInput
#define FORCE_DIRECTINPUT       1

Then you should be able to send keys again. This "hack" may not work anymore though.

severdhed

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2975
  • Last login:December 14, 2024, 05:01:52 pm
  • RIP Dinosaur Hippo
Re: Controlling MAME via VNC?
« Reply #2 on: October 07, 2013, 09:35:19 pm »
I can't help but think that it would be unplayably slow....vnc isn't exactly fast.

Sent from my SCH-I545 using Tapatalk 2

Current Projects:      Zak-Man | TMNT Pedestal | SNES Pi | N64 Odroid
Former Projects:     4 Player Showcase | Donkey Kong | iCade

dgame

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 620
  • Last login:June 01, 2025, 11:09:55 pm
  • I am no Jedi
Re: Controlling MAME via VNC?
« Reply #3 on: October 08, 2013, 01:25:13 am »
Yeah, VNC is not good for playing but great for administration. Can peek in on the cabinet to see what is being played. Can drop credits, service menu, shutdown, reboot, etc. Also works when you select a resolution that the monitor can't display properly. And since most VNC servers have a web client interface you can access the cabinet from any web browser on your network.

8BitMonk

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 989
  • Last login:March 15, 2025, 10:47:05 pm
Re: Controlling MAME via VNC?
« Reply #4 on: October 08, 2013, 09:41:51 am »
For me it's primarily for troubleshooting but the speed and display with Logmein as the VNC client wasn't as bad as I thought it would be just watching the games attract mode. I compiled a version of mame150 with direct input forced so I'm going to test actually playing a game remotely tonight and see if it works. Thanks to dgame for the suggestion.
Games: Asteroids Deluxe | Atomiswave | Centipede | Championship Sprint | Defender | Donkey Kong | Dig Dug | Frogger | Ikari Warriors | Missile Command | Pac-Man | Pole Position | Robotron | Spy Hunter | Tempest | Super Mario Strikers

8BitMonk

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 989
  • Last login:March 15, 2025, 10:47:05 pm
Re: Controlling MAME via VNC?
« Reply #5 on: October 08, 2013, 03:46:51 pm »
The compiled version forcing direct input works great, the speed is plenty good for testing. I only tested Frogger, almost no lag when I played from another machine on a local network. Just tried from a more remote location and while there's definitely some lag it's playable.
Games: Asteroids Deluxe | Atomiswave | Centipede | Championship Sprint | Defender | Donkey Kong | Dig Dug | Frogger | Ikari Warriors | Missile Command | Pac-Man | Pole Position | Robotron | Spy Hunter | Tempest | Super Mario Strikers