User Reference:KeyLogFilter
Function
The KeyLogFilter logs keyboard events (i.e., key presses) and the state of mouse buttons. These events are recorded in BCI2000 states. This allows for tracking of user responses.
Temporal resolution of BCI2000 states is limited to the length of a sample block. A keypress at any time during a sample block interval will result in that key's code being recorded for all respective state values within this sample block. When multiple keys are pressed during a sample block interval, the key that was pressed the last will be recorded.
Parameters
LogKeyPresses
Enables or disables keypress logging. Independent of the value of this parameter, the PressedKey state will always be present in the file when the KeyLogFilter was added to the module.
States
PressedKey
The state's lower byte contains the key's "virtual key code" as defined by the Win32 API. Bits 8 and 9 represent left and right mouse buttons.
See also
User Reference:MouseFilter, User Reference:KeystrokeFilter, User Reference:JoystickFilter