decreased double click interval

svn-id: r4905
This commit is contained in:
Max Horn 2002-09-08 12:56:44 +00:00
parent 78f2f9e505
commit 27bfe32f16
2 changed files with 5 additions and 1 deletions

View File

@ -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++;

View File

@ -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: