Difference between revisions of "Keyboard Hacks"
Mortalpawn (talk | contribs) |
|||
(5 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | A keyboard hack refers to taking apart a standard computer keyboard and using its circuit board (aka [[encoder]]) to interface arcade controls to your computer. Keyboard hacks must be planned carefully and are prone to [[ghosting]] and [[blocking]] issues | + | A keyboard hack refers to taking apart a standard computer keyboard and using its circuit board (aka [[Encoders| encoder]]) to interface arcade controls to your computer. Keyboard hacks must be planned carefully and are prone to [[Keyboard_Hacks#Key_Ghosting| ghosting]] and [[Keyboard_Hacks#Key_Blocking| blocking]] issues. [[Electronic_Components#Diodes| Diodes]] can mitigate ghosting issues, but will do nothing to prevent blocking issues. However, by carefully choosing inputs, you can avoid both problems without the use of diodes, although you will usually be limited to only enough inputs for a SF style panel (2 joysticks and 6 buttons per player). Keyboard hacks can be sometimes be cheaper than purchasing a commercial [[keyboard encoder]]. The overhead and difficulty of hacking a keyboard and the availability of very low cost commercial keyboard encoders make hacking a keyboard of limited value. Also, due to issues with the USB keyboard specification, USB keyboards are not suitable for hacking, and due to inability to freely select the keys to be utilized, keyboard hacks are only really useful for emulators that allow key remapping, or small single-player panels. See the BYOAC [http://arcadecontrols.com/arcade_input.shtml#KeyboardPort keyboard hack section] for more information or [http://www.mameworld.net/emuadvice/keyhack2.html Tiger-Heli's detailed write-up]. |
− | Keyboard hacks can be cheaper than purchasing a [[keyboard encoder]]. The overhead and difficulty of hacking a keyboard and the availability of very low cost commercial keyboard encoders make hacking a keyboard of limited value. See the BYOAC [http://arcadecontrols.com/arcade_input.shtml#KeyboardPort keyboard hack section] for more information. | ||
<p> | <p> | ||
− | [[Image:keyboard-hack.jpg]]<br>Image used courtesy of [http://www.projectarcade.com Project Arcade] | + | [[Image:keyboard-hack.jpg]]<br>Image used courtesy of [http://www.projectarcade.com Project Arcade]. Diode orientation may need to be reversed - Trial and error. |
+ | |||
+ | ==Key Ghosting== | ||
+ | Basically, ghosting is a problem with scanning matrix keyboard encoders, where pressing three simultaneous keys that from a rectangle in the (row and column) matrix causes an unintended fourth (ghost) key to register. | ||
+ | |||
+ | This is a more commonly mentioned, but less troublesome problem than [[Keyboard_Hacks#Key_Blocking| blocking]]. Also, ghosting can often be overcome through the use of diodes, while blocking cannot. | ||
+ | |||
+ | See [http://www.dribin.org/dave/keyboard/ Dave Dribin's page] and [http://www.mameworld.net/emuadvice/keyhack2.html Tiger-Heli's Detailed write-up] for a more complete explanation. | ||
+ | |||
+ | ==Key Blocking== | ||
+ | To avoid the problems of [[Keyboard_Hacks#Key_Ghosting| ghosting]], most newer (1993 and up) keyboards employ a technique called Blocking. Blocking is a firmware method where the keyboard prevents a third input from registering if it forms a rectangle on the matrix and could potentially create a ghost input. | ||
+ | |||
+ | This is good for typing, but bad for arcade controls. Unlike ghosting, blocking CANNOT be overcome by the use of diodes. Also, blocking is more troublesome than ghosting, because while ghosting creates an unintended input (which may or may not affect your game); blocking prevents an intended input from registering, which almost certainly WILL affect your game. | ||
+ | |||
+ | The good news is that blocking can be avoided by carefully choosing the inputs to use on your keyboard hack. | ||
+ | |||
+ | See [http://www.mameworld.net/emuadvice/keyhack2.html Tiger-Heli's Detailed write-up] for a more complete explanation. | ||
+ | |||
+ | ==See Also== | ||
+ | * [[Controls]] | ||
+ | |||
+ | ==External Links== | ||
+ | * [http://www.mameworld.net/emuadvice/keyhack2.html Tiger-Heli's Detailed write-up] | ||
+ | |||
+ | |||
+ | [[Category:Controls]] |
Latest revision as of 20:20, 14 July 2006
A keyboard hack refers to taking apart a standard computer keyboard and using its circuit board (aka encoder) to interface arcade controls to your computer. Keyboard hacks must be planned carefully and are prone to ghosting and blocking issues. Diodes can mitigate ghosting issues, but will do nothing to prevent blocking issues. However, by carefully choosing inputs, you can avoid both problems without the use of diodes, although you will usually be limited to only enough inputs for a SF style panel (2 joysticks and 6 buttons per player). Keyboard hacks can be sometimes be cheaper than purchasing a commercial keyboard encoder. The overhead and difficulty of hacking a keyboard and the availability of very low cost commercial keyboard encoders make hacking a keyboard of limited value. Also, due to issues with the USB keyboard specification, USB keyboards are not suitable for hacking, and due to inability to freely select the keys to be utilized, keyboard hacks are only really useful for emulators that allow key remapping, or small single-player panels. See the BYOAC keyboard hack section for more information or Tiger-Heli's detailed write-up.
Image used courtesy of Project Arcade. Diode orientation may need to be reversed - Trial and error.
Key Ghosting
Basically, ghosting is a problem with scanning matrix keyboard encoders, where pressing three simultaneous keys that from a rectangle in the (row and column) matrix causes an unintended fourth (ghost) key to register.
This is a more commonly mentioned, but less troublesome problem than blocking. Also, ghosting can often be overcome through the use of diodes, while blocking cannot.
See Dave Dribin's page and Tiger-Heli's Detailed write-up for a more complete explanation.
Key Blocking
To avoid the problems of ghosting, most newer (1993 and up) keyboards employ a technique called Blocking. Blocking is a firmware method where the keyboard prevents a third input from registering if it forms a rectangle on the matrix and could potentially create a ghost input.
This is good for typing, but bad for arcade controls. Unlike ghosting, blocking CANNOT be overcome by the use of diodes. Also, blocking is more troublesome than ghosting, because while ghosting creates an unintended input (which may or may not affect your game); blocking prevents an intended input from registering, which almost certainly WILL affect your game.
The good news is that blocking can be avoided by carefully choosing the inputs to use on your keyboard hack.
See Tiger-Heli's Detailed write-up for a more complete explanation.