KeyboardChip

**KeyboardChip** is a module in *Retro Gadgets*. It allows control over gadgets using the computer's real keyboard.

Similar in functionality to the GamepadChip.

## Methods

**GetButton**( name InputName ) InputSource
Returns an InputSource for a given key.

**GetButtonAxis**( negativeName InputName, positiveName InputName ) InputSource
Returns an InputSource axis controlled by two given keys, one for negative and one for positive values.

## Events

**KeyboardChipEvent**( ButtonDown boolean, ButtonUp boolean, InputName InputName, Type string )
Triggered when a key is pressed or released.

* ButtonDown is true if a key was pressed at this event.
* ButtonUp is true if a key was released at this event.
* InputName returns the input name of the key that triggered this event.
* Type is "KeyboardChipEvent".

## Input names

* KeyboardChip.Return
* KeyboardChip.Space
* KeyboardChip.LeftArrow
* KeyboardChip.RightArrow
* KeyboardChip.DownArrow
* KeyboardChip.UpArrow
* KeyboardChip.Backspace
* KeyboardChip.Escape
* KeyboardChip.Tab
* KeyboardChip.Clear
* KeyboardChip.Pause
* KeyboardChip.Exclaim
* KeyboardChip.DoubleQuote
* KeyboardChip.Hash
* KeyboardChip.Dollar
* KeyboardChip.Percent
* KeyboardChip.Ampersand
* KeyboardChip.Quote
* KeyboardChip.LeftParen
* KeyboardChip.RightParen
* KeyboardChip.Asterisk
* KeyboardChip.Plus
* KeyboardChip.Comma
* KeyboardChip.Minus
* KeyboardChip.Period
* KeyboardChip.Slash
* KeyboardChip.Alpha0
* KeyboardChip.Alpha1
* KeyboardChip.Alpha2
* KeyboardChip.Alpha3
* KeyboardChip.Alpha4
* KeyboardChip.Alpha5
* KeyboardChip.Alpha6
* KeyboardChip.Alpha7
* KeyboardChip.Alpha8
* KeyboardChip.Alpha9
* KeyboardChip.Colon
* KeyboardChip.Semicolon
* KeyboardChip.Less
* KeyboardChip.Equals
* KeyboardChip.Greater
* KeyboardChip.Question
* KeyboardChip.At
* KeyboardChip.LeftBracket
* KeyboardChip.Backslash
* KeyboardChip.RightBracket
* KeyboardChip.Caret
* KeyboardChip.Underscore
* KeyboardChip.BackQuote
* KeyboardChip.A
* KeyboardChip.B
* KeyboardChip.C
* KeyboardChip.D
* KeyboardChip.E
* KeyboardChip.F
* KeyboardChip.G
* KeyboardChip.H
* KeyboardChip.I
* KeyboardChip.J
* KeyboardChip.K
* KeyboardChip.L
* KeyboardChip.M
* KeyboardChip.N
* KeyboardChip.O
* KeyboardChip.P
* KeyboardChip.Q
* KeyboardChip.R
* KeyboardChip.S
* KeyboardChip.T
* KeyboardChip.U
* KeyboardChip.V
* KeyboardChip.W
* KeyboardChip.X
* KeyboardChip.Y
* KeyboardChip.Z
* KeyboardChip.LeftCurlyBracket
* KeyboardChip.Pipe
* KeyboardChip.RightCurlyBracket
* KeyboardChip.Tilde
* KeyboardChip.Delete
* KeyboardChip.Keypad0
* KeyboardChip.Keypad1
* KeyboardChip.Keypad2
* KeyboardChip.Keypad3
* KeyboardChip.Keypad4
* KeyboardChip.Keypad5
* KeyboardChip.Keypad6
* KeyboardChip.Keypad7
* KeyboardChip.Keypad8
* KeyboardChip.Keypad9
* KeyboardChip.KeypadPeriod
* KeyboardChip.KeypadDivide
* KeyboardChip.KeypadMultiply
* KeyboardChip.KeypadMinus
* KeyboardChip.KeypadPlus
* KeyboardChip.KeypadEnter
* KeyboardChip.KeypadEquals
* KeyboardChip.Insert
* KeyboardChip.Home
* KeyboardChip.End
* KeyboardChip.PageUp
* KeyboardChip.PageDown
* KeyboardChip.F1
* KeyboardChip.F2
* KeyboardChip.F3
* KeyboardChip.F4
* KeyboardChip.F5
* KeyboardChip.F6
* KeyboardChip.F7
* KeyboardChip.F8
* KeyboardChip.F9
* KeyboardChip.F10
* KeyboardChip.F11
* KeyboardChip.F12
* KeyboardChip.F13
* KeyboardChip.F14
* KeyboardChip.F15
* KeyboardChip.Numlock
* KeyboardChip.CapsLock
* KeyboardChip.ScrollLock
* KeyboardChip.RightShift
* KeyboardChip.LeftShift
* KeyboardChip.RightControl
* KeyboardChip.LeftControl
* KeyboardChip.RightAlt
* KeyboardChip.LeftAlt
* KeyboardChip.RightCommand
* KeyboardChip.LeftCommand
* KeyboardChip.AltGr
* KeyboardChip.Help
* KeyboardChip.Print
* KeyboardChip.SysReq
* KeyboardChip.Break
* KeyboardChip.Menu

## Gamepad note

Note that Steam may automatically apply its "Keyboard (WASD) and Mouse" template in Controller Layout for *Retro Gagdets*. When this template is active, KeyboardChips will receive input from the affected gamepad while GamepadChips will not. According to this template's default settings, the received input will be as follows:

Buttons not listed and the right stick are mapped to mouse inputs that the KeyboardChip won't detect.