The fsEventsRegisterHEvent function can be used to register an H event.

Syntax
void fsEventsRegisterHEvent(
    const char* name
);
Parameters
ParametersDescription
nameThe name of the H Event to register.
Return Values

The function return the unique ID of the registered H event, or -1 if something went wrong.

Example

In this example, a VCockpit made in JavaScript listens for the H event: H:MyHEvent. You can register this H event with the following:

FsHEventId myHEvent = fsEventsRegisterHEvent("MyHEvent");

0/255