@@ -39,8 +39,6 @@ typedef struct TickerListNode {
3939} TickerListNode;
4040
4141static int dequeueInputEvent ();
42- static void pauseGame ();
43- static int pauseHandlerDefaultImpl ();
4442static void screenshotBlitter (unsigned char * src, int src_pitch, int a3, int x, int y, int width, int height, int dest_x, int dest_y);
4543static void buildNormalizedQwertyKeys ();
4644static void _GNW95_process_key (KeyboardData* data);
@@ -73,18 +71,12 @@ static int _input_mx;
7371// 0x6AC754
7472static int _input_my;
7573
76- // 0x6AC75C
77- static bool gPaused ;
78-
7974// 0x6AC760
8075static int gScreenshotKeyCode ;
8176
8277// 0x6AC764
8378static int _using_msec_timer;
8479
85- // 0x6AC768
86- static int gPauseKeyCode ;
87-
8880// 0x6AC76C
8981static ScreenshotHandler* gScreenshotHandler ;
9082
@@ -94,9 +86,6 @@ static int gInputEventQueueReadIndex;
9486// 0x6AC774
9587static unsigned char * gScreenshotBuffer ;
9688
97- // 0x6AC778
98- static PauseHandler* gPauseHandler ;
99-
10089// 0x6AC77C
10190static int gInputEventQueueWriteIndex ;
10291
@@ -137,9 +126,6 @@ int inputInit(int a1)
137126 _input_mx = -1 ;
138127 _input_my = -1 ;
139128 gRunLoopDisabled = 0 ;
140- gPaused = false ;
141- gPauseKeyCode = KEY_ALT_P;
142- gPauseHandler = pauseHandlerDefaultImpl;
143129 gScreenshotHandler = screenshotHandlerDefaultImpl;
144130 gTickerListHead = nullptr ;
145131 gScreenshotKeyCode = KEY_ALT_C;
@@ -223,11 +209,6 @@ void enqueueInputEvent(int a1)
223209 return ;
224210 }
225211
226- if (a1 == gPauseKeyCode ) {
227- pauseGame ();
228- return ;
229- }
230-
231212 if (a1 == gScreenshotKeyCode ) {
232213 takeScreenshot ();
233214 return ;
@@ -290,10 +271,6 @@ void inputEventQueueReset()
290271// 0x4C8D1C
291272void tickersExecute ()
292273{
293- if (gPaused ) {
294- return ;
295- }
296-
297274 if (gRunLoopDisabled ) {
298275 return ;
299276 }
@@ -363,74 +340,6 @@ void tickersDisable()
363340 gRunLoopDisabled = true ;
364341}
365342
366- // 0x4C8DFC
367- static void pauseGame ()
368- {
369- if (!gPaused ) {
370- gPaused = true ;
371-
372- int win = gPauseHandler ();
373-
374- while (inputGetInput () != KEY_ESCAPE) {
375- }
376-
377- gPaused = false ;
378- windowDestroy (win);
379- }
380- }
381-
382- // 0x4C8E38
383- static int pauseHandlerDefaultImpl ()
384- {
385- int windowWidth = fontGetStringWidth (" Paused" ) + 32 ;
386- int windowHeight = 3 * fontGetLineHeight () + 16 ;
387-
388- int win = windowCreate ((rectGetWidth (&_scr_size) - windowWidth) / 2 ,
389- (rectGetHeight (&_scr_size) - windowHeight) / 2 ,
390- windowWidth,
391- windowHeight,
392- 256 ,
393- WINDOW_MODAL | WINDOW_MOVE_ON_TOP);
394- if (win == -1 ) {
395- return -1 ;
396- }
397-
398- windowDrawBorder (win);
399-
400- unsigned char * windowBuffer = windowGetBuffer (win);
401- fontDrawText (windowBuffer + 8 * windowWidth + 16 ,
402- " Paused" ,
403- windowWidth,
404- windowWidth,
405- _colorTable[31744 ]);
406-
407- _win_register_text_button (win,
408- (windowWidth - fontGetStringWidth (" Done" ) - 16 ) / 2 ,
409- windowHeight - 8 - fontGetLineHeight () - 6 ,
410- -1 ,
411- -1 ,
412- -1 ,
413- KEY_ESCAPE,
414- " Done" ,
415- 0 );
416-
417- windowRefresh (win);
418-
419- return win;
420- }
421-
422- // 0x4C8F34
423- void pauseHandlerConfigure (int keyCode, PauseHandler* handler)
424- {
425- gPauseKeyCode = keyCode;
426-
427- if (handler == nullptr ) {
428- handler = pauseHandlerDefaultImpl;
429- }
430-
431- gPauseHandler = handler;
432- }
433-
434343// 0x4C8F4C
435344void takeScreenshot ()
436345{
0 commit comments