Ticket #7975: gui_readme_kb_shortcuts.diff

File gui_readme_kb_shortcuts.diff, 3.7 KB (added by SF/isnothere, 22 years ago)

includes previous patches

  • gui.cpp

    RCS file: /cvsroot/scummvm/scummvm/gui.cpp,v
    retrieving revision 1.50
    diff -u -r1.50 gui.cpp
     
    1616 * along with this program; if not, write to the Free Software
    1717 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
    1818 *
    19  * $Header: /cvsroot/scummvm/scummvm/gui.cpp,v 1.50 2002/06/27 14:10:56 yazoo Exp $
     19 * $Header: /cvsroot/scummvm/scummvm/gui.cpp,v 1.51 2002/06/30 13:33:49 ender Exp $
    2020 */
    2121
    2222#include "stdafx.h"
     
    968968        if (_s->_mouseButStat & MBS_LEFT_CLICK) {
    969969                leftMouseClick(_s->mouse.x, _s->mouse.y);
    970970        } else if (_s->_lastKeyHit) {
    971                 if (_dialog != KEYS_DIALOG)
    972                         addLetter((unsigned char)_s->_lastKeyHit);
     971                if (_dialog != KEYS_DIALOG) {
     972                        if (_s->_lastKeyHit == 27)
     973                                close();
     974                        else if (_dialog == SAVELOAD_DIALOG) {
     975                                switch (_s->_lastKeyHit) {
     976                                case 111:
     977                                case 79:
     978                                        // o = options
     979                                        options();
     980                                        draw(0,100);
     981                                        break;
     982                                case 115:
     983                                case 83:
     984                                        // s = save
     985                                        _cur_page = 2;
     986                                        getSavegameNames(1); // 0 is reserved for autosave - start at 1
     987                                        draw(0, 100);
     988                                        break;
     989                                case 108:
     990                                case 76:
     991                                        // l = load
     992                                        _cur_page = 1;
     993                                        getSavegameNames(0);
     994                                        draw(0, 100);
     995                                        break;
     996                                case 112:
     997                                case 80:
     998                                        // p = play
     999                                        close();
     1000                                        break;
     1001                                case 113:
     1002                                case 81:
     1003                                        // q = quit
     1004                                        exit(1);
     1005                                        break;
     1006                                }
     1007                            } else if (_dialog == OPTIONS_DIALOG) {
     1008                                switch(_s->_lastKeyHit) {
     1009                                    case 115:
     1010                                    case 83:
     1011                                        // s for Sound
     1012                                        handleCommand(1);
     1013                                        break;
     1014                                    case 107:
     1015                                    case 75:
     1016                                        // k for Keys
     1017                                        handleCommand(2);
     1018                                        break;
     1019                                    case 97:
     1020                                    case 65:
     1021                                        // a for About
     1022                                        handleCommand(3);
     1023                                        break;
     1024                                }
     1025                            } else
     1026                                addLetter((unsigned char)_s->_lastKeyHit);
    9731027#ifdef _WIN32_WCE
    974                 else if (_s->_lastKeyHit > 1000)        // GAPI
     1028                } else if (_s->_lastKeyHit > 1000) {    // GAPI
    9751029                        addLetter(_s->_lastKeyHit - 1000);
    9761030#endif
    977 
     1031                }
    9781032        }
    9791033
    9801034        if (_clickTimer && !--_clickTimer) {
  • readme.txt

    RCS file: /cvsroot/scummvm/scummvm/readme.txt,v
    retrieving revision 1.65
    diff -u -r1.65 readme.txt
     
    254254-----------------
    255255        Ctrl 0-9 and Shift 0-9   - load and save games
    256256        Ctrl-Alt 1-7             - cycles between graphics filters
    257         Ctrl-z                   - quits
     257        Ctrl-z or Alt-x          - quits
    258258        Ctrl-f                   - runs in fast mode.
    259259        Ctrl-g                   - runs in really REALLY fast mode.
    260260        Ctrl-d                   - starts the debugger.
     
    265265        Space                    - pauses
    266266        Period (.)               - skips current line of text in some games
    267267        Alt-Enter                - toggles full screen/windowed
     268        Enter                    - Left Mouse Button Press
     269        Tab                      - Right Mouse Button Press
     270        Keyboard Arrow Keys      - Mouse Movement
     271
     272In Save/Load Dialog:
     273        s                        - Save Game
     274        l                        - Load Game
     275        p or ESC                 - Play
     276        o                        - Options
     277        q                        - Quit
     278
     279In Options Dialog:
     280        s                        - Sound
     281        k                        - Keys
     282        a                        - About
    268283
    269284Note that using ctrl-f and ctrl-g are not recommended: Games can crash when
    270285being ran faster than their normal speed, as scripts will loose syncronisation