2008-08-11 23:08:21 +00:00
|
|
|
/* ScummVM - Graphic Adventure Engine
|
|
|
|
*
|
|
|
|
* ScummVM is the legal property of its developers, whose names
|
|
|
|
* are too numerous to list here. Please refer to the COPYRIGHT
|
|
|
|
* file distributed with this source distribution.
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
2014-02-18 02:34:21 +01:00
|
|
|
*
|
2008-08-11 23:08:21 +00:00
|
|
|
*/
|
|
|
|
|
2008-08-08 14:23:59 +00:00
|
|
|
#include "backends/keymapper/remap-dialog.h"
|
2008-09-30 13:51:01 +00:00
|
|
|
|
|
|
|
#ifdef ENABLE_KEYMAPPER
|
|
|
|
|
2017-08-11 13:57:28 +02:00
|
|
|
#include "backends/keymapper/action.h"
|
2017-08-11 15:32:18 +02:00
|
|
|
#include "backends/keymapper/keymapper.h"
|
2017-08-13 13:59:00 +02:00
|
|
|
#include "backends/keymapper/input-watcher.h"
|
2017-08-11 13:57:28 +02:00
|
|
|
|
2011-04-29 13:15:54 +02:00
|
|
|
#include "common/system.h"
|
2010-11-16 10:19:01 +00:00
|
|
|
#include "gui/gui-manager.h"
|
2010-11-16 10:11:57 +00:00
|
|
|
#include "gui/widgets/popup.h"
|
|
|
|
#include "gui/widgets/scrollbar.h"
|
2009-01-18 14:46:53 +00:00
|
|
|
#include "gui/ThemeEval.h"
|
2010-06-15 11:02:42 +00:00
|
|
|
#include "common/translation.h"
|
|
|
|
|
2008-08-08 14:23:59 +00:00
|
|
|
namespace Common {
|
|
|
|
|
|
|
|
enum {
|
2008-08-15 01:22:09 +00:00
|
|
|
kRemapCmd = 'REMP',
|
2011-10-15 15:30:32 -05:00
|
|
|
kClearCmd = 'CLER',
|
2008-08-15 01:22:09 +00:00
|
|
|
kCloseCmd = 'CLOS'
|
2008-08-08 14:23:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
RemapDialog::RemapDialog()
|
2017-08-13 16:35:58 +02:00
|
|
|
: Dialog("KeyMapper"), _topAction(0), _remapTimeout(0), _topKeymapIsGui(false), _remapAction(nullptr) {
|
2008-08-08 14:23:59 +00:00
|
|
|
|
|
|
|
_keymapper = g_system->getEventManager()->getKeymapper();
|
|
|
|
assert(_keymapper);
|
|
|
|
|
2017-08-13 13:59:00 +02:00
|
|
|
EventDispatcher *eventDispatcher = g_system->getEventManager()->getEventDispatcher();
|
|
|
|
_remapInputWatcher = new InputWatcher(eventDispatcher, _keymapper);
|
|
|
|
|
2010-06-15 11:02:42 +00:00
|
|
|
_kmPopUpDesc = new GUI::StaticTextWidget(this, "KeyMapper.PopupDesc", _("Keymap:"));
|
2009-06-12 08:00:26 +00:00
|
|
|
_kmPopUp = new GUI::PopUpWidget(this, "KeyMapper.Popup");
|
2008-08-13 19:24:52 +00:00
|
|
|
|
|
|
|
_scrollBar = new GUI::ScrollBarWidget(this, 0, 0, 0, 0);
|
2008-08-15 01:22:09 +00:00
|
|
|
|
2019-12-28 10:43:58 +01:00
|
|
|
GUI::ContainerWidget *keymapArea = new GUI::ContainerWidget(this, "KeyMapper.KeymapArea");
|
|
|
|
keymapArea->setBackgroundType(GUI::ThemeEngine::kWidgetBackgroundNo);
|
|
|
|
|
2010-06-15 11:02:42 +00:00
|
|
|
new GUI::ButtonWidget(this, "KeyMapper.Close", _("Close"), 0, kCloseCmd);
|
2008-08-13 19:24:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
RemapDialog::~RemapDialog() {
|
2017-08-13 13:59:00 +02:00
|
|
|
delete _remapInputWatcher;
|
2008-08-13 19:24:52 +00:00
|
|
|
}
|
2008-08-13 11:46:08 +00:00
|
|
|
|
2008-08-13 19:24:52 +00:00
|
|
|
void RemapDialog::open() {
|
2017-08-13 16:35:58 +02:00
|
|
|
_keymapTable = _keymapper->getKeymaps();
|
2009-05-10 17:18:59 +00:00
|
|
|
|
2017-08-13 16:35:58 +02:00
|
|
|
debug(3, "RemapDialog::open keymaps: %d", _keymapTable.size());
|
2012-02-09 02:10:19 -06:00
|
|
|
|
2017-08-13 16:35:58 +02:00
|
|
|
// Show the keymaps by order of priority (game keymaps first)
|
|
|
|
for (int i = _keymapTable.size() - 1; i >= 0; i--) {
|
|
|
|
_kmPopUp->appendEntry(_keymapTable[i]->getName(), i);
|
2008-08-08 14:23:59 +00:00
|
|
|
}
|
|
|
|
|
2008-08-13 22:20:18 +00:00
|
|
|
_changes = false;
|
|
|
|
|
|
|
|
Dialog::open();
|
2008-08-14 01:42:02 +00:00
|
|
|
|
|
|
|
_kmPopUp->setSelected(0);
|
|
|
|
loadKeymap();
|
2008-08-08 14:23:59 +00:00
|
|
|
}
|
|
|
|
|
2008-08-13 19:24:52 +00:00
|
|
|
void RemapDialog::close() {
|
|
|
|
_kmPopUp->clearEntries();
|
2009-05-10 17:18:59 +00:00
|
|
|
|
2009-05-10 18:04:47 +00:00
|
|
|
if (_changes)
|
2008-08-14 01:42:02 +00:00
|
|
|
ConfMan.flushToDisk();
|
2009-05-10 17:18:59 +00:00
|
|
|
|
2008-08-13 19:24:52 +00:00
|
|
|
Dialog::close();
|
|
|
|
}
|
|
|
|
|
|
|
|
void RemapDialog::reflowLayout() {
|
2009-01-18 14:46:53 +00:00
|
|
|
Dialog::reflowLayout();
|
|
|
|
|
|
|
|
int buttonHeight = g_gui.xmlEval()->getVar("Globals.Button.Height", 0);
|
|
|
|
int scrollbarWidth = g_gui.xmlEval()->getVar("Globals.Scrollbar.Width", 0);
|
|
|
|
|
2009-05-09 22:36:57 +00:00
|
|
|
int16 areaX, areaY;
|
|
|
|
uint16 areaW, areaH;
|
2011-12-30 15:28:46 -06:00
|
|
|
g_gui.xmlEval()->getWidgetData((const String&)String("KeyMapper.KeymapArea"), areaX, areaY, areaW, areaH);
|
|
|
|
|
2009-06-12 08:00:26 +00:00
|
|
|
int spacing = g_gui.xmlEval()->getVar("Globals.KeyMapper.Spacing");
|
2011-10-15 15:30:32 -05:00
|
|
|
int keyButtonWidth = g_gui.xmlEval()->getVar("Globals.KeyMapper.ButtonWidth");
|
|
|
|
int clearButtonWidth = g_gui.xmlEval()->getVar("Globals.Line.Height");
|
|
|
|
int clearButtonHeight = g_gui.xmlEval()->getVar("Globals.Line.Height");
|
2009-05-09 22:36:57 +00:00
|
|
|
|
2011-12-30 15:28:46 -06:00
|
|
|
int colWidth = areaW - scrollbarWidth;
|
|
|
|
int labelWidth = colWidth - (keyButtonWidth + spacing + clearButtonWidth + spacing);
|
2009-05-09 22:36:57 +00:00
|
|
|
|
2008-08-13 19:24:52 +00:00
|
|
|
_rowCount = (areaH + spacing) / (buttonHeight + spacing);
|
2012-02-04 20:45:05 -06:00
|
|
|
debug(7, "rowCount = %d" , _rowCount);
|
2011-12-30 15:28:46 -06:00
|
|
|
if (colWidth <= 0 || _rowCount <= 0)
|
2009-05-31 10:02:16 +00:00
|
|
|
error("Remap dialog too small to display any keymaps");
|
2008-08-18 15:13:55 +00:00
|
|
|
|
2008-08-13 19:24:52 +00:00
|
|
|
_scrollBar->resize(areaX + areaW - scrollbarWidth, areaY, scrollbarWidth, areaH);
|
|
|
|
_scrollBar->_entriesPerPage = _rowCount;
|
|
|
|
_scrollBar->_numEntries = 1;
|
|
|
|
_scrollBar->recalc();
|
|
|
|
|
|
|
|
uint textYOff = (buttonHeight - kLineHeight) / 2;
|
2011-10-15 15:30:32 -05:00
|
|
|
uint clearButtonYOff = (buttonHeight - clearButtonHeight) / 2;
|
2008-08-13 19:24:52 +00:00
|
|
|
uint oldSize = _keymapWidgets.size();
|
2011-12-30 15:28:46 -06:00
|
|
|
uint newSize = _rowCount;
|
2009-05-10 17:18:59 +00:00
|
|
|
|
2008-08-13 19:24:52 +00:00
|
|
|
_keymapWidgets.reserve(newSize);
|
2009-05-10 17:18:59 +00:00
|
|
|
|
2008-08-13 19:24:52 +00:00
|
|
|
for (uint i = 0; i < newSize; i++) {
|
|
|
|
ActionWidgets widg;
|
2009-05-10 17:18:59 +00:00
|
|
|
|
2008-08-13 19:24:52 +00:00
|
|
|
if (i >= _keymapWidgets.size()) {
|
2009-05-24 15:17:42 +00:00
|
|
|
widg.actionText =
|
2011-12-30 15:51:08 -06:00
|
|
|
new GUI::StaticTextWidget(this, 0, 0, 0, 0, "", Graphics::kTextAlignLeft);
|
2009-05-24 15:17:42 +00:00
|
|
|
widg.keyButton =
|
2010-06-15 11:02:42 +00:00
|
|
|
new GUI::ButtonWidget(this, 0, 0, 0, 0, "", 0, kRemapCmd + i);
|
2011-12-30 13:13:41 -06:00
|
|
|
widg.clearButton = addClearButton(this, "", kClearCmd + i, 0, 0, clearButtonWidth, clearButtonHeight);
|
2008-08-13 19:24:52 +00:00
|
|
|
_keymapWidgets.push_back(widg);
|
|
|
|
} else {
|
|
|
|
widg = _keymapWidgets[i];
|
|
|
|
}
|
2009-05-10 17:18:59 +00:00
|
|
|
|
2011-12-30 15:28:46 -06:00
|
|
|
uint x = areaX;
|
|
|
|
uint y = areaY + (i) * (buttonHeight + spacing);
|
2009-05-10 17:18:59 +00:00
|
|
|
|
2011-12-30 15:51:08 -06:00
|
|
|
widg.keyButton->resize(x, y, keyButtonWidth, buttonHeight);
|
|
|
|
widg.clearButton->resize(x + keyButtonWidth + spacing, y + clearButtonYOff, clearButtonWidth, clearButtonHeight);
|
|
|
|
widg.actionText->resize(x + keyButtonWidth + spacing + clearButtonWidth + spacing, y + textYOff, labelWidth, kLineHeight);
|
|
|
|
|
2008-08-13 19:24:52 +00:00
|
|
|
}
|
|
|
|
while (oldSize > newSize) {
|
|
|
|
ActionWidgets widg = _keymapWidgets.remove_at(--oldSize);
|
2009-05-10 17:18:59 +00:00
|
|
|
|
2008-08-13 19:24:52 +00:00
|
|
|
removeWidget(widg.actionText);
|
|
|
|
delete widg.actionText;
|
2009-05-10 17:18:59 +00:00
|
|
|
|
2008-08-13 19:24:52 +00:00
|
|
|
removeWidget(widg.keyButton);
|
|
|
|
delete widg.keyButton;
|
2011-10-15 15:30:32 -05:00
|
|
|
|
|
|
|
removeWidget(widg.clearButton);
|
|
|
|
delete widg.clearButton;
|
2008-08-13 19:24:52 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2008-08-08 14:23:59 +00:00
|
|
|
void RemapDialog::handleCommand(GUI::CommandSender *sender, uint32 cmd, uint32 data) {
|
2011-10-15 15:30:32 -05:00
|
|
|
debug(3, "RemapDialog::handleCommand %u %u", cmd, data);
|
2009-05-12 20:40:15 +00:00
|
|
|
|
2008-08-13 11:46:08 +00:00
|
|
|
if (cmd >= kRemapCmd && cmd < kRemapCmd + _keymapWidgets.size()) {
|
|
|
|
startRemapping(cmd - kRemapCmd);
|
2011-10-15 15:30:32 -05:00
|
|
|
} else if (cmd >= kClearCmd && cmd < kClearCmd + _keymapWidgets.size()) {
|
|
|
|
clearMapping(cmd - kClearCmd);
|
2008-08-08 14:23:59 +00:00
|
|
|
} else if (cmd == GUI::kPopUpItemSelectedCmd) {
|
2008-08-11 23:08:21 +00:00
|
|
|
loadKeymap();
|
|
|
|
} else if (cmd == GUI::kSetPositionCmd) {
|
2008-08-13 11:46:08 +00:00
|
|
|
refreshKeymap();
|
2008-08-15 01:22:09 +00:00
|
|
|
} else if (cmd == kCloseCmd) {
|
|
|
|
close();
|
2008-08-08 14:23:59 +00:00
|
|
|
} else {
|
|
|
|
GUI::Dialog::handleCommand(sender, cmd, data);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2011-10-15 15:30:32 -05:00
|
|
|
void RemapDialog::clearMapping(uint i) {
|
|
|
|
if (_topAction + i >= _currentActions.size())
|
|
|
|
return;
|
|
|
|
|
|
|
|
debug(3, "clear the mapping %u", i);
|
2017-08-13 16:35:58 +02:00
|
|
|
Action *activeRemapAction = _currentActions[_topAction + i];
|
2017-08-11 13:57:28 +02:00
|
|
|
_keymapper->clearMapping(activeRemapAction);
|
2011-10-15 15:30:32 -05:00
|
|
|
_changes = true;
|
|
|
|
|
2017-08-13 13:59:00 +02:00
|
|
|
stopRemapping();
|
2011-10-15 15:30:32 -05:00
|
|
|
refreshKeymap();
|
|
|
|
}
|
|
|
|
|
2008-08-13 11:46:08 +00:00
|
|
|
void RemapDialog::startRemapping(uint i) {
|
2009-05-10 17:18:59 +00:00
|
|
|
if (_topAction + i >= _currentActions.size())
|
2009-05-24 15:17:42 +00:00
|
|
|
return;
|
2009-05-10 17:18:59 +00:00
|
|
|
|
2017-08-13 13:59:00 +02:00
|
|
|
if (_remapInputWatcher->isWatching()) {
|
2014-02-20 01:06:50 -05:00
|
|
|
// Handle a second click on the button as a stop to remapping
|
2017-08-13 13:59:00 +02:00
|
|
|
stopRemapping();
|
2014-02-20 01:06:50 -05:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2017-08-13 16:35:58 +02:00
|
|
|
_remapAction = _currentActions[_topAction + i];
|
2010-03-18 15:05:14 +00:00
|
|
|
_remapTimeout = g_system->getMillis() + kRemapTimeoutDelay;
|
2017-08-13 13:59:00 +02:00
|
|
|
_remapInputWatcher->startWatching();
|
|
|
|
|
2008-08-13 11:46:08 +00:00
|
|
|
_keymapWidgets[i].keyButton->setLabel("...");
|
2018-01-06 14:40:02 +01:00
|
|
|
_keymapWidgets[i].keyButton->markAsDirty();
|
2008-08-08 14:23:59 +00:00
|
|
|
}
|
|
|
|
|
2017-08-13 13:59:00 +02:00
|
|
|
void RemapDialog::stopRemapping() {
|
2008-08-13 14:33:17 +00:00
|
|
|
_topAction = -1;
|
2017-08-13 13:59:00 +02:00
|
|
|
_remapAction = nullptr;
|
2009-05-10 17:18:59 +00:00
|
|
|
|
2008-08-08 14:23:59 +00:00
|
|
|
refreshKeymap();
|
2009-05-10 17:18:59 +00:00
|
|
|
|
2017-08-13 13:59:00 +02:00
|
|
|
_remapInputWatcher->stopWatching();
|
2008-08-08 14:23:59 +00:00
|
|
|
}
|
|
|
|
|
2017-08-13 13:59:00 +02:00
|
|
|
void RemapDialog::handleMouseDown(int x, int y, int button, int clickCount) {
|
|
|
|
if (_remapInputWatcher->isWatching())
|
|
|
|
stopRemapping();
|
|
|
|
else
|
|
|
|
Dialog::handleMouseDown(x, y, button, clickCount);
|
2009-05-12 20:40:15 +00:00
|
|
|
}
|
|
|
|
|
2017-08-13 13:59:00 +02:00
|
|
|
void RemapDialog::handleTickle() {
|
|
|
|
const HardwareInput *hardwareInput = _remapInputWatcher->checkForCapturedInput();
|
|
|
|
if (hardwareInput) {
|
|
|
|
_keymapper->registerMapping(_remapAction, hardwareInput);
|
2009-05-11 09:01:54 +00:00
|
|
|
|
2012-02-22 18:30:47 -06:00
|
|
|
_changes = true;
|
|
|
|
stopRemapping();
|
2008-08-08 14:23:59 +00:00
|
|
|
}
|
2008-08-13 14:33:17 +00:00
|
|
|
|
2017-08-13 13:59:00 +02:00
|
|
|
if (_remapInputWatcher->isWatching() && g_system->getMillis() > _remapTimeout)
|
2008-08-13 14:33:17 +00:00
|
|
|
stopRemapping();
|
|
|
|
Dialog::handleTickle();
|
2008-08-08 14:23:59 +00:00
|
|
|
}
|
|
|
|
|
2008-08-11 23:08:21 +00:00
|
|
|
void RemapDialog::loadKeymap() {
|
2008-08-13 11:46:08 +00:00
|
|
|
_currentActions.clear();
|
2012-02-09 02:42:53 -06:00
|
|
|
|
2017-08-13 16:35:58 +02:00
|
|
|
if (_kmPopUp->getSelected() != -1) {
|
2012-02-20 12:26:25 -06:00
|
|
|
// This is the regular view of a keymap that isn't the topmost one.
|
|
|
|
// It shows all of that keymap's actions
|
|
|
|
|
2008-08-14 19:20:25 +00:00
|
|
|
Keymap *km = _keymapTable[_kmPopUp->getSelectedTag()];
|
2008-08-11 23:08:21 +00:00
|
|
|
|
2012-02-15 00:06:13 -06:00
|
|
|
List<Action *>::iterator it;
|
2009-05-10 17:18:59 +00:00
|
|
|
|
2010-01-03 19:37:43 +00:00
|
|
|
for (it = km->getActions().begin(); it != km->getActions().end(); ++it) {
|
2017-08-13 16:35:58 +02:00
|
|
|
_currentActions.push_back(*it);
|
2008-08-13 11:46:08 +00:00
|
|
|
}
|
2008-08-08 14:23:59 +00:00
|
|
|
}
|
|
|
|
|
2008-08-13 11:46:08 +00:00
|
|
|
// refresh scroll bar
|
|
|
|
_scrollBar->_currentPos = 0;
|
2011-12-30 15:28:46 -06:00
|
|
|
_scrollBar->_numEntries = _currentActions.size();
|
2008-08-13 11:46:08 +00:00
|
|
|
_scrollBar->recalc();
|
2009-05-10 17:18:59 +00:00
|
|
|
|
2008-08-13 11:46:08 +00:00
|
|
|
// force refresh
|
|
|
|
_topAction = -1;
|
2008-08-11 23:08:21 +00:00
|
|
|
refreshKeymap();
|
2008-08-08 14:23:59 +00:00
|
|
|
}
|
|
|
|
|
2008-08-11 23:08:21 +00:00
|
|
|
void RemapDialog::refreshKeymap() {
|
2011-12-30 15:28:46 -06:00
|
|
|
int newTopAction = _scrollBar->_currentPos;
|
2009-05-10 17:18:59 +00:00
|
|
|
|
2009-01-21 02:28:14 +00:00
|
|
|
if (newTopAction == _topAction)
|
|
|
|
return;
|
2009-05-10 17:18:59 +00:00
|
|
|
|
2008-08-13 11:46:08 +00:00
|
|
|
_topAction = newTopAction;
|
|
|
|
|
2018-01-06 14:40:02 +01:00
|
|
|
//_container->markAsDirty();
|
|
|
|
_scrollBar->markAsDirty();
|
2008-08-13 11:46:08 +00:00
|
|
|
|
|
|
|
uint actionI = _topAction;
|
2009-05-10 17:18:59 +00:00
|
|
|
|
2008-08-13 11:46:08 +00:00
|
|
|
for (uint widgetI = 0; widgetI < _keymapWidgets.size(); widgetI++) {
|
2017-08-13 16:35:58 +02:00
|
|
|
ActionWidgets &widg = _keymapWidgets[widgetI];
|
2009-05-10 17:18:59 +00:00
|
|
|
|
2008-08-13 11:46:08 +00:00
|
|
|
if (actionI < _currentActions.size()) {
|
2011-10-15 15:30:32 -05:00
|
|
|
debug(8, "RemapDialog::refreshKeymap actionI=%u", actionI);
|
2017-08-13 16:35:58 +02:00
|
|
|
Action *action = _currentActions[actionI];
|
2009-05-10 17:18:59 +00:00
|
|
|
|
2017-08-13 16:35:58 +02:00
|
|
|
widg.actionText->setLabel(action->description);
|
2009-05-10 17:18:59 +00:00
|
|
|
|
2017-08-13 16:35:58 +02:00
|
|
|
Keymap *keymap = action->getParent();
|
2009-05-10 17:18:59 +00:00
|
|
|
|
2017-08-13 16:35:58 +02:00
|
|
|
const HardwareInput *mappedInput = keymap->getActionMapping(action);
|
2012-02-24 13:23:55 -06:00
|
|
|
if (mappedInput)
|
|
|
|
widg.keyButton->setLabel(mappedInput->description);
|
2008-08-13 11:46:08 +00:00
|
|
|
else
|
|
|
|
widg.keyButton->setLabel("-");
|
2009-05-10 17:18:59 +00:00
|
|
|
|
2009-01-21 02:28:14 +00:00
|
|
|
widg.actionText->setVisible(true);
|
|
|
|
widg.keyButton->setVisible(true);
|
2011-10-15 15:30:32 -05:00
|
|
|
widg.clearButton->setVisible(true);
|
2009-05-10 17:18:59 +00:00
|
|
|
|
2009-05-24 15:17:42 +00:00
|
|
|
actionI++;
|
2008-08-13 11:46:08 +00:00
|
|
|
} else {
|
2009-01-21 02:28:14 +00:00
|
|
|
widg.actionText->setVisible(false);
|
|
|
|
widg.keyButton->setVisible(false);
|
2011-10-15 15:30:32 -05:00
|
|
|
widg.clearButton->setVisible(false);
|
2008-08-13 11:46:08 +00:00
|
|
|
}
|
2008-08-11 23:08:21 +00:00
|
|
|
}
|
2017-08-13 16:35:58 +02:00
|
|
|
|
|
|
|
// need to redraw entire Dialog so that invisible widgets disappear
|
2018-01-06 16:13:29 +01:00
|
|
|
g_gui.scheduleTopDialogRedraw();
|
2008-08-11 23:08:21 +00:00
|
|
|
}
|
2008-08-08 14:23:59 +00:00
|
|
|
|
|
|
|
|
2009-10-04 21:26:33 +00:00
|
|
|
} // End of namespace Common
|
2008-09-30 13:51:01 +00:00
|
|
|
|
|
|
|
#endif // #ifdef ENABLE_KEYMAPPER
|