fsEventsTriggerKeyEvent
The fsEventsTriggerKeyEvent function can be used to trigger a key event.
Syntax
void fsEventsTriggerKeyEvent(
FsEventId eventId,
FsVarParamArray param
);
Parameters
Parameters | Description |
---|---|
eventId |
The Id of the key event. The entire list of Key Event Id can be found in |
param | The array of parameters that must be sent to trigger the key event. Array's values can be index , FsCRC or string |
Return Values
The function has no return value
Example
#define MY_KEY_EVENT
...
FsVarParamArray paramToSend;
paramToSend.size = 2;
paramToSend.array = (FsVarParamVariant*) malloc(2 * sizeof(FsVarParamVariant));
// Init paramToSend
fsEventsTriggerKeyEvent(MY_KEY_EVENT, paramToSend)