pub unsafe extern "C" fn projectm_key_handler(
    instance: projectm_handle,
    event: projectMEvent,
    keycode: projectMKeycode,
    modifier: projectMModifier
)
Expand description

@brief Key handler that processes user input.

This method can be used to send user input in the host application to projectM, for example to switch presets, display the help and search menus or change settings like beat sensitivity.

All actions executed by the key handler can also be run programmatically if the host application is not able to redirect keyboard input to projectM.

@param instance The projectM instance handle. @param event The key event, valid are either PROJECTM_KEYUP or PROJECTM_KEYDOWN. @param keycode The key code, mapped to a value of the projectMKeycode enumeration. @param modifier The key modifier as a value from the projectMModifier.