diff options
author | Stephen Kennedy | 2008-08-18 19:54:46 +0000 |
---|---|---|
committer | Stephen Kennedy | 2008-08-18 19:54:46 +0000 |
commit | 34518951897d5b90d4d345f7f7465b4f86a67ed8 (patch) | |
tree | 309ced0bcf2107b821372a57711ed46db4a99528 /backends/keymapper/types.h | |
parent | 12d649f0113befdb7098962eabb7dd70e194a88b (diff) | |
download | scummvm-rg350-34518951897d5b90d4d345f7f7465b4f86a67ed8.tar.gz scummvm-rg350-34518951897d5b90d4d345f7f7465b4f86a67ed8.tar.bz2 scummvm-rg350-34518951897d5b90d4d345f7f7465b4f86a67ed8.zip |
Final changes to keymapper:
* HardwareKey's now have a type too, so that we can either match a key to an action or vice versa.
* Better test keymaps - with special gui keymap that is activated when a dialog is opened
svn-id: r34005
Diffstat (limited to 'backends/keymapper/types.h')
-rw-r--r-- | backends/keymapper/types.h | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/backends/keymapper/types.h b/backends/keymapper/types.h new file mode 100644 index 0000000000..8031ab5e38 --- /dev/null +++ b/backends/keymapper/types.h @@ -0,0 +1,71 @@ +/* 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. +* +* $URL$ +* $Id$ +* +*/ + +#ifndef COMMON_TYPES +#define COMMON_TYPES + +namespace Common { + +enum KeyType { + kGenericKeyType, + kDirUpKeyType, + kDirDownKeyType, + kDirLeftKeyType, + kDirRightKeyType, + kActionKeyType, + kTriggerLeftKeyType, + kTriggerRightKeyType, + kStartKeyType, + kSelectKeyType, + /* ... */ + + kKeyTypeMax +}; + +enum ActionType { + kGenericActionType, + + // common actions + kDirUpActionType, + kDirDownActionType, + kDirLeftActionType, + kDirRightActionType, + kLeftClickActionType, + kRightClickActionType, + kSaveActionType, + kMenuActionType, + kQuitActionType, + kVirtualKeyboardActionType, + kKeyRemapActionType, + kVolumeUpActionType, + kVolumeDownActionType, + + + kActionTypeMax +}; + +} // end of namespace Common + +#endif |