void		XPCProcess::StartProcessCycles(long	inCycles)
{
	mCallbackTime = -inCycles;
	if (!mInCallback)
		XPLMSetFlightLoopCallbackInterval(
			FlightLoopCB, mCallbackTime, 1/*relative to now*/, reinterpret_cast<void *>(this));
}
void		XPCProcess::StopProcess(void)
{
	mCallbackTime = 0;
	if (!mInCallback)
		XPLMSetFlightLoopCallbackInterval(
			FlightLoopCB, mCallbackTime, 1/*relative to now*/, reinterpret_cast<void *>(this));
}
void		XPCProcess::StartProcessTime(float	inSeconds)
{
	mCallbackTime = inSeconds;
	if (!mInCallback)
		XPLMSetFlightLoopCallbackInterval(
			FlightLoopCB, mCallbackTime, 1/*relative to now*/, reinterpret_cast<void *>(this));
}
Пример #4
0
void hide_dialog()
{
    if (ui_dialog_wid && ui_dialog_open) {
        XPHideWidget(ui_dialog_wid);
        // debug("hiding dialog");
        ui_dialog_open = 0;

        // cancel any hide that may have been scheduled
        XPLMSetFlightLoopCallbackInterval(hide_dialog_flcb, 0, 0, NULL);
    }
}
Пример #5
0
void hide_dialog_later(float seconds)
{
    if (ui_dialog_wid && ui_dialog_open) {
        XPLMSetFlightLoopCallbackInterval(hide_dialog_flcb, seconds, 1, NULL);
    }
}