From 665e472ef0bf9cd38c92ebe58975cbda74241a07 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Sun, 10 May 2009 22:05:04 +0000 Subject: Keymapper: - Introduced new OSystem method getHardwareKeySet() with default implementation - Moved global keymap creation to base/main.cpp - Moved GUI keymap creation to gui/GuiManager.cpp - Added various safeguard checks to various keymapper methods Now it is really possible to add keymapper to all backends. svn-id: r40439 --- common/system.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'common') diff --git a/common/system.h b/common/system.h index fc5535a4dc..cadc035501 100644 --- a/common/system.h +++ b/common/system.h @@ -48,6 +48,7 @@ namespace Common { class TimerManager; class SeekableReadStream; class WriteStream; + class HardwareKeySet; } class FilesystemFactory; @@ -744,6 +745,15 @@ public: */ virtual Common::EventManager *getEventManager() = 0; + /** + * Register hardware keys with keymapper + * + * @return HardwareKeySet with all keys and recommended mappings + * + * See keymapper documentation for further reference. + */ + virtual Common::HardwareKeySet *getHardwareKeySet() { return 0; } + //@} -- cgit v1.2.3