| Main > Main Forum |
| Simplest of Keyboard Hacks |
| << < (6/8) > >> |
| Craig:
--- Quote from: Shifty on November 26, 2004, 08:35:18 pm --- For those that don't know, this is a terminal strip. ;D --- End quote --- No it's a terminal block :P |
| spystyle:
The simplest of keyboard hacks is here : http://dragonsden.emuunlim.com/ddkeytutl.htm (not my tutorial) It dosen't involve mapping out the matrix or any of that high tech jazz, I've made a few and they all work fine. I use a radio shack project enclosure instead of a movie case, and I use "KeyHook.exe" to map out the buttons. Keyboard hacks cost me $8 (and 3 hours) as I have all but the terminal blocks and project enclosure already in my basement, coming in 2nd place is the KeyWiz eco shipped for $26.50. I would'nt use a keyboard hack like this for a game with more than 1 stick and 2 buttons (to avoid blocking) and I've read that the newer keyboards have built-in anti-ghosting measures. It should work great for a jukebox to avoid blowing your keyboard fuse with a potentially bridged "finger" , inspect your soldering job with a magnifying glass before use, or try it on a 486 first. I love keyboard hacks! Dig it? Craig |
| Tiger-Heli:
--- Quote from: spystyle on November 30, 2004, 09:52:29 pm ---The simplest of keyboard hacks is here : http://dragonsden.emuunlim.com/ddkeytutl.htm --- End quote --- Spystyle, great write-up (I'm assuming that's your website) and great job of making it look simple, but I would like to point out a few things. --- Quote ---It dosen't involve mapping out the matrix or any of that high tech jazz, I've made a few and they all work fine. --- End quote --- It most certainly DOES involve mapping out the matrix. To quote from your page: --- Quote ---Touch And Go Now that you have what looks like a scribbled up movie case covered in spaghetti, it is time to figure out the matrix of you keyboard controller. This is a very slow but rewarding process, you will only do it once so don't start to cry yet. --- End quote --- Now, there are three possible ways to map out the matrix - 1) Disassemble the keyboard and follow the traces wires on the flimsy (mylar) to the pins on the microcontroller. (This can be tedious and prone to errors). 2) A variation of the above - Use a multimeter on ohms scale (continuity tester) and check from each contact point on the flimsy (under the key) to each pin on the matrix. 3) Your method - Solder wires to each pin, and touch together and see what key is generated. I prefer method 2 for the following reasons: Done with power off, so you have less chance of destroying your computer. Does not permanently destroy the keyboard, so if it ends up not working (badly set-up matrix), you can reassemble it and yard sale it. But mainly - Let's say I want to use 10 keys - 2 coin, 2 start, the joystick and 2 buttons. If I really knew what I was doing, I just try each key that I need (so trace 20 contacts), see if I will have blocking issues, and solder less than 20 (some wires will be shared) wires to the keyboard. This is regardless of the number of pins on the microcontroller. Now let's look at your method. (BTW, in some cases, the rows and columns are not split apart, so it becomes difficult to even attempt your method.) Let's assume the keyboard uses an 18x9 matrix, which is pretty common. I am going to solder 27 wires to the circuit card, then map out 162 possible combinations, 55 of which won't be used or will be duplicates. Also some of these will be Ctrl, Alt, NumPad, Sleep, Wake, keys, etc. While keyhook, Ghostkey, etc. will display these, they don't always distinguish L Alt from R Alt, or Numpad 5 from keyboard 5 (or you have to use 2 progams to do so), where with Method two, you know what button is being pressed so you know what is happening. --- Quote ---Keyboard hacks cost me $8 (and 3 hours) as I have all but the terminal blocks and project enclosure already in my basement, coming in 2nd place is the KeyWiz eco shipped for $26.50. --- End quote --- Well, there is now the Eco shipped for $26.50 or the Eco solderless shipped for about $29.50. I'm not sure the $3 extra wouldn't end up being less than the wire and solder (and definitely time involved) with the base Eco. But with a keyboard hack, you will be limited to about 20 action inputs (assuming two joysticks), the Eco has 32 plus 24 Shazaaam! inputs, the keyboard hack most likely won't use MAME defaults and won't be reprogrammable for other programs, etc. etc. --- Quote ---I would'nt use a keyboard hack like this for a game with more than 1 stick and 2 buttons (to avoid blocking) and I've read that the newer keyboards have built-in anti-ghosting measures. --- End quote --- Not necessarily. Most keyboards use an 18x8 or 18x9 matrix (often with two rows dedicated to the Windows keys). That means you should be able to get 16 non-ghosting/blocking inputs out of one. Since the joysticks can't be up and down simultaneously, we allow them to ghost and pick up 4 more inputs (for a dual joystick panel) for a total of twenty, or enough for a SF style layout. (But you have to map out the matrix to do this.). --- Quote ---It should work great for a jukebox --- End quote --- Something people tend to miss is ghosting/blocking only occurs when three or more keys are pressed simultaneously. On a jukebox, you could use all 107 inputs if you wanted, as you will never press multiple keys at the same time. |
| Chris:
--- Quote from: Tiger-Heli on December 01, 2004, 08:05:39 am ---Also some of these will be Ctrl, Alt, NumPad, Sleep, Wake, keys, etc. --- End quote --- |
| spystyle:
Hi there, oops, that's not my tutorial, I've edited my post to state that. About KeyHook.exe I've never had any problems whatsoever with KeyHook.exe, it names everything just fine for me with the 6 keyboard hacks I've made (which work great, dispite their bad publicity) The only thing with keyhook is it names the player 1 movement keys as "grey up, grey down, grey left, and grey right" Not "up, down, left, and right" , I learned that lesson the hard way and had to re-wire a control panel, other than that it's been tip-top for me, never mis-naming the alt ,ctrl , or any other keys (maybe we were using different versions) To save on solder points you can map the bare keyboard encoder board with keyhook BEFORE soldering (though it is tricky) then use a black marker to mark off any pins you won't be needing. For my last keyboard hack I only needed to solder 12 pins (instead of 26) which conviniently fit on one terminal strip, making the total cost of that keyboard encoder $5 (as I have everything but the project enclosure and terminal strip in my basement) and to bring the total cost down to $2 I could have used something else as a project enclosure, but I like the small black radio shack project enclosure, I drill holes in the top for the wires to come out, and super glue the terminal block to the top. It works like a charm on a 1 player 2 button cab but it took me 3 hours to make - so only a "keyboard hack enthusiast" could justify the savings of $21.50. That's only saving $7.16 per hour, and my job pays more than that... As I said : I love keyboard hacks (I have issues) Dig it? Craig |
| Navigation |
| Message Index |
| Next page |
| Previous page |