fsEventsRegisterHEvent
The fsEventsRegisterHEvent function can be used to register an H event.
Syntax
void fsEventsRegisterHEvent(
const char* name
);
Parameters
| Parameters | Description |
|---|---|
name |
The 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. So you can register then register this H event with the following:
FsHEventId myHEvent = fsEventsRegisterHEvent("MyHEvent");
Related Topics
0/255