diff options
author | TomFrost | 2011-09-25 14:13:47 -0400 |
---|---|---|
committer | TomFrost | 2011-09-25 14:13:47 -0400 |
commit | c958701c788217e93534deb6f5059e0a702531e8 (patch) | |
tree | a0e19d218780c870e22ff7e8f034cf1300c056c0 /backends/events/webossdl/webossdl-events.h | |
parent | 9467e4d8d4270deaa24e2d040f504fee82fc96ec (diff) | |
download | scummvm-rg350-c958701c788217e93534deb6f5059e0a702531e8.tar.gz scummvm-rg350-c958701c788217e93534deb6f5059e0a702531e8.tar.bz2 scummvm-rg350-c958701c788217e93534deb6f5059e0a702531e8.zip |
WebOS: Make right-clicks last longer.
While the right-click was working in most games, the
weapon-switching in Full Throttle wasn't registering the click.
Holding the button down for 50ms instead of immediately firing
the mouseup fixes the issue.
Diffstat (limited to 'backends/events/webossdl/webossdl-events.h')
-rw-r--r-- | backends/events/webossdl/webossdl-events.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/backends/events/webossdl/webossdl-events.h b/backends/events/webossdl/webossdl-events.h index a623a133b8..3c2679c4a1 100644 --- a/backends/events/webossdl/webossdl-events.h +++ b/backends/events/webossdl/webossdl-events.h @@ -35,15 +35,15 @@ public: }; WebOSSdlEventSource() : _gestureDown(false), - _dragStartTime(0), - _dragging(false), + _dragStartTime(0), _dragging(false), _curX(0), _curY(0), - _touchpadMode(false), - _autoDragMode(true), + _touchpadMode(false), _autoDragMode(true), _doClick(true), _queuedDragTime(0), _queuedEscapeUpTime(0), _queuedSpaceUpTime(0), + _queuedRUpTime(0), _firstPoll(true), - QUEUED_KEY_DELAY(250), QUEUED_DRAG_DELAY(500) { + QUEUED_KEY_DELAY(250), QUEUED_DRAG_DELAY(500), + QUEUED_RUP_DELAY(50) { for (int i = 0; i < MAX_FINGERS; i++) { _fingerDown[i] = false; _screenDownTime[i] = _dragDiffX[i] = _dragDiffY[i] = 0; @@ -84,11 +84,13 @@ protected: bool _firstPoll; // Event queues - uint32 _queuedDragTime, _queuedEscapeUpTime, _queuedSpaceUpTime; + uint32 _queuedDragTime, _queuedEscapeUpTime, _queuedSpaceUpTime, + _queuedRUpTime; // Standard event queue delays in milliseconds const int QUEUED_KEY_DELAY; const int QUEUED_DRAG_DELAY; + const int QUEUED_RUP_DELAY; virtual void SDLModToOSystemKeyFlags(SDLMod mod, Common::Event &event); virtual bool handleKeyDown(SDL_Event &ev, Common::Event &event); |