MCPcopy Create free account
hub / github.com/TASEmulators/fceux / BlockingCheck

Function BlockingCheck

src/drivers/win/main.cpp:326–466  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

324}
325
326int BlockingCheck()
327{
328 MSG msg;
329 moocow = 1;
330
331 while(PeekMessage(&msg, 0, 0, 0, PM_NOREMOVE))
332 {
333 if(GetMessage(&msg, 0, 0, 0) > 0)
334 {
335 //other accelerator capable dialogs could be added here
336 int handled = 0;
337
338 // Cheat console
339 if(hCheat && IsChild(hCheat, msg.hwnd))
340 handled = IsDialogMessage(hCheat, &msg);
341
342 // Hex Editor -> Find
343 if(!handled && hMemFind && IsChild(hMemFind, msg.hwnd))
344 handled = IsDialogMessage(hMemFind, &msg);
345
346 // Memory Watch
347 extern HWND hwndMemWatch;
348 if(!handled && hwndMemWatch)
349 {
350 if(IsChild(hwndMemWatch, msg.hwnd))
351 handled = TranslateAccelerator(hwndMemWatch, fceu_hAccel, &msg);
352 if(!handled)
353 handled = IsDialogMessage(hwndMemWatch,&msg);
354 }
355
356 // RAM Search
357 if(!handled && RamSearchHWnd && IsChild(RamSearchHWnd, msg.hwnd))
358 handled = IsDialogMessage(RamSearchHWnd, &msg);
359
360 // RAM_Watch
361 if(!handled && RamWatchHWnd)
362 if(handled = IsDialogMessage(RamWatchHWnd, &msg))
363 if(msg.message == WM_KEYDOWN) // send keydown messages to the dialog (for accelerators, and also needed for the Alt key to work)
364 SendMessage(RamWatchHWnd, msg.message, msg.wParam, msg.lParam);
365
366 // TAS Editor
367 if(!handled && taseditorWindow.hwndTASEditor)
368 {
369 if(taseditorEnableAcceleratorKeys)
370 if(IsChild(taseditorWindow.hwndTASEditor, msg.hwnd))
371 handled = TranslateAccelerator(taseditorWindow.hwndTASEditor, fceu_hAccel, &msg);
372 if(!handled){
373 handled = IsDialogMessage(taseditorWindow.hwndTASEditor, &msg);
374 }
375 }
376
377 // TAS Editor -> Find Node
378 if(!handled && taseditorWindow.hwndFindNote && IsChild(taseditorWindow.hwndFindNote, msg.hwnd))
379 handled = IsDialogMessage(taseditorWindow.hwndFindNote, &msg);
380
381 // Sound Config
382 extern HWND uug;
383 if(!handled && uug && IsChild(uug, msg.hwnd))

Callers 1

UpdateFCEUWindowFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected