fix release keys on x11, remove ping addon, fix minor issue in outfit render, fix emblem updates

This commit is contained in:
Eduardo Bart
2012-01-15 23:55:14 -02:00
parent 44a20222bb
commit de0e4a1acf
11 changed files with 21 additions and 79 deletions

View File

@@ -91,6 +91,19 @@ void PlatformWindow::processKeyRelease(Fw::Key keyCode)
}
}
void PlatformWindow::releaseAllKeys()
{
for(auto it : m_keysState) {
Fw::Key keyCode = it.first;
bool pressed = it.second;
if(!pressed)
continue;
processKeyRelease(keyCode);
}
}
void PlatformWindow::fireKeysPress()
{
// avoid massive checks
@@ -119,4 +132,3 @@ void PlatformWindow::fireKeysPress()
}
}
}

View File

@@ -94,6 +94,7 @@ protected:
void processKeyDown(Fw::Key keyCode);
void processKeyRelease(Fw::Key keyCode);
void releaseAllKeys();
void fireKeysPress();
std::map<int, Fw::Key> m_keyMap;

View File

@@ -710,6 +710,7 @@ void X11Window::poll()
break;
case FocusOut:
m_focused = false;
releaseAllKeys();
break;
case Expose:
// window needs redraw