SR Research Support Site
Configuring Key and Buttons

See the tracker file "BUTTONS.INI" and "KEYS.INI" for examples.

key_function

key_function <keyspec> <command>

Look at the tracker "KEYS.INI" file for examples.

Arguments:

create_button

create_button <button> <ioport> <bitmask> <inverted>

Defines a button to a bit in a hardware port.

Arguments:

button_function

button_function <button> <presscmd> <relcmd>

Assigns a command to a button. This can be used to control recording with a digital input, or to let a button be used instead of the spacebar during calibration.

Arguments:

button_debounce_time

button_debounce_time = <delay>

Sets button debounce time. Button responds immediately to first change, then is ignored until it is stable for this time.

Arguments:

write_ioport

write_ioport <ioport> <data>

Writes data to I/O port. Useful to configure I/O cards.

Arguments:

read_ioport

read_ioport <ioport>

Performs a dummy read of I/O port. Useful to configure I/O cards.

Arguments:


Copyright ©2002-2021, SR Research Ltd.