mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-13 07:14:59 +00:00
HDB: Convert FPS to Millis for double click check
This commit is contained in:
parent
ae17affac0
commit
a69f6afe10
@ -413,7 +413,12 @@ void HDBGame::setTargetXY(int x, int y) {
|
||||
if (x == px && y == py) {
|
||||
static uint32 dblClickTimer = 0;
|
||||
|
||||
if (dblClickTimer && ((int)(g_system->getMillis() - dblClickTimer) < (int)(kGameFPS * 5))) {
|
||||
if (dblClickTimer) {
|
||||
debug("Double Click Timer: %d", dblClickTimer);
|
||||
debug("Click Timer Diff: %d", (int)(g_system->getMillis() - dblClickTimer));
|
||||
}
|
||||
|
||||
if (dblClickTimer && ((int)(g_system->getMillis() - dblClickTimer) < (int)(kGameFPS * 5 * 1000 / 60))) {
|
||||
g_hdb->_window->openInventory();
|
||||
dblClickTimer = 0;
|
||||
} else
|
||||
|
Loading…
x
Reference in New Issue
Block a user