* Parse keyboard commands and execute accordingly. */
| 790 | * Parse keyboard commands and execute accordingly. |
| 791 | */ |
| 792 | static void KeyboardCommands(void) |
| 793 | { |
| 794 | // get the keyboard input |
| 795 | |
| 796 | // check if the family keyboard is enabled |
| 797 | if (CurInputType[2] == SIFC_FKB) |
| 798 | { |
| 799 | if (g_fkbEnabled) |
| 800 | { |
| 801 | return; |
| 802 | } |
| 803 | } |
| 804 | |
| 805 | //if (g_keyState[SDL_SCANCODE_LSHIFT] || g_keyState[SDL_SCANCODE_RSHIFT]) |
| 806 | //{ |
| 807 | // is_shift = 1; |
| 808 | //} |
| 809 | //else |
| 810 | //{ |
| 811 | // is_shift = 0; |
| 812 | //} |
| 813 | |
| 814 | //if (g_keyState[SDL_SCANCODE_LALT] || g_keyState[SDL_SCANCODE_RALT]) |
| 815 | //{ |
| 816 | // is_alt = 1; |
| 817 | //} |
| 818 | //else |
| 819 | //{ |
| 820 | // is_alt = 0; |
| 821 | //} |
| 822 | |
| 823 | //if ( Hotkeys[HK_TOGGLE_BG].getRisingEdge() ) |
| 824 | //{ |
| 825 | // bool fgOn, bgOn; |
| 826 | |
| 827 | // FCEUI_GetRenderPlanes( fgOn, bgOn ); |
| 828 | |
| 829 | // FCEUI_SetRenderPlanes( fgOn, !bgOn ); |
| 830 | //} |
| 831 | |
| 832 | // Alt-Enter to toggle full-screen |
| 833 | // This is already handled by Qt Menu Actions |
| 834 | // So only process if menu is hidden or disabled. |
| 835 | //if ( is_alt ) |
| 836 | //{ |
| 837 | // if (keyonly (ENTER)) |
| 838 | // { |
| 839 | // if ( consoleWindow ) |
| 840 | // { |
| 841 | // if ( !consoleWindow->menuBar()->isVisible() ) |
| 842 | // { |
| 843 | // consoleWindow->toggleFullscreen(); |
| 844 | // } |
| 845 | // } |
| 846 | // } |
| 847 | //} |
| 848 | |
| 849 | // Alt-M to toggle Main Menu Visibility |
no test coverage detected