Jump to content

User Reference:KeyLogFilter

From BCI2000 Wiki
Revision as of 18:54, 10 October 2007 by Mellinger (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Function

The KeyLogFilter logs keyboard and mouse keypresses into a state. 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. When multiple keys are pressed during a sample block interval, the last released key will be recorded.

Parameters

LogKeyPresses

Enables or disables keypress logging. Independently of that, the PressedKey state will always be present in the file when the KeyLogFilter was present in the recording system.

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:KeyLogFilter|User Reference:KeystrokeFilter|User Reference:JoystickFilter