home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Elysian Archive
/
AmigaElysianArchive.iso
/
prog
/
c
/
skew.lha
/
Skew
/
example_output.c
next >
Wrap
Text File
|
1992-10-12
|
2KB
|
104 lines
/*
* Code generated by SKEleton Writer v1.20
*/
ULONG Class;
SHORT MouseX, MouseY;
ULONG Seconds, Micros;
VOID GetIDCMP( struct Window * );
VOID handleNewPrefs( VOID );
VOID handleIntuiTicks( VOID );
VOID handleIDCMPUpdate( VOID );
VOID GetIDCMP( struct Window *wnd )
{
struct IntuiMessage *msg;
BOOL DoneOK = FALSE;
while ( ! DoneOK ) {
WaitPort( wnd->UserPort );
while ( msg = (struct IntuiMessage *)GT_GetIMsg( wnd->UserPort ) ) {
Class = msg->Class;
MouseX = msg->MouseX;
MouseY = msg->MouseY;
Seconds = msg->Seconds;
Micros = msg->Micros;
GT_ReplyIMsg( msg );
switch ( Class ) {
case IDCMP_MOUSEBUTTONS:
break;
case IDCMP_MOUSEMOVE:
break;
case IDCMP_GADGETDOWN:
break;
case IDCMP_GADGETUP:
break;
case IDCMP_CLOSEWINDOW:
break;
case IDCMP_REFRESHWINDOW:
GT_BeginRefresh( wnd ); /* NECESSARY with gadtools! */
GT_EndRefresh( wnd, TRUE );
break;
case IDCMP_DISKINSERTED:
break;
case IDCMP_DISKREMOVED:
break;
case IDCMP_NEWPREFS:
handleNewPrefs();
break;
case IDCMP_INTUITICKS:
handleIntuiTicks();
break;
case IDCMP_IDCMPUPDATE:
handleIDCMPUpdate();
break;
case IDCMP_LONELYMESSAGE:
break;
default:
break;
}
}
}
while ( msg = (struct IntuiMessage *)GT_GetIMsg( wnd->UserPort ) )
GT_ReplyIMsg( msg );
}
VOID handleNewPrefs()
{
}
VOID handleIntuiTicks()
{
}
VOID handleIDCMPUpdate()
{
}