bicostp wrote:What?
I'm going to match the pairs on the laptop's matrix to the pairs on the desktop encoder's port, so if the desktop card expects A to be 5,20 then I'll wire the laptop matrix's pin 1 to pin 5 on the desktop card, and pin 12 to pin 20. Of course none of the connectors are going to fall into place; I'm going the
very tedious way and testing all the necessary keys.
The problem is that each row and column are connected to more than one key. That's why you don't need even half as many contacts going from the keyboard to the encoder as there are keys.
It's really difficult to demonstrate with only two keys as I tried above, so let's expand it a bit:
Laptop matirix:
A = 1,15 B = 2,12 C=12,15 D=1,2
This is a perfectly valid key matrix, and you will likely find things just as confusing in your key matrix.
Desktop matrix:
A = 1,2 B= 1,3 C=4,5 D=3,4
How do you compensate for that? C are both linked to one line in both A and B in the laptop matrix, but completely seperate in the the desktop matrix. D is linked to A and B in the laptop matrix and disconnected from C, but is connected to only B with a connection to C in the desktop. If you wired them straight together, pressing D will also cause B or A to be registered as being pressed, as it would be interconnected. More problems with key ghosting (one button causing another to register), key blocking (can't hit two buttons at the same time, very bad if it is shift), and other odd behavior.
Unless you're going to program a PIC or AVR is interpret the matrix, count on PC key remaping software being your main option. Even with that, you'll likely have to hunt around for a keyboard with a compatilbe matrix. This guy did a map of the matrix and still needed software remaping:
http://mini-itx.com/projects/bbcitxb/
I was into the MAME cab scene long-ago when the only inexpensive option we had encountered for doing a control panel with enough buttons to support two player Street Fighter was a keyboard. The community found out what fun keyboard matrices were, not even having the same brand and model of keyboard was a garantee that the matrices were the same. What button was what row and column jumped everywhere between keyboard and keyboard.