diff options
author | James Haley | 2010-09-02 05:58:28 +0000 |
---|---|---|
committer | James Haley | 2010-09-02 05:58:28 +0000 |
commit | 7b93759260950e88e5222c7d42cf0f57a869b306 (patch) | |
tree | c1ab6c35a10f8c4aa73413e9726947e52810dc59 /src/m_controls.c | |
parent | 42572cb925b9723cfa69ff37816de213d7d8a469 (diff) | |
download | chocolate-doom-7b93759260950e88e5222c7d42cf0f57a869b306.tar.gz chocolate-doom-7b93759260950e88e5222c7d42cf0f57a869b306.tar.bz2 chocolate-doom-7b93759260950e88e5222c7d42cf0f57a869b306.zip |
Added Strife keys to configuration. Note that this *depends* on the
current behavior of Choco Doom in treating configuration variable
strings as case-sensitive, because these are the real values used by
Rogue in their config, and they differ from some Heretic/Hexen config
strings only by case.
Subversion-branch: /branches/strife-branch
Subversion-revision: 2000
Diffstat (limited to 'src/m_controls.c')
-rw-r--r-- | src/m_controls.c | 54 |
1 files changed, 53 insertions, 1 deletions
diff --git a/src/m_controls.c b/src/m_controls.c index 98b1e51b..0f64249d 100644 --- a/src/m_controls.c +++ b/src/m_controls.c @@ -66,6 +66,26 @@ int key_useartifact = KEY_ENTER; int key_jump = '/'; // +// Strife key controls +// +// haleyjd 09/01/10 +// + +// Note: Strife also uses key_invleft, key_invright, key_jump, key_lookup, and +// key_lookdown, but with different default values. + +int key_usehealth = 'h'; +int key_invquery = 'q'; +int key_mission = 'w'; +int key_invpop = 'z'; +int key_invkey = 'k'; +int key_invhome = KEY_HOME; +int key_invend = KEY_END; +int key_invuse = KEY_ENTER; +int key_invdrop = KEY_BACKSPACE; + + +// // Mouse controls // @@ -94,7 +114,7 @@ int key_weapon6 = '6'; int key_weapon7 = '7'; int key_weapon8 = '8'; -// Map cotnrols keys: +// Map controls keys: int key_map_north = KEY_UPARROW; int key_map_south = KEY_DOWNARROW; @@ -216,6 +236,38 @@ void M_BindHexenControls(void) M_BindVariable("joyb_jump", &joybjump); } +void M_BindStrifeControls(void) +{ + // These keys are shared with Heretic/Hexen but have different defaults: + key_jump = 'a'; + key_lookup = KEY_PGUP; + key_lookdown = KEY_PGDN; + key_invleft = KEY_INS; + key_invright = KEY_DEL; + + M_BindVariable("key_jump", &key_jump); + M_BindVariable("key_lookUp", &key_lookup); + M_BindVariable("key_lookDown", &key_lookdown); + M_BindVariable("key_invLeft", &key_invleft); + M_BindVariable("key_invRight", &key_invright); + + // Custom Strife-only Keys: + M_BindVariable("key_useHealth", &key_usehealth); + M_BindVariable("key_invquery", &key_invquery); + M_BindVariable("key_mission", &key_mission); + M_BindVariable("key_invPop", &key_invpop); + M_BindVariable("key_invKey", &key_invkey); + M_BindVariable("key_invHome", &key_invhome); + M_BindVariable("key_invEnd", &key_invend); + M_BindVariable("key_invUse", &key_invuse); + M_BindVariable("key_invDrop", &key_invdrop); + + // Strife also supports jump on mouse and joystick, and in the exact same + // manner as Hexen! + M_BindVariable("mouseb_jump", &mousebjump); + M_BindVariable("joyb_jump", &joybjump); +} + void M_BindWeaponControls(void) { M_BindVariable("key_weapon1", &key_weapon1); |