diff options
author | Stephen Kennedy | 2008-08-07 16:38:39 +0000 |
---|---|---|
committer | Stephen Kennedy | 2008-08-07 16:38:39 +0000 |
commit | 2645ca48ad9bc219b43ab88cc5b071952297a992 (patch) | |
tree | d1383869820354fb99560d630c0d694535d5ad61 | |
parent | 66e4e3ec1a038bc653bb1c04893c39033ac3fb62 (diff) | |
download | scummvm-rg350-2645ca48ad9bc219b43ab88cc5b071952297a992.tar.gz scummvm-rg350-2645ca48ad9bc219b43ab88cc5b071952297a992.tar.bz2 scummvm-rg350-2645ca48ad9bc219b43ab88cc5b071952297a992.zip |
* Moved VK code into backends/vkeybd
* Moved Keymapper code into backends/keymapper
svn-id: r33681
-rw-r--r-- | Makefile.common | 10 | ||||
-rw-r--r-- | backends/events/default/default-events.cpp | 4 | ||||
-rw-r--r-- | backends/keymapper/action.cpp (renamed from backends/common/action.cpp) | 4 | ||||
-rw-r--r-- | backends/keymapper/action.h (renamed from backends/common/action.h) | 0 | ||||
-rw-r--r-- | backends/keymapper/hardware-key.h (renamed from backends/common/hardware-key.h) | 2 | ||||
-rw-r--r-- | backends/keymapper/keymap-manager.cpp (renamed from backends/common/keymap-manager.cpp) | 2 | ||||
-rw-r--r-- | backends/keymapper/keymap-manager.h (renamed from backends/common/keymap-manager.h) | 4 | ||||
-rw-r--r-- | backends/keymapper/keymap.cpp (renamed from backends/common/keymap.cpp) | 4 | ||||
-rw-r--r-- | backends/keymapper/keymap.h (renamed from backends/common/keymap.h) | 2 | ||||
-rw-r--r-- | backends/keymapper/keymapper.cpp (renamed from backends/common/keymapper.cpp) | 2 | ||||
-rw-r--r-- | backends/keymapper/keymapper.h (renamed from backends/common/keymapper.h) | 6 | ||||
-rw-r--r-- | backends/module.mk | 16 | ||||
-rw-r--r-- | backends/platform/sdl/events.cpp | 2 | ||||
-rw-r--r-- | backends/vkeybd/image-map.cpp (renamed from common/image-map.cpp) | 2 | ||||
-rw-r--r-- | backends/vkeybd/image-map.h (renamed from common/image-map.h) | 2 | ||||
-rw-r--r-- | backends/vkeybd/polygon.cpp (renamed from common/polygon.cpp) | 2 | ||||
-rw-r--r-- | backends/vkeybd/polygon.h (renamed from common/polygon.h) | 0 | ||||
-rw-r--r-- | backends/vkeybd/virtual-keyboard-gui.cpp (renamed from backends/common/virtual-keyboard-gui.cpp) | 6 | ||||
-rw-r--r-- | backends/vkeybd/virtual-keyboard-gui.h (renamed from backends/common/virtual-keyboard-gui.h) | 2 | ||||
-rw-r--r-- | backends/vkeybd/virtual-keyboard-parser.cpp (renamed from backends/common/virtual-keyboard-parser.cpp) | 2 | ||||
-rw-r--r-- | backends/vkeybd/virtual-keyboard-parser.h (renamed from backends/common/virtual-keyboard-parser.h) | 2 | ||||
-rw-r--r-- | backends/vkeybd/virtual-keyboard.cpp (renamed from backends/common/virtual-keyboard.cpp) | 6 | ||||
-rw-r--r-- | backends/vkeybd/virtual-keyboard.h (renamed from backends/common/virtual-keyboard.h) | 2 | ||||
-rw-r--r-- | common/module.mk | 2 | ||||
-rw-r--r-- | dists/msvc8/scummvm.vcproj | 68 |
25 files changed, 78 insertions, 76 deletions
diff --git a/Makefile.common b/Makefile.common index 9644426180..e365ce79c4 100644 --- a/Makefile.common +++ b/Makefile.common @@ -28,11 +28,11 @@ MODULES += \ common \ engines \ backends \ - common \ - graphics # HACK/FIXME: this extra 'common' was added because of a circular dependency between - # backends and common (the newly added Virtual Keyboard stuff depends on things - # from common). This should be resolved in one way or another, perhaps by moving - # the VK code out of backends? + graphics \ + common # HACK/FIXME: the extra 'common' and 'graphics' were added because of circular + # dependencies (the newly added Virtual Keyboard stuff depends on things from + # common and graphics). This should be resolved in one way or another, perhaps + # by moving the VK code out of backends? ifdef USE_MT32EMU MODULES += sound/softsynth/mt32 diff --git a/backends/events/default/default-events.cpp b/backends/events/default/default-events.cpp index 9bafdd9e4f..026892a050 100644 --- a/backends/events/default/default-events.cpp +++ b/backends/events/default/default-events.cpp @@ -28,8 +28,8 @@ #include "common/system.h" #include "common/config-manager.h" #include "backends/events/default/default-events.h" -#include "backends/common/keymapper.h" -#include "backends/common/virtual-keyboard.h" +#include "backends/keymapper/keymapper.h" +#include "backends/vkeybd/virtual-keyboard.h" #include "engines/engine.h" #include "gui/message.h" diff --git a/backends/common/action.cpp b/backends/keymapper/action.cpp index 49d63fafd4..eefd482de7 100644 --- a/backends/common/action.cpp +++ b/backends/keymapper/action.cpp @@ -23,8 +23,8 @@ * */ -#include "backends/common/action.h" -#include "backends/common/keymap.h" +#include "backends/keymapper/action.h" +#include "backends/keymapper/keymap.h" namespace Common { diff --git a/backends/common/action.h b/backends/keymapper/action.h index d9ecb873b3..d9ecb873b3 100644 --- a/backends/common/action.h +++ b/backends/keymapper/action.h diff --git a/backends/common/hardware-key.h b/backends/keymapper/hardware-key.h index 1442dbd728..40fb2a0cbd 100644 --- a/backends/common/hardware-key.h +++ b/backends/keymapper/hardware-key.h @@ -26,7 +26,7 @@ #ifndef COMMON_HARDWAREKEY #define COMMON_HARDWAREKEY -#include "backends/common/action.h" +#include "backends/keymapper/action.h" namespace Common { diff --git a/backends/common/keymap-manager.cpp b/backends/keymapper/keymap-manager.cpp index 39ad6d061e..c8b4420289 100644 --- a/backends/common/keymap-manager.cpp +++ b/backends/keymapper/keymap-manager.cpp @@ -23,7 +23,7 @@ * */ -#include "backends/common/keymap-manager.h" +#include "backends/keymapper/keymap-manager.h" #include "common/algorithm.h" namespace Common { diff --git a/backends/common/keymap-manager.h b/backends/keymapper/keymap-manager.h index c4db61da02..171da3ac5e 100644 --- a/backends/common/keymap-manager.h +++ b/backends/keymapper/keymap-manager.h @@ -26,8 +26,8 @@ #ifndef COMMON_KEYMAP_MANAGER #define COMMON_KEYMAP_MANAGER -#include "backends/common/hardware-key.h" -#include "backends/common/keymap.h" +#include "backends/keymapper/hardware-key.h" +#include "backends/keymapper/keymap.h" #include "common/hash-str.h" #include "common/hashmap.h" diff --git a/backends/common/keymap.cpp b/backends/keymapper/keymap.cpp index ba6f758caa..3f190dcd48 100644 --- a/backends/common/keymap.cpp +++ b/backends/keymapper/keymap.cpp @@ -23,8 +23,8 @@ * */ -#include "backends/common/keymap.h" -#include "backends/common/hardware-key.h" +#include "backends/keymapper/keymap.h" +#include "backends/keymapper/hardware-key.h" namespace Common { diff --git a/backends/common/keymap.h b/backends/keymapper/keymap.h index d9d928ace9..21904397a1 100644 --- a/backends/common/keymap.h +++ b/backends/keymapper/keymap.h @@ -31,7 +31,7 @@ #include "common/hashmap.h" #include "common/keyboard.h" #include "common/list.h" -#include "backends/common/action.h" +#include "backends/keymapper/action.h" namespace Common { diff --git a/backends/common/keymapper.cpp b/backends/keymapper/keymapper.cpp index 59fb796187..fb1f72e84e 100644 --- a/backends/common/keymapper.cpp +++ b/backends/keymapper/keymapper.cpp @@ -23,7 +23,7 @@ * */ -#include "backends/common/keymapper.h" +#include "backends/keymapper/keymapper.h" #include "common/config-manager.h" namespace Common { diff --git a/backends/common/keymapper.h b/backends/keymapper/keymapper.h index c2113d5ca4..1052903b77 100644 --- a/backends/common/keymapper.h +++ b/backends/keymapper/keymapper.h @@ -29,9 +29,9 @@ #include "common/events.h" #include "common/list.h" #include "common/stack.h" -#include "backends/common/hardware-key.h" -#include "backends/common/keymap.h" -#include "backends/common/keymap-manager.h" +#include "backends/keymapper/hardware-key.h" +#include "backends/keymapper/keymap.h" +#include "backends/keymapper/keymap-manager.h" namespace Common { diff --git a/backends/module.mk b/backends/module.mk index 758dff13b2..49ef78326c 100644 --- a/backends/module.mk +++ b/backends/module.mk @@ -28,13 +28,15 @@ MODULE_OBJS := \ saves/default/default-saves.o \ saves/compressed/compressed-saves.o \ timer/default/default-timer.o \ - common/virtual-keyboard.o \ - common/virtual-keyboard-gui.o \ - common/virtual-keyboard-parser.o \ - common/keymap.o \ - common/keymap-manager.o \ - common/keymapper.o \ - common/action.o \ + keymapper/action.o \ + keymapper/keymap.o \ + keymapper/keymap-manager.o \ + keymapper/keymapper.o \ + vkeybd/image-map.o \ + vkeybd/polygon.o \ + vkeybd/virtual-keyboard.o \ + vkeybd/virtual-keyboard-gui.o \ + vkeybd/virtual-keyboard-parser.o # Include common rules include $(srcdir)/rules.mk diff --git a/backends/platform/sdl/events.cpp b/backends/platform/sdl/events.cpp index 830555e514..3b2baf6aa0 100644 --- a/backends/platform/sdl/events.cpp +++ b/backends/platform/sdl/events.cpp @@ -24,7 +24,7 @@ */ #include "backends/platform/sdl/sdl.h" -#include "backends/common/keymapper.h" +#include "backends/keymapper/keymapper.h" #include "common/util.h" #include "common/events.h" diff --git a/common/image-map.cpp b/backends/vkeybd/image-map.cpp index 84b22b4f1f..d97b662c7d 100644 --- a/common/image-map.cpp +++ b/backends/vkeybd/image-map.cpp @@ -23,7 +23,7 @@ * */ -#include "common/image-map.h" +#include "backends/vkeybd/image-map.h" namespace Common { diff --git a/common/image-map.h b/backends/vkeybd/image-map.h index ee64d96ba1..ed6feaa26e 100644 --- a/common/image-map.h +++ b/backends/vkeybd/image-map.h @@ -28,7 +28,7 @@ #include "common/hashmap.h" #include "common/hash-str.h" -#include "common/polygon.h" +#include "backends/vkeybd/polygon.h" namespace Common { diff --git a/common/polygon.cpp b/backends/vkeybd/polygon.cpp index c1332b0bc4..77ef3f0f44 100644 --- a/common/polygon.cpp +++ b/backends/vkeybd/polygon.cpp @@ -23,7 +23,7 @@ * */ -#include "common/polygon.h" +#include "backends/vkeybd/polygon.h" namespace Common { diff --git a/common/polygon.h b/backends/vkeybd/polygon.h index 69df2c0ca3..69df2c0ca3 100644 --- a/common/polygon.h +++ b/backends/vkeybd/polygon.h diff --git a/backends/common/virtual-keyboard-gui.cpp b/backends/vkeybd/virtual-keyboard-gui.cpp index ca246a17a1..0dcea70292 100644 --- a/backends/common/virtual-keyboard-gui.cpp +++ b/backends/vkeybd/virtual-keyboard-gui.cpp @@ -23,7 +23,7 @@ * */ -#include "backends/common/virtual-keyboard-gui.h" +#include "backends/vkeybd/virtual-keyboard-gui.h" #include "graphics/cursorman.h" #include "gui/newgui.h" @@ -39,11 +39,9 @@ VirtualKeyboardGUI::VirtualKeyboardGUI(VirtualKeyboard *kbd) { memset(_cursor, 0xFF, sizeof(_cursor)); - _displaying = _needRedraw = _drag = false; + _displaying = _needRedraw = _drag = _drawCaret = _displayEnabled = false; _firstRun = true; - _displayEnabled = false; - _cursorAnimateTimer = 0; } diff --git a/backends/common/virtual-keyboard-gui.h b/backends/vkeybd/virtual-keyboard-gui.h index 10b16f17f7..5836859262 100644 --- a/backends/common/virtual-keyboard-gui.h +++ b/backends/vkeybd/virtual-keyboard-gui.h @@ -26,7 +26,7 @@ #ifndef COMMON_VIRTUAL_KEYBOARD_GUI #define COMMON_VIRTUAL_KEYBOARD_GUI -#include "backends/common/virtual-keyboard.h" +#include "backends/vkeybd/virtual-keyboard.h" #include "common/rect.h" #include "common/system.h" #include "graphics/fontman.h" diff --git a/backends/common/virtual-keyboard-parser.cpp b/backends/vkeybd/virtual-keyboard-parser.cpp index 83f5c6f293..f3d71057b7 100644 --- a/backends/common/virtual-keyboard-parser.cpp +++ b/backends/vkeybd/virtual-keyboard-parser.cpp @@ -23,7 +23,7 @@ * */ -#include "backends/common/virtual-keyboard-parser.h" +#include "backends/vkeybd/virtual-keyboard-parser.h" #include "common/keyboard.h" #include "graphics/imageman.h" diff --git a/backends/common/virtual-keyboard-parser.h b/backends/vkeybd/virtual-keyboard-parser.h index ec6dd6dcec..59a770bdce 100644 --- a/backends/common/virtual-keyboard-parser.h +++ b/backends/vkeybd/virtual-keyboard-parser.h @@ -27,7 +27,7 @@ #define COMMON_VIRTUAL_KEYBOARD_PARSER #include "common/xmlparser.h" -#include "backends/common/virtual-keyboard.h" +#include "backends/vkeybd/virtual-keyboard.h" /** TODO - information about optional attributes and their default values diff --git a/backends/common/virtual-keyboard.cpp b/backends/vkeybd/virtual-keyboard.cpp index 4a125bb727..ae0fd86ee5 100644 --- a/backends/common/virtual-keyboard.cpp +++ b/backends/vkeybd/virtual-keyboard.cpp @@ -23,9 +23,9 @@ * */ -#include "backends/common/virtual-keyboard.h" -#include "backends/common/virtual-keyboard-gui.h" -#include "backends/common/virtual-keyboard-parser.h" +#include "backends/vkeybd/virtual-keyboard.h" +#include "backends/vkeybd/virtual-keyboard-gui.h" +#include "backends/vkeybd/virtual-keyboard-parser.h" #include "graphics/imageman.h" namespace Common { diff --git a/backends/common/virtual-keyboard.h b/backends/vkeybd/virtual-keyboard.h index c5b77aac0f..f15eb4aece 100644 --- a/backends/common/virtual-keyboard.h +++ b/backends/vkeybd/virtual-keyboard.h @@ -31,7 +31,7 @@ class OSystem; #include "common/events.h" #include "common/hashmap.h" #include "common/hash-str.h" -#include "common/image-map.h" +#include "backends/vkeybd/image-map.h" #include "common/keyboard.h" #include "common/list.h" #include "common/str.h" diff --git a/common/module.mk b/common/module.mk index e947b7ddd9..ed15bf75ea 100644 --- a/common/module.mk +++ b/common/module.mk @@ -6,12 +6,10 @@ MODULE_OBJS := \ config-manager.o \ file.o \ fs.o \ - image-map.o \ hashmap.o \ memorypool.o \ md5.o \ mutex.o \ - polygon.o \ str.o \ stream.o \ util.o \ diff --git a/dists/msvc8/scummvm.vcproj b/dists/msvc8/scummvm.vcproj index 0697ec3a86..560ac7a35b 100644 --- a/dists/msvc8/scummvm.vcproj +++ b/dists/msvc8/scummvm.vcproj @@ -335,14 +335,6 @@ > </File> <File - RelativePath="..\..\common\image-map.cpp" - > - </File> - <File - RelativePath="..\..\common\image-map.h" - > - </File> - <File RelativePath="..\..\common\keyboard.h" > </File> @@ -387,14 +379,6 @@ > </File> <File - RelativePath="..\..\common\polygon.cpp" - > - </File> - <File - RelativePath="..\..\common\polygon.h" - > - </File> - <File RelativePath="..\..\common\ptr.h" > </File> @@ -1050,66 +1034,86 @@ </Filter> </Filter> <Filter - Name="common" + Name="vkeybd" > <File - RelativePath="..\..\backends\common\action.cpp" + RelativePath="..\..\backends\vkeybd\image-map.cpp" > </File> <File - RelativePath="..\..\backends\common\action.h" + RelativePath="..\..\backends\vkeybd\image-map.h" > </File> <File - RelativePath="..\..\backends\common\hardware-key.h" + RelativePath="..\..\backends\vkeybd\polygon.cpp" > </File> <File - RelativePath="..\..\backends\common\keymap-manager.cpp" + RelativePath="..\..\backends\vkeybd\polygon.h" > </File> <File - RelativePath="..\..\backends\common\keymap-manager.h" + RelativePath="..\..\backends\vkeybd\virtual-keyboard-gui.cpp" > </File> <File - RelativePath="..\..\backends\common\keymap.cpp" + RelativePath="..\..\backends\vkeybd\virtual-keyboard-gui.h" > </File> <File - RelativePath="..\..\backends\common\keymap.h" + RelativePath="..\..\backends\vkeybd\virtual-keyboard-parser.cpp" + > + </File> + <File + RelativePath="..\..\backends\vkeybd\virtual-keyboard-parser.h" + > + </File> + <File + RelativePath="..\..\backends\vkeybd\virtual-keyboard.cpp" + > + </File> + <File + RelativePath="..\..\backends\vkeybd\virtual-keyboard.h" + > + </File> + </Filter> + <Filter + Name="keymapper" + > + <File + RelativePath="..\..\backends\keymapper\action.cpp" > </File> <File - RelativePath="..\..\backends\common\keymapper.cpp" + RelativePath="..\..\backends\keymapper\action.h" > </File> <File - RelativePath="..\..\backends\common\keymapper.h" + RelativePath="..\..\backends\keymapper\hardware-key.h" > </File> <File - RelativePath="..\..\backends\common\virtual-keyboard-gui.cpp" + RelativePath="..\..\backends\keymapper\keymap-manager.cpp" > </File> <File - RelativePath="..\..\backends\common\virtual-keyboard-gui.h" + RelativePath="..\..\backends\keymapper\keymap-manager.h" > </File> <File - RelativePath="..\..\backends\common\virtual-keyboard-parser.cpp" + RelativePath="..\..\backends\keymapper\keymap.cpp" > </File> <File - RelativePath="..\..\backends\common\virtual-keyboard-parser.h" + RelativePath="..\..\backends\keymapper\keymap.h" > </File> <File - RelativePath="..\..\backends\common\virtual-keyboard.cpp" + RelativePath="..\..\backends\keymapper\keymapper.cpp" > </File> <File - RelativePath="..\..\backends\common\virtual-keyboard.h" + RelativePath="..\..\backends\keymapper\keymapper.h" > </File> </Filter> |