Ticket #8777: no_dbltap_2.patch

File no_dbltap_2.patch, 4.2 KB (added by spookypeanut, 17 years ago)

Updated patch

  • backends/platform/wince/wince-sdl.h

     
    202202        bool _zoomUp;                   // zooming up mode
    203203        bool _zoomDown;                 // zooming down mode
    204204
     205        bool _dbltapRClick;             // true if double tap should emulate a rmb click
    205206        bool _rbutton;                  // double tap -> right button simulation
    206207        bool _closeClick;               // flag when taps are spatially close together
    207208
  • backends/platform/wince/wince-sdl.cpp

     
    457457
    458458
    459459OSystem_WINCE3::OSystem_WINCE3() : OSystem_SDL(),
    460         _orientationLandscape(0), _newOrientation(0), _panelInitialized(false),
     460        _orientationLandscape(0), _newOrientation(0), _panelInitialized(false), _dbltapRClick(true),
    461461        _panelVisible(true), _panelStateForced(false), _forceHideMouse(false), _unfilteredkeys(false),
    462462        _freeLook(false), _forcePanelInvisible(false), _toolbarHighDrawn(false), _zoomUp(false), _zoomDown(false),
    463463        _scalersChanged(false), _lastKeyPressed(0), _tapTime(0), _closeClick(false),
     
    10471047                }
    10481048        }
    10491049
     1050        _dbltapRClick = !(ConfMan.hasKey("no_doubletap_rightclick") && ConfMan.getBool("no_doubletap_rightclick"));
     1051
    10501052        get_sample_rate();
    10511053}
    10521054
     
    23122314                                        if (_closeClick && (GetTickCount() - _tapTime < 1000)) {
    23132315                                                if (event.mouse.y <= 20 && _panelInitialized) {         // top of screen (show panel)
    23142316                                                        swap_panel_visibility();
    2315                                                 } else {                // right click
     2317                                                } else if (_dbltapRClick) {             // right click
    23162318                                                        event.type = Common::EVENT_RBUTTONDOWN;
    23172319                                                        _rbutton = true;
    23182320                                                }
  • backends/platform/wince/README-WinCE.txt

     
    301301
    302302Game specific sections (f.e. [monkey2]) - performance options
    303303
    304  *  high_sample_rate       bool     Desktop quality (22 kHz) sound output if set.
     304 *  high_sample_rate         bool   Desktop quality (22 kHz) sound output if set.
    305305                                    11 kHz otherwise.  The default is 11 kHz.
    306306                                    If you have a fast device, you can set this to
    307307                                    true to enjoy better sound effects and music.
    308  *  FM_high_quality        bool     Desktop quality FM synthesis if set. Lower
     308 *  FM_high_quality          bool   Desktop quality FM synthesis if set. Lower
    309309                                    quality otherwise. The default is low quality.
    310310                                    You can change this if you have a fast device.
    311  *  sound_thread_priority  int      Set the priority of the sound thread (0, 1, 2).
     311 *  sound_thread_priority    int    Set the priority of the sound thread (0, 1, 2).
    312312                                    Depending on the release, this is set to 1
    313313                                    internally (above normal). If you get sound
    314314                                    stuttering try setting this to a higher value.
    315315                                    Set to 0 if your device is fast enough or if
    316316                                    you prefer better audio/video synchronization.
    317  *  Smush_force_redraw     int      Force a Smush frame redraw every X missed
     317 *  Smush_force_redraw       int    Force a Smush frame redraw every X missed
    318318                                    frames. Mainly used for Full Throttle action
    319319                                    sequences. Setting it lower gives more
    320320                                    priority to screen redraws. Setting it higher
    321321                                    gives more priority to stylus/keyboard input.
    322322                                    The default is 30.
     323 *  no_doubletap_rightclick  int    Turn off the default behaviour of simulating a
     324                                    right-click when the screen is double-tapped.
    323325
     326
    324327Game specific sections (f.e. [monkey2]) - game options
    325328
    326329 *  landscape              int      0: Portrait, 1: Landscape, 2: Inverse Landscape