Mame Keyboard Interface

peterbudduk

Newbie
Credits
18CR
[ukvac] Mame Keyboard Interface
Would there be any interest if I produced a joystick-keyboard interface
for use in Mame?

I, like many others I presume, play games on Mame using the circuit
board from a PC keyboard that has joysticks and switches connected
where the key contacts would normally be. Most of you will be aware
that this is not an ideal situation as most PC keyboards are scanned as
a matrix and three keys pressed simultaneously can produce spurious key
presses - especially where two players are playing at the same time.

I propose to use a simple MPU like a PIC with separately wired inputs
(probably about 30 of them) which can be simply wired to a standard
control panel.

I haven't really looked at cost but in the £30 range sounds about right
to me.

Whadyya all think?

Peter

------------------------------------------------------------------------
FREE ADVICE FROM REAL PEOPLE! XpertSite is the biggest directory
of Experts on the Web. Click http://clickhere.egroups.com/click/2031
for a REAL PERSON who will be happy to answer your questions!

-- Easily schedule meetings and events using the group calendar!
-- http://www.egroups.com/cal?listname=ukvac&m=1
 

John Bennett

Senior Member
vacBacker
Feedback
10 (100%)
Credits
5,316CR
[ukvac] Re: Mame Keyboard Interface

I would be interested.

------------------------------------------------------------------------
The only fruitcake at overstock.com is our manager.
Hes giving away a $20 coupon, plus our everyday Free Shipping.
Take advantage of the savings and selection now.
http://clickhere.egroups.com/click/2134

-- 20 megs of disk space in your group's Document Vault
-- http://www.egroups.com/docvault/ukvac/?m=1

DATA Imported from archives: originally posted by (lcollins@cpl.co.uk)
 

Macro

Active member
vacBacker
Feedback
4 (100%)
Credits
2,009CR
[ukvac] Re: Mame Keyboard Interface
Sounds smaller (and less wires) than the one I made. A Jamma -> PC
connector using 4066's (from Brian Lewis's web page)

It works quite well, but an MPU based one sounds like a lot less
soldering!

Two questions.

Would the MPU wire direct to the PC's keyboard socket ?

Would it also support a keyboard ?

But I may build another to put my old laptop in the cocktail table I
have (but as in the original Jamma PC bit, it must also allow me to
unplug the PC and plug in real boards as well!)

------------------------------------------------------------------------
Get 75% Off Our Best Selling Health and Wellness Books!
SelfCare.com has everything you need to take care of you and your family,
plus spend $40 or more and your shipping is free!
http://clickhere.egroups.com/click/1824

-- Talk to your group with your own voice!
-- http://www.egroups.com/VoiceChatPage?listName=ukvac&m=1
 
G

Guests

Guest
[ukvac] Re: Mame Keyboard Interface
>Would there be any interest if I produced a joystick-keyboard interface
>for use in Mame?

This is (was!) on my list of things to design, but as usual I don't think I will
ever find the time to do it.

When I was thinking about how I would design one, these are the features that I considered
neccesary

At least 25 switch inputs (more is better!)
Direct connection to keyboard socket on PC
A PS2 keyboard connector for looping through to an external keyboard
The switch inputs would have (socketed) buffer ICs to protect the uP

I'm sure that others in this list could think of any other features that would be
desireable.

Dave.

------------------------------------------------------------------------
Sign up for Brodia's free online shopping service, you can find
products, locate the lowest prices, and check out with a single
click. Enjoy special offers valued over $1,000.
http://clickhere.egroups.com/click/2195

-- Easily schedule meetings and events using the group calendar!
-- http://www.egroups.com/cal?listname=ukvac&m=1

DATA Imported from archives: originally posted by (daverob@cwcom.net)
 

peterbudduk

Newbie
Credits
18CR
[ukvac] Re: Mame Keyboard Interface
mike coates <mcoate-@bountysca.co.uk> wrote:

> Would the MPU wire direct to the PC's keyboard socket ?

Yes, that's the idea.

