joystick Instrument Control:Sensing and Control joystick joystick Reads data from a joystick controller. Description Plugin opcode in joystick. Reads data from a Linux joystick controller Syntax kres joystick kdevice, ktab Performance Please note that this opcode is currently only supported on GNU/Linux. kdevice -- the index of the joystick device, either /dev/jsN or /dev/input/jsN. ktab -- A table to hold input results, should be at least enough elements to store one value for each stick axis and one for each button + 2. The first two elements of the table are initialized with the number of axes and the number of buttons, respectively, when a joystick is opened. If a joystick is unplugged during performance, the opcode will repeatedly attempt to reopen the device with a delay between attempts. Examples Here is an example of the joystick opcode. It uses the file joystick.csd. See the sections Real-time Audio and Command Line Flags for more information on using command line flags. Here is another example of the joystick opcode. It uses the file joystick-2.csd. See also Sensing and Control: Keyboard and mouse sensing non-MIDI devices Credits Author: Justin Glenn Smith 2010 New in version 5.17.12