From a3475e987b0e642b2b9aa9c6cbf74762c6c77d23 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 10 Apr 2012 23:14:47 +0300 Subject: Add two default keys to input layout. Add action type to default keys. Remove hardcoded joystick actions. --- src/keydata.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/keydata.h') 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, -- cgit v1.2.3-60-g2f50