зеркало из https://github.com/mozilla/pjs.git
Adding SIOUX event processing
This commit is contained in:
Родитель
68cac0b082
Коммит
8293d5fb8d
|
@ -186,7 +186,7 @@ static void DoIdleProcessing()
|
||||||
{
|
{
|
||||||
PR_Sleep(10);
|
PR_Sleep(10);
|
||||||
}
|
}
|
||||||
|
extern short SIOUXHandleOneEvent(EventRecord *userevent);
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
static OSErr HandleOneEvent()
|
static OSErr HandleOneEvent()
|
||||||
{
|
{
|
||||||
|
@ -206,6 +206,8 @@ static OSErr HandleOneEvent()
|
||||||
case kHighLevelEvent:
|
case kHighLevelEvent:
|
||||||
DoHighLevelEvent(&theEvent);
|
DoHighLevelEvent(&theEvent);
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
SIOUXHandleOneEvent(&theEvent);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -259,16 +261,11 @@ void main(void)
|
||||||
OSErr err;
|
OSErr err;
|
||||||
char *argv[] = { NULL, NULL };
|
char *argv[] = { NULL, NULL };
|
||||||
|
|
||||||
#if 0
|
|
||||||
InitializeSIOUX(true);
|
|
||||||
printf("Welcome...\n");
|
|
||||||
#else
|
|
||||||
// initialize QuickDraw globals. This is the only Toolbox init that we
|
// initialize QuickDraw globals. This is the only Toolbox init that we
|
||||||
// should do for an FBA
|
// should do for an FBA
|
||||||
InitGraf(&qd.thePort);
|
//InitGraf(&qd.thePort);
|
||||||
|
InitializeSIOUX(true);
|
||||||
MemoryInit(10);
|
MemoryInit(10);
|
||||||
#endif // DEBUG
|
|
||||||
|
|
||||||
// initialize application globals
|
// initialize application globals
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче