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: Help with Keyboard Hack  (Read 3067 times)

0 Members and 1 Guest are viewing this topic.

onesimo

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 16
  • Last login:June 25, 2005, 12:06:05 pm
  • I want to build my own arcade controls!
Help with Keyboard Hack
« on: June 08, 2005, 11:11:15 am »
i am building an arcade controller with two players 8 buttons each (like the x-arcade) but there are no encoders available here. so i hacked my new keyboard and mapped the matrix. its an 18x8 matrix. but the problem is i dont know which keys to be used.

Tiger-Heli

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5447
  • Last login:January 03, 2018, 02:19:23 pm
  • Ron Howard? . . . er, I mean . . . Run, Coward!!!
    • Tiger-Heli
Re: Help with Keyboard Hack
« Reply #1 on: June 08, 2005, 12:10:08 pm »
First off, where is "here" that there are no encoders available.

Second, there is no way that I know of to reliably get two players 8 buttons each from a keyboard hack.

The best I would reasonably hope for was two players six buttons each from a 16x8 matrix, (or maybe 7 buttons each from a 18x8 matrix.

Third, you don't have an 18x8 matrix, rows 9, 10 and 19 are empty, so you have a 15x8 matrix.
That leaves you with only enough for Player 1 and 6 buttons and Player 2 and 5 buttons and admin buttons.

Fourth, I don't know if the above statement is correct, as I only count 59 instead of the 104-keys.  The arrow keys are missing, as are the function keys, and a lot of others.  If any of these are on the empty rows, that greatly increases what you can do.

Fifth, even though you have mapped out the matrix, you still may have firmware that prevents more than 8 keys from being depressed at the same time.  I can recommend keys and you can test it.

Let me know if you want me to recommend keys based on what you have (2-Player, 6 and 5 buttons) or if you want to test and post a new matrix, or if you want to figure it out for yourself at http://www.mameworld.net/emuadvice/keyhack2.html
It's not what you take when you leave this world behind you, it's what you leave behind you when you go. - R. Travis.
When all is said and done, generally much more is SAID than DONE.

brained

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 477
  • Last login:June 28, 2025, 07:27:14 pm
  • Raised by Atari
    • Nux
Re: Help with Keyboard Hack
« Reply #2 on: June 08, 2005, 12:21:44 pm »
You need to complete the matrix, you got tired mapping the buttons????

Where are you located?, I think ultimarc ships worldwide.

Or if you are a cheapstake like me get you self the LPT Switch, you just need to hack a printer cable, a couple of diodes and connection bars  ;D. You can get 60 inputs with this thingy

Tiger-Heli

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5447
  • Last login:January 03, 2018, 02:19:23 pm
  • Ron Howard? . . . er, I mean . . . Run, Coward!!!
    • Tiger-Heli
Re: Help with Keyboard Hack
« Reply #3 on: June 08, 2005, 12:28:16 pm »
Or if you are a cheapstake like me get you self the LPT Switch, you just need to hack a printer cable, a couple of diodes and connection bars  ;D. You can get 60 inputs with this thingy
Linky
It's not what you take when you leave this world behind you, it's what you leave behind you when you go. - R. Travis.
When all is said and done, generally much more is SAID than DONE.

Gootfu

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 41
  • Last login:September 09, 2005, 02:56:50 pm
  • no what I'm s-s-sayin'?
Re: Help with Keyboard Hack
« Reply #4 on: June 08, 2005, 03:48:00 pm »
Keyboard hack will work with 2 player, 4 buttons each...
any more and you will have problems.

Encoder is the best in my opinion.

I like using Jpac from ultimarc in my Jamma machines.
Over my window they'd written my name,
Saying so long and see you again.

Tiger-Heli

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5447
  • Last login:January 03, 2018, 02:19:23 pm
  • Ron Howard? . . . er, I mean . . . Run, Coward!!!
    • Tiger-Heli
Re: Help with Keyboard Hack
« Reply #5 on: June 08, 2005, 03:52:07 pm »
Keyboard hack will work with 2 player, 4 buttons each...
any more and you will have problems.
No - see my page, you can get 2-players, 6 buttons each out of one.
Quote
Encoder is the best in my opinion.
Agreed.
It's not what you take when you leave this world behind you, it's what you leave behind you when you go. - R. Travis.
When all is said and done, generally much more is SAID than DONE.

Gootfu

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 41
  • Last login:September 09, 2005, 02:56:50 pm
  • no what I'm s-s-sayin'?
Re: Help with Keyboard Hack
« Reply #6 on: June 08, 2005, 03:53:49 pm »
Keyboard hack will work with 2 player, 4 buttons each...
any more and you will have problems.
No - see my page, you can get 2-players, 6 buttons each out of one.
Quote
Encoder is the best in my opinion.
Agreed.
Sorry, my mistake. I forgot to include coins and start buttons.
Over my window they'd written my name,
Saying so long and see you again.

Tiger-Heli

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5447
  • Last login:January 03, 2018, 02:19:23 pm
  • Ron Howard? . . . er, I mean . . . Run, Coward!!!
    • Tiger-Heli
Re: Help with Keyboard Hack
« Reply #7 on: June 08, 2005, 03:57:58 pm »
Sorry, my mistake. I forgot to include coins and start buttons.
No, your coins and start buttons may cause problems (ghosting - lost inputs) but you can get a SF layout for the action buttons with no problem.
« Last Edit: June 08, 2005, 04:12:50 pm by Tiger-Heli »
It's not what you take when you leave this world behind you, it's what you leave behind you when you go. - R. Travis.
When all is said and done, generally much more is SAID than DONE.

Thenasty

  • Trade Count: (+17)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4419
  • Last login:Today at 12:13:19 am
    • Thenasty's Arcademania Horizontal/Vertical monitor setup.
Re: Help with Keyboard Hack
« Reply #8 on: June 08, 2005, 04:11:43 pm »
That looks like an ACER keyboard encoder. I have hack those in the past. Easy to hack compare to the others ones I did, however that descricption you mentioned about 2 player having 8 buttons each, he! forget it, your wasting your time. Get yourself a real encoder and you will save plenty of time and money. Save that HACK job for your next JUKEBOX project, thats whats its good for.
Thenasty's Arcademania Horizontal/Vertical setup.
http://forum.arcadecontrols.com/index.php?topic=26696.0

Free VGA Breakout Cable
http://forum.arcadecontrols.com/index.php?topic=38228.0

Ultimate All in One Coin Mech write up (Make your own)
http://forum.arcadecontrols.com/index.php?topic=19200.0

Gootfu

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 41
  • Last login:September 09, 2005, 02:56:50 pm
  • no what I'm s-s-sayin'?
Re: Help with Keyboard Hack
« Reply #9 on: June 08, 2005, 04:20:59 pm »
Sorry, my mistake. I forgot to include coins and start buttons.
No, your coins and start buttons may cause problems (ghosting - lost inputs) but you can get a SF layout for the action buttons with no problem.
Not in my case...
hacked several keyboards and as soon as I added 5 I get CASPER.

A good hack however for SFII is a digital Logitech Wingman.  Uses common ground for all inputs.
Over my window they'd written my name,
Saying so long and see you again.

onesimo

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 16
  • Last login:June 25, 2005, 12:06:05 pm
  • I want to build my own arcade controls!
Re: Help with Keyboard Hack
« Reply #10 on: June 08, 2005, 09:29:37 pm »
thanks for the advices. yeah, i got tires mapping the matrix..   il try fininshing it later. "here" is the philippines, i think ultimarc ships only in US, Australia, and Japan.. and i have a limited budget. im thinking about hacking a USB gamepad (topway because its cheap).

i have tested my keyboard for ghosting, i get only 2 buttons pressed when i press for example (x1,y1) (x2,y1) and (x2,y2) only the first two keys show in the keyscan. that's blocking right??? so if i assign the (x2,y2) to be the coin key will it still be a problem??

---i already made my plans for the controller using autoCAD 2004. should i use a MDF instead of Wood?? what is the best for my controller.

NoOne=NBA=

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2718
  • Last login:July 23, 2011, 08:59:16 am
  • Just Say No To Taito! -Nichibutsu
Re: Help with Keyboard Hack
« Reply #11 on: June 08, 2005, 09:57:46 pm »
If you can get two PS1-style USB gamepads cheap, that will give you the 2-sticks/8-buttons per player you want.

That would let you use the keyboard hack for coinup/player start/admin functions.

paigeoliver

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 10994
  • Last login:July 06, 2024, 08:43:49 pm
  • Awesome face!
Re: Help with Keyboard Hack
« Reply #12 on: June 09, 2005, 01:48:17 am »
I am pretty sure Ultimarc ships worldwide. I believe Groovygamegear does as well.

Buy an encoder, if you need to save money on your project then save it somewhere else.

Keyboard and joystick hacks tend to FALL APART over time. I have done a few dozen of them and only 2 of them ever held up. The two that held up both used PCBs out of "fighter" type joysticks that didn't really have to be hacked so much as simply wired up to different controls.
Acceptance of Zen philosophy is marred slightly by the nagging thought that if all things are interconnected, then all things must be in some way involved with Pauly Shore.

Tiger-Heli

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5447
  • Last login:January 03, 2018, 02:19:23 pm
  • Ron Howard? . . . er, I mean . . . Run, Coward!!!
    • Tiger-Heli
Re: Help with Keyboard Hack
« Reply #13 on: June 09, 2005, 07:11:53 am »
Not in my case...
hacked several keyboards and as soon as I added 5 I get CASPER.
Okay, this is getting way off topic, but if you assume a 16x8 matrix, then the best you can do is 4 button per player, UNLESS you purposely allow the opposite joystick directionals to ghost (They can never be pressed simultaneously anyway).  This gives you the extra 4 inputs for a SF style panel.  This is all explained at the EmuAdvice link above.
It's not what you take when you leave this world behind you, it's what you leave behind you when you go. - R. Travis.
When all is said and done, generally much more is SAID than DONE.

Tiger-Heli

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5447
  • Last login:January 03, 2018, 02:19:23 pm
  • Ron Howard? . . . er, I mean . . . Run, Coward!!!
    • Tiger-Heli
Re: Help with Keyboard Hack
« Reply #14 on: June 09, 2005, 07:19:43 am »
First off, heed the previous replies.  An encoder will work much better.  Otherwise two gamepad hacks and a keyboard hack for admin keys will get what you originally wanted.
i have tested my keyboard for ghosting, i get only 2 buttons pressed when i press for example (x1,y1) (x2,y1) and (x2,y2) only the first two keys show in the keyscan. that's blocking right??? so if i assign the (x2,y2) to be the coin key will it still be a problem??
Sounds like blocking to me.  There are compromises with a keyboard hack.  The SF panel action keys should work with no problems.  What it means is your start or coin inputs may not register if someone else is pressing the right combination of two buttons at the same time you depress the coin input.  Not very likely to be a problem, but possible.
Quote
---i already made my plans for the controller using autoCAD 2004. should i use a MDF instead of Wood?? what is the best for my controller.
Lots of people use MDF.  I think I would.  It has a smooth finish and takes paint, vinyl, laminate well, etc.
It's not what you take when you leave this world behind you, it's what you leave behind you when you go. - R. Travis.
When all is said and done, generally much more is SAID than DONE.

onesimo

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 16
  • Last login:June 25, 2005, 12:06:05 pm
  • I want to build my own arcade controls!
Re: Help with Keyboard Hack
« Reply #15 on: June 09, 2005, 11:13:15 am »
here is my complete matrix:



can i use the following key assignments:


Tiger-Heli

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5447
  • Last login:January 03, 2018, 02:19:23 pm
  • Ron Howard? . . . er, I mean . . . Run, Coward!!!
    • Tiger-Heli
Re: Help with Keyboard Hack
« Reply #16 on: June 09, 2005, 01:19:26 pm »
here is my complete matrix:
can i use the following key assignments:
Not hardly - I'll map you out a 7 button per player layout that will work.  It will use the Windows keys for buttons 7, though.
It's not what you take when you leave this world behind you, it's what you leave behind you when you go. - R. Travis.
When all is said and done, generally much more is SAID than DONE.

Tiger-Heli

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5447
  • Last login:January 03, 2018, 02:19:23 pm
  • Ron Howard? . . . er, I mean . . . Run, Coward!!!
    • Tiger-Heli
Re: Help with Keyboard Hack
« Reply #17 on: June 09, 2005, 02:10:30 pm »
I couldn't find the spacebar in your matrix.  Here's what I'd recommend, other combinations are possible - Note that it is critical that the opposite joystick directionals stay in one row and all other action keys are one per row only.  Coin and start keys may cause ghosting, same with pause and escape, but that's okay.  (I tried to use "Popular Arcade Emulator" defaults where possible).

P1 UP -  7
P1 Down - Down Arrow
P1 Left - 8
P1 Right - Right Arrow
P1B1 - L Ctrl
P1B2 - L Alt
P1B3 - Home
P1B4 - L Shift
P1B5 - Z
P1B6 - X
P1B7 - L Windows
P2UP - R
P2Down - F
P2Left - D
P2Right - E
P2B1 - J
P2B2 - L
P2B3 - 9
P2B4 - 0
P2B5 - I
P2B6 - BackSpace
P2B7 - R Windows

Happy Gaming!!!!
It's not what you take when you leave this world behind you, it's what you leave behind you when you go. - R. Travis.
When all is said and done, generally much more is SAID than DONE.

onesimo

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 16
  • Last login:June 25, 2005, 12:06:05 pm
  • I want to build my own arcade controls!
Re: Help with Keyboard Hack
« Reply #18 on: June 09, 2005, 09:44:18 pm »
THANKS a LOT!!!

i have no problems with ghosting in my keyboard, only blocking.

here is my MATRIX again with the space bar and Enter keys.



Thanks Again!!!

Tiger-Heli

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5447
  • Last login:January 03, 2018, 02:19:23 pm
  • Ron Howard? . . . er, I mean . . . Run, Coward!!!
    • Tiger-Heli
Re: Help with Keyboard Hack
« Reply #19 on: June 10, 2005, 10:54:24 am »
THANKS a LOT!!!
i have no problems with ghosting in my keyboard, only blocking.
here is my MATRIX again with the space bar and Enter keys.
Thanks Again!!!
Right Arrow seems to have disappeared this time.  I ASSuME it's still at (17, 3).  You may have BLOCKING problems with coin and admin functions then  ;)

Revised (alternate) setup to use the Spacebar:

P1 UP -  Up Arrow
P1 Down - Home
P1 Left - 8
P1 Right - Right Arrow
P1B1 - L Ctrl
P1B2 - L Alt
P1B3 - Spacebar
P1B4 - L Shift
P1B5 - Z
P1B6 - X
P1B7 - L Windows
P2UP - R
P2Down - F
P2Left - D
P2Right - E
P2B1 - J
P2B2 - L
P2B3 - 9
P2B4 - 0
P2B5 - I
P2B6 - BackSpace
P2B7 - R Windows

Happy Gaming!!!!


It's not what you take when you leave this world behind you, it's what you leave behind you when you go. - R. Travis.
When all is said and done, generally much more is SAID than DONE.

onesimo

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 16
  • Last login:June 25, 2005, 12:06:05 pm
  • I want to build my own arcade controls!
Re: Help with Keyboard Hack
« Reply #20 on: June 10, 2005, 11:07:03 am »
is there an alternate for the windows key??? because if i press it the start menu pops out

Tiger-Heli

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5447
  • Last login:January 03, 2018, 02:19:23 pm
  • Ron Howard? . . . er, I mean . . . Run, Coward!!!
    • Tiger-Heli
Re: Help with Keyboard Hack
« Reply #21 on: June 10, 2005, 12:37:58 pm »
is there an alternate for the windows key??? because if i press it the start menu pops out
Unfortunately, no - Those are the only keys on those rows.  You can use it in MAME though (but MAME doesn't have any seven button games), or you could leave it out and repeat one of your other buttons for the thumb buttons.

From my hacks page:

#  The windows GUI keys deserve special consideration.  These were not useable in older versions of MAME and are on the "Avoid" list above.  I did not use them in my example, because when I wrote this up, MAME could not use them.  I did not add them in when I revised the page because the 16x8 matrix without them was representative of most keyboards.  However, MAME from version 0.60 up will recognize them and I would gain two additional inputs by using them with the DR-104 keyboard.  OTOH, you can't just use the Windows Key in MAME because if you just set the FIRE button to L WIN (for example), MAME will fire a shot and freeze as the Start menu pops up, fire a shot and continue as the Start menu disappears, fire a shot and freeze . . . etc.  You can avoid this by installing either WinKey Killer 1.7 (homepage/download) or LogoLess.  Here is a comparison of the two programs (either one of which I can recommend):

WinKey Killer 1.7 - Very simple (double-click to run, double-click again to exit).  Transparent.  Can be loaded at startup by placing in a shortcut and adding to the Windows Start folder.  Kills Windows key instantly in all apps.  Has several advanced set-up options like Disable Ctrl+Esc, Disable WinKey+E to launch Internet Explorer, Disable Ctrl-Alt-Del, Hide from Ctrl-Alt-Del, Display message on shutdown, etc.

LogoLess - Runs with an Icon in the Systray.  This is the better program if you ever use the Windows key because it only eliminates it in windows beginning with "MAME" (user-specified), or in full-screen applications.

Links on my site are outdated, but LogoLess is available here: http://www.home.earthlink.net/~czarsoft/LogoLess.html

And WinKeyKiller - http://www.geocities.com/clansmm/downloads.html or http://arcadecontrols.com/arcade_downloads.shtml
It's not what you take when you leave this world behind you, it's what you leave behind you when you go. - R. Travis.
When all is said and done, generally much more is SAID than DONE.

onesimo

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 16
  • Last login:June 25, 2005, 12:06:05 pm
  • I want to build my own arcade controls!
Re: Help with Keyboard Hack
« Reply #22 on: June 11, 2005, 01:02:28 pm »
thank you so much!! i didnt know about a program that kills the winkey... :)

Tiger-Heli

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5447
  • Last login:January 03, 2018, 02:19:23 pm
  • Ron Howard? . . . er, I mean . . . Run, Coward!!!
    • Tiger-Heli
Re: Help with Keyboard Hack
« Reply #23 on: June 11, 2005, 01:07:20 pm »
And best of all, the Winkey still works in MAME!!!

You might however want to consider just repeating one of the other six buttons for the thumb button, especially if you use emulators besides MAME that will need it.
It's not what you take when you leave this world behind you, it's what you leave behind you when you go. - R. Travis.
When all is said and done, generally much more is SAID than DONE.

onesimo

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 16
  • Last login:June 25, 2005, 12:06:05 pm
  • I want to build my own arcade controls!
Re: Help with Keyboard Hack
« Reply #24 on: June 11, 2005, 01:12:40 pm »
on the key assignments above, will i be experiencing blocking.. i cant plug my keyboard for testing because the wires were removed from the pcb

Tiger-Heli

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5447
  • Last login:January 03, 2018, 02:19:23 pm
  • Ron Howard? . . . er, I mean . . . Run, Coward!!!
    • Tiger-Heli
Re: Help with Keyboard Hack
« Reply #25 on: June 11, 2005, 01:18:56 pm »
Complicated answer - You shouldn't experience blocking on the keys I showed for action keys.  Some keyboards only allow 8 keys to be pressed at once, so that may be a problem.  You will still have blocking on other keys - For example, if you pressed D and 3 and 4, the 4 key would not show up.
It's not what you take when you leave this world behind you, it's what you leave behind you when you go. - R. Travis.
When all is said and done, generally much more is SAID than DONE.

onesimo

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 16
  • Last login:June 25, 2005, 12:06:05 pm
  • I want to build my own arcade controls!
Re: Help with Keyboard Hack
« Reply #26 on: June 11, 2005, 01:28:34 pm »
ok.. is there any game that requires has 8 simultaneous keypress?? will it work well on marvel vs capcom and othe fighting games??

Tiger-Heli

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5447
  • Last login:January 03, 2018, 02:19:23 pm
  • Ron Howard? . . . er, I mean . . . Run, Coward!!!
    • Tiger-Heli
Re: Help with Keyboard Hack
« Reply #27 on: June 11, 2005, 01:31:38 pm »
ok.. is there any game that requires has 8 simultaneous keypress?? will it work well on marvel vs capcom and othe fighting games??
8 keypresses - console emulation only (or mole attack but you can use the P1 buttons for it  8) )

fighting games only need six.
It's not what you take when you leave this world behind you, it's what you leave behind you when you go. - R. Travis.
When all is said and done, generally much more is SAID than DONE.