Binds controls to the current layout.
cock.bind ( self, map, option, device, key, inverse, delta, value, joystick )
table self
string map
string option
string device
string key
string inverse
string delta
number value
string joystick
cock.bind ( self, longdata )
table self
string longdata
Alternatively, instead of using literal values for device, key, inverse, delta and joystick arguments, you can pass numerical values. Although, just using magic numbers to set values by hand in your code will only make it messier, and given that internal conversion is an optimized operation and you wouldn't call this function hundreds of times every frame, that would make no performance difference.