Implement external events approach to input user actions into engine.
Doesn't work for some obscure reason ("Error: Unknown method parameter type: LongEventType")
void fpcrtl_halt(int num) {
__coverity_panic__();
}
int fpcrtl_abs(int num) {
return num >= 0 ? num : -num;
}