mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-02 00:42:24 +00:00
decreased double click interval
svn-id: r4905
This commit is contained in:
parent
78f2f9e505
commit
27bfe32f16
@ -153,7 +153,7 @@ void NewGui::loop()
|
||||
case OSystem::EVENT_LBUTTONDOWN:
|
||||
case OSystem::EVENT_RBUTTONDOWN: {
|
||||
uint32 time = _s->_system->get_msecs();
|
||||
if (_lastClick.count && (time < _lastClick.time + 1000)
|
||||
if (_lastClick.count && (time < _lastClick.time + kDoubleClickDelay)
|
||||
&& ABS(_lastClick.x - t.mouse.x) < 3
|
||||
&& ABS(_lastClick.y - t.mouse.y) < 3) {
|
||||
_lastClick.count++;
|
||||
|
@ -37,6 +37,10 @@ enum {
|
||||
kTextAlignRight,
|
||||
};
|
||||
|
||||
enum {
|
||||
kDoubleClickDelay = 500 // milliseconds
|
||||
};
|
||||
|
||||
// Extremly simple stack class, doesn't even do any error checking (for now)
|
||||
class DialogStack {
|
||||
protected:
|
||||
|
Loading…
x
Reference in New Issue
Block a user