1 ///////////////////////////////////////////////
3 ///////////////////////
4 // This file belongs to dpmod/darkplaces
5 // AK contains all menu functions (especially the required ones)
6 ///////////////////////////////////////////////
26 // required menu functions
27 void(float keynr, float ascii) m_keydown =
32 // let also the gfx and sound know
33 gfx_keydown(keynr, ascii);
34 snd_keydown(keynr, ascii);
36 // actually only the menu may react on keydown messages
37 menu_keydown(keynr, ascii);
39 // let the editor also know
40 //editor_keydown(keynr, ascii);
66 // call m_frame cause draw is the only menu function called once per frame
69 // now the drawing code
72 // editor drawing code
75 // draw the cursor on top of the menu
78 // and now the gfx drawing code (for special fx)
88 // update isserver and clientstate
91 gamestatus = gamestatus | GAME_ISSERVER;
92 if(clientstate() == CS_CONNECTED)
93 gamestatus = gamestatus | GAME_CONNECTED;
95 gamestatus = gamestatus | GAME_DEVELOPER;
97 // redirect keyboard input
99 // stop the client getting mouse coords
100 setmousetarget(MT_MENU);
102 // let also the snd and gfx know (perhaps for sfx)
108 // let the menu manager know
109 menu_performreinit();
112 setkeydest(KEY_GAME);
113 setmousetarget(MT_CLIENT);
118 void(void) m_shutdown =
135 // make sure everything is reset
136 setkeydest(KEY_GAME);
137 setmousetarget(MT_CLIENT);