summaryrefslogtreecommitdiff
path: root/src/keydata.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-04-10 23:14:47 +0300
committerAndrei Karas <akaras@inbox.ru>2012-04-10 23:14:47 +0300
commita3475e987b0e642b2b9aa9c6cbf74762c6c77d23 (patch)
treed4d1e3b4640b98ae59ffb982114e708825114234 /src/keydata.h
parent3973b3175a1efdb0d47e93b93af6ae5f50cb62f8 (diff)
downloadmv-a3475e987b0e642b2b9aa9c6cbf74762c6c77d23.tar.gz
mv-a3475e987b0e642b2b9aa9c6cbf74762c6c77d23.tar.bz2
mv-a3475e987b0e642b2b9aa9c6cbf74762c6c77d23.tar.xz
mv-a3475e987b0e642b2b9aa9c6cbf74762c6c77d23.zip
Add two default keys to input layout.
Add action type to default keys. Remove hardcoded joystick actions.
Diffstat (limited to 'src/keydata.h')
-rw-r--r--src/keydata.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/keydata.h b/src/keydata.h
index 993bae74e..5351b715f 100644
--- a/src/keydata.h
+++ b/src/keydata.h
@@ -32,7 +32,10 @@ typedef bool (*ActionFuncPtr) (InputEvent &event);
struct KeyData
{
const char *configField;
- int defaultValue;
+ int defaultType1;
+ int defaultValue1;
+ int defaultType2;
+ int defaultValue2;
int grp;
ActionFuncPtr action;
int modKeyIndex;
@@ -73,7 +76,7 @@ namespace Input
KEY_SET_HOME,
KEY_MOVE_TO_POINT,
KEY_TALK,
- KEY_TARGET,
+ KEY_STOP_ATTACK,
KEY_UNTARGET,
KEY_TARGET_CLOSEST,
KEY_TARGET_NPC,