> Would it also support a keyboard ?

I suppose it could do but why would this be useful?

Peter

------------------------------------------------------------------------
The only fruitcake at overstock.com is our manager.
Hes giving away a $20 coupon, plus our everyday Free Shipping.
Take advantage of the savings and selection now.
http://clickhere.egroups.com/click/2134

-- Create a poll/survey for your group!
-- http://www.egroups.com/vote?listname=ukvac&m=1
 

John Bennett

Senior Member
vacBacker
Feedback
10 (100%)
Credits
5,316CR
[ukvac] Re: Mame Keyboard Interface
Sounds great
i also made up an adapter using instructions from brians page,
and it was a lot of soldering, with traces going everywhere. It
seems to work well, but an MPU based system would work well,
especially with support for another keyboard, but if it would still
require a keyboard decoder, then it is probably better to use
4066's. I was toying with the idea of running off some PCBs for
brians design. But thought that the demand would be low.

From: Mike Coates <mcoates@bountysca.co.uk>
To: "'ukvac@egroups.com'" <ukvac@egroups.com>
Date sent: Tue, 14 Dec 1999 10:57:26 -0000
Send reply to: ukvac@egroups.com
Subject: [ukvac] Re: Mame Keyboard Interface

> Sounds smaller (and less wires) than the one I made. A Jamma -> PC
> connector using 4066's (from Brian Lewis's web page)
>
> It works quite well, but an MPU based one sounds like a lot less
> soldering!
>
> Two questions.
>
> Would the MPU wire direct to the PC's keyboard socket ?
>
> Would it also support a keyboard ?
>
> But I may build another to put my old laptop in the cocktail table I
> have (but as in the original Jamma PC bit, it must also allow me to
> unplug the PC and plug in real boards as well!)
>
>
> ------------------------------------------------------------------------
> Get 75% Off Our Best Selling Health and Wellness Books!
> SelfCare.com has everything you need to take care of you and your family,
> plus spend $40 or more and your shipping is free!
> http://clickhere.egroups.com/click/1824
>
>
>
> -- Talk to your group with your own voice!
> -- http://www.egroups.com/VoiceChatPage?listName=ukvac&m=1
>
>

Gavin Yuill
Dept Of Mining and Mineral Engineering
Houldsworth School
University of Leeds
Leeds
LS2 9JT

Email: mingjy@leeds.ac.uk
Tel : 0113 233 2808

------------------------------------------------------------------------
GRAB THE GATOR! FREE SOFTWARE DOES ALL THE TYPING FOR YOU!
Gator fills in forms and remembers passwords with NO TYPING at over
100,000 web sites! Get $100 in coupons for trying Gator!
http://clickhere.egroups.com/click/2092

-- Easily schedule meetings and events using the group calendar!
-- http://www.egroups.com/cal?listname=ukvac&m=1

DATA Imported from archives: originally posted by Gav (mingjy@ECU-01.NOVELL.LEEDS.AC.UK)
 

John Bennett

Senior Member
vacBacker
Feedback
10 (100%)
Credits
5,316CR
[ukvac] Re: Mame Keyboard Interface

>> Would it also support a keyboard ?
>
>I suppose it could do but why would this be useful?
>
So that you don't have to kep unplugging keyboard microdin connectors
when the PC is in an odd place.

>Peter
>
>
>------------------------------------------------------------------------
>The only fruitcake at overstock.com is our manager.
>He&#8217;s giving away a $20 coupon, plus our everyday Free Shipping.
>Take advantage of the savings and selection now.
>http://clickhere.egroups.com/click/2134
>
>-- Create a poll/survey for your group!
>-- http://www.egroups.com/vote?listname=ukvacm=1
>

------------------------------------------------------------------------
The only fruitcake at overstock.com is our manager.
He&#8217;s giving away a $20 coupon, plus our everyday Free Shipping.
Take advantage of the savings and selection now.
http://clickhere.egroups.com/click/2134

eGroups.com Home: http://www.egroups.com/group/ukvac/
http://www.egroups.com - Simplifying group communications

DATA Imported from archives: originally posted by Duncan Bryan (duncan.bryan@arm.com)
 

Macro

Active member
vacBacker
Feedback
4 (100%)
Credits
2,009CR
[ukvac] Re: Mame Keyboard Interface
> I suppose it could do but why would this be useful?

Because sometimes you want to setup / alter things that cannot easily be
done via the limited number of controls on the cabinet.

e.g. on mine, I wired the fire buttons to right control, right alt
(thinking they were left) so I have to re-define the default settings
whenever I change Mame versions. it would be easier if I could use the
keyboard to select the control to alter, and then use the real fire
button to say 'use this key'

I keep meaning to build a double keyboard port (which will then allow
this) but haven't got around to it yet. (so it's not too important,
since I assume I can use the same double keyboard port for that too)

------------------------------------------------------------------------
FREE ADVICE FROM REAL PEOPLE! XpertSite is the biggest directory
of Experts on the Web. Click http://clickhere.egroups.com/click/2031
for a REAL PERSON who will be happy to answer your questions!

-- Check out your group's private Chat room
-- http://www.egroups.com/ChatPage?listName=ukvac&m=1
 

peterbudduk

Newbie
Credits
18CR
[ukvac] Re: Mame Keyboard Interface
mike coates <mcoate-@bountysca.co.uk> wrote:
original article:http://www.egroups.com/group/ukvac/?start=4040
> > I suppose it could do but why would this be useful?
>
> Because sometimes you want to setup / alter things that cannot easily
be
> done via the limited number of controls on the cabinet.

Ah ... I see. I was thinking of more of a permanant installation, say
in a cabinet. If you needed to change configuration or install more
images from a floppy, you would just unplug the adaptor and boot up for
that one time only with a real keyboard.

The dual keyboard approach is perfectly possible but a bit more tricky
as the MPU would not only have to emulate a keyboard but also play host
to the real keyboard hanging off the back and relay keypresses there to
the PC.

C'est la vie though. If this is popular then I suppose I will have to
cater for it ... anyone fancy a joint effort on this one once we have
features frozen?

Peter

Peter

------------------------------------------------------------------------
The only fruitcake at overstock.com is our manager.
Hes giving away a $20 coupon, plus our everyday Free Shipping.
Take advantage of the savings and selection now.
http://clickhere.egroups.com/click/2134

-- 20 megs of disk space in your group's Document Vault
-- http://www.egroups.com/docvault/ukvac/?m=1
 

Macro

Active member
vacBacker
Feedback
4 (100%)
Credits
2,009CR
[ukvac] Re: Mame Keyboard Interface
> anyone fancy a joint effort on this one once we have
> features frozen?

I know almost bugger all about MPU's, but, I do know a fair amount about
mame (and have had to learn strange CPU's before), I have a cabinet
already setup with a Mame PC, so I don't mind assisting a bit. (with a
little luck the eprom software should be done by the end of the month -
it's in test stage at the moment! - it programs PICS as well! - any
ideas on which is to be used, I can see if it's supported)

------------------------------------------------------------------------
GRAB THE GATOR! FREE SOFTWARE DOES ALL THE TYPING FOR YOU!
Gator fills in forms and remembers passwords with NO TYPING at over
100,000 web sites! Get $100 in coupons for trying Gator!
http://clickhere.egroups.com/click/2092

-- Talk to your group with your own voice!
-- http://www.egroups.com/VoiceChatPage?listName=ukvac&m=1
 

John Bennett

Senior Member
vacBacker
Feedback
10 (100%)
Credits
5,316CR
[ukvac] Re: Mame Keyboard Interface
I thought I noticed somewhere in the mame documents that it supports
playstation keypads plugged in though an interface on the parallel port.

Wouldn't it be better to wire the joystick/buttons etc through this interface?

Then the keyboard can still be plugged in.

Ivan

------------------------------------------------------------------------
The only fruitcake at overstock.com is our manager.
He&#8217;s giving away a $20 coupon, plus our everyday Free Shipping.
Take advantage of the savings and selection now.
http://clickhere.egroups.com/click/2134

-- Create a poll/survey for your group!
-- http://www.egroups.com/vote?listname=ukvac&m=1

DATA Imported from archives: originally posted by Ivan Mackintosh (ivan@rcp.co.uk)
 

peterbudduk

Newbie
Credits
18CR
[ukvac] Re: Mame Keyboard Interface
iva-@rcp.co.uk (ivan mackintosh) wrote:
original article:http://www.egroups.com/group/ukvac/?start=4044
> I thought I noticed somewhere in the mame documents that it supports
> playstation keypads plugged in though an interface on the parallel
port.
>
> Wouldn't it be better to wire the joystick/buttons etc through this
interface?

This route is *much* easier I agree but it is the total number of
possible inputs that is the problem and I do not know enough about
Mame's parallel inteface to know whether it can do the trick.

For a truly universal solution, I think we will require:

a 4 way joystick and 6 buttons for each player (20 inputs)
coin
start 1
start 2
escape
enter
tab
a key to type "OK"
plus a few others (such as reset game and pause).

This makes (I think) use of a joypad (or one that has been cut apart
and connected to a real control panel) a bit awkward but LMK if anyone
knows otherwise.

Peter

------------------------------------------------------------------------
GRAB THE GATOR! FREE SOFTWARE DOES ALL THE TYPING FOR YOU!
Gator fills in forms and remembers passwords with NO TYPING at over
100,000 web sites! Get $100 in coupons for trying Gator!
http://clickhere.egroups.com/click/2092

eGroups.com Home: http://www.egroups.com/group/ukvac/
http://www.egroups.com - Simplifying group communications
 

John Bennett

Senior Member
vacBacker
Feedback
10 (100%)
Credits
5,316CR
[ukvac] Re: Mame Keyboard Interface
http://mameworld.retrogames.com/emuadvice/main.html

Theres a keyboard hacks page at the above URL, is that what you are looking
for?

Mark

http://mameworld.retrogames.com
Your complete MAME support site

------------------------------------------------------------------------
Accurate impartial advice on everything from laptops to tablesaws.
http://clickhere.egroups.com/click/1701

-- Easily schedule meetings and events using the group calendar!
-- http://www.egroups.com/cal?listname=ukvac&m=1

DATA Imported from archives: originally posted by RocLobsta (mark@roclobsta.freeserve.co.uk)
 

John Bennett

Senior Member
vacBacker
Feedback
10 (100%)
Credits
5,316CR
[ukvac] Re: Mame Keyboard Interface
Have I missed something? Or is this a reply to an old post?

Chris

On Tue, 14 Dec 1999 10:52:20 +0000 lcollins@cpl.co.uk wrote:

>
>
>
> I would be interested.
>
>
>
> ------------------------------------------------------------------------
> The only fruitcake at overstock.com is our manager.
> He&#8217;s giving away a $20 coupon, plus our everyday Free Shipping.
> Take advantage of the savings and selection now.
> http://clickhere.egroups.com/click/2134
>
> -- 20 megs of disk space in your group's Document Vault
> -- http://www.egroups.com/docvault/ukvac/?m=1
>
>

------------------------------------------------
Chris Hakes
Help Desk Assistant
Anglia Polytechnic University
Rivermead Campus

------------------------------------------------------------------------
Get 75% Off Our Best Selling Health and Wellness Books!
SelfCare.com has everything you need to take care of you and your family,
plus spend $40 or more and your shipping is free!
http://clickhere.egroups.com/click/1824

-- 20 megs of disk space in your group's Document Vault
-- http://www.egroups.com/docvault/ukvac/?m=1

DATA Imported from archives: originally posted by Chris Hakes (c.j.hakes@anglia.ac.uk)
 

peterbudduk

Newbie
Credits
18CR
[ukvac] Re: Mame Keyboard Interface
"roclobsta" <mar-@roclobsta.freeserve.co.uk> wrote:
original article:http://www.egroups.com/group/ukvac/?start=4047
> http://mameworld.retrogames.com/emuadvice/main.html
>
> Theres a keyboard hacks page at the above URL, is that what you are
looking
> for?

That page mostly covered standard keyboard hacks. However, surfing on
from there, I found the following:

http://www.audonelectronics.swinternet.co.uk/index-page6.html

It is almost (although not quite - it scans a matrix) what we are after
and pretty cheap too.

Is the extra functionality for a bespoke aracde solution really worth
the effort?

Peter

------------------------------------------------------------------------
GRAB THE GATOR! FREE SOFTWARE DOES ALL THE TYPING FOR YOU!
Gator fills in forms and remembers passwords with NO TYPING at over
100,000 web sites! Get $100 in coupons for trying Gator!
http://clickhere.egroups.com/click/2092

-- Talk to your group with your own voice!
-- http://www.egroups.com/VoiceChatPage?listName=ukvac&m=1
 

robotronuk

Active member
Credits
60CR
[ukvac] Re: Mame Keyboard Interface
> This route is *much* easier I agree but it is the total number of
> possible inputs that is the problem and I do not know enough about
> Mame's parallel inteface to know whether it can do the trick.
>
> For a truly universal solution, I think we will require:

< S n i p !>

> a key to type "OK"

Not need!!! Do left then right and that simulates the pressing of OK,
its already in mame for arcade cab people!!!

And heres the wiring diagram for the psx -> parallel (copied from comments
in the Allegro source code)

*
* -----------------------
* | o o o | o o o | o o o | Controller Port (looking into plug)
* _____________________/
* 1 2 3 4 5 6 7 8 9
*
* Controller Parallel
*
* 1 - data 10 (conport 1, 3, 4, 5, 6), 13 (conport 2)
* 2 - command 2
* 3 - 9V(shock) +9V power supply terminal for Dual Shock
* 4 - gnd 18,19 also -9V and/or -5V power supply terminal
* 5 - V+ 5, 6, 7, 8, 9 through diodes, or +5V power
supply terminal
* 6 - att 3 (conport 1, 2), 5 (conport 3), 6 (conport 4),
7 (conport 5), 8 (conport 6)
* 7 - clock 4
* 9 - ack 12 (conport 1, 3, 4, 5, 6), 14 (conport 2) **
*
* ** There is an error in the DirectPad Pro documentation, which
states that
* the second control port should have pin 9 connected to pin 15 on
the
* parallel port. This should actually be pin 14 on the parallel
port. To
* make things more confusing, this error is unlikely to prevent the
* interface from working properly. It's also possible that a change
to the
* scanning code has been made in version 5.0 to prevent people from
having
* to rewire their interfaces.
*

------------------------------------------------------------------------
GRAB THE GATOR! FREE SOFTWARE DOES ALL THE TYPING FOR YOU!
Gator fills in forms and remembers passwords with NO TYPING at over
100,000 web sites! Get $100 in coupons for trying Gator!
http://clickhere.egroups.com/click/2092

-- Check out your group's private Chat room
-- http://www.egroups.com/ChatPage?listName=ukvac&m=1
 

John Bennett

Senior Member
vacBacker
Feedback
10 (100%)
Credits
5,316CR
[ukvac] Re: Mame Keyboard Interface
In article <8355vj$mtig@eGroups.com>, Peter Budd
<peter.budd@dial.pipex.com> writes
>Would there be any interest if I produced a joystick-keyboard interface
>for use in Mame?
>
>I, like many others I presume, play games on Mame using the circuit
>board from a PC keyboard that has joysticks and switches connected
>where the key contacts would normally be. Most of you will be aware
>that this is not an ideal situation as most PC keyboards are scanned as
>a matrix and three keys pressed simultaneously can produce spurious key
>presses - especially where two players are playing at the same time.
>
>I propose to use a simple MPU like a PIC with separately wired inputs
>(probably about 30 of them) which can be simply wired to a standard
>control panel.
>
>I haven't really looked at cost but in the 30 range sounds about right
>to me.
>
>Whadyya all think?

I designed a simple parallel port card called MAMEport that allowed a
matrix of 32 switches to be scanned regardless of how many were held
down simultaneously. Unfortunately I sent the prototype and a port
tester to a chap called Alex Judd in London, who reckoned he could write
the MAME interface....

End of story.

The problem with the hacked PC keyboards might be solvable by putting a
small signal diode (1N4147) in series with each switch.

--
Clive Mitchell

------------------------------------------------------------------------
GRAB THE GATOR! FREE SOFTWARE DOES ALL THE TYPING FOR YOU!
Gator fills in forms and remembers passwords with NO TYPING at over
100,000 web sites! Get $100 in coupons for trying Gator!
http://clickhere.egroups.com/click/2092

eGroups.com Home: http://www.egroups.com/group/ukvac/
http://www.egroups.com - Simplifying group communications

DATA Imported from archives: originally posted by Clive Mitchell (clive@emanator.demon.co.uk)
 

Macro

Active member
vacBacker
Feedback
4 (100%)
Credits
2,009CR
[ukvac] Re: Mame Keyboard Interface
> I designed a simple parallel port card called MAMEport

I was going to look into that as well, but can't remember where we got
to!

I seem to recall you send me a circuit diagram and a basic program (My
machine died taking lost of e-mail with it long long ago)

Any chance of a repeat copy, and I'll promise to look as soon as the
current thing I am playing with is finished.

------------------------------------------------------------------------
GRAB THE GATOR! FREE SOFTWARE DOES ALL THE TYPING FOR YOU!
Gator fills in forms and remembers passwords with NO TYPING at over
100,000 web sites! Get $100 in coupons for trying Gator!
http://clickhere.egroups.com/click/2092

-- Create a poll/survey for your group!
-- http://www.egroups.com/vote?listname=ukvac&m=1
 

robotronuk

Active member
Credits
60CR
[ukvac] Re: Mame Keyboard Interface
Well if you want the ultimate in control from your mame arcade pc
take a look at

http://www.videologic.com/ProductInfo/arcade.htm

they do an input / output board and they do a special
version of there video card that syncs to standard arcade
frequencys. Sadly though the page says
"Available to arcade developers and manufacturers only"

Cheers
Lee

------------------------------------------------------------------------
GRAB THE GATOR! FREE SOFTWARE DOES ALL THE TYPING FOR YOU!
Gator fills in forms and remembers passwords with NO TYPING at over
100,000 web sites! Get $100 in coupons for trying Gator!
http://clickhere.egroups.com/click/2092

-- 20 megs of disk space in your group's Document Vault
-- http://www.egroups.com/docvault/ukvac/?m=1
 

John Bennett

Senior Member
vacBacker
Feedback
10 (100%)
Credits
5,316CR
[ukvac] Re: Mame Keyboard Interface
In article <E156EAB42CD9D1119B5900A02437B4FD02EA1398@DELL2>, Mike Coates
<mcoates@bountysca.co.uk> writes
>> I designed a simple parallel port card called MAMEport
>
>I was going to look into that as well, but can't remember where we got
>to!
>
>I seem to recall you send me a circuit diagram and a basic program (My
>machine died taking lost of e-mail with it long long ago)
>
>Any chance of a repeat copy, and I'll promise to look as soon as the
>current thing I am playing with is finished.
>

I'm stuck on the Isle of Man at the moment, so dig me about it in the
new year.

--
Clive Mitchell

------------------------------------------------------------------------
Dont have the time or patience to search for unique
products & services? Then click to let us find them for you.
You Request, We Respond. http://clickhere.egroups.com/click/1957

-- Talk to your group with your own voice!
-- http://www.egroups.com/VoiceChatPage?listName=ukvac&m=1

DATA Imported from archives: originally posted by Clive Mitchell (clive@emanator.demon.co.uk)
 
Top