diff options
| author | Jakob Fries <jakob.fries@gmail.com> | 2007-06-09 16:21:28 +0000 |
|---|---|---|
| committer | Jakob Fries <jakob.fries@gmail.com> | 2007-06-09 16:21:28 +0000 |
| commit | 6523310be6401ca8e2a3974214a97495c63b2523 (patch) | |
| tree | aa0bdaffdee97b960ac6849cdde1bce8470a9303 /src/game/client/game_client.cpp | |
| parent | 2497456684ff1815c084ef84c2c164e59c750124 (diff) | |
| download | zcatch-6523310be6401ca8e2a3974214a97495c63b2523.tar.gz zcatch-6523310be6401ca8e2a3974214a97495c63b2523.zip | |
most keys work
Diffstat (limited to 'src/game/client/game_client.cpp')
| -rw-r--r-- | src/game/client/game_client.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/game/client/game_client.cpp b/src/game/client/game_client.cpp index 282e4c06..bab7a496 100644 --- a/src/game/client/game_client.cpp +++ b/src/game/client/game_client.cpp @@ -1,5 +1,6 @@ #include <stdlib.h> #include <stdio.h> +#include <engine/config.h> #include "../game.h" #include "mapres_image.h" #include "mapres_tilemap.h" @@ -1733,13 +1734,13 @@ void modc_render() // snap input { player_input input; - input.left = inp_key_pressed('A'); - input.right = inp_key_pressed('D'); + input.left = inp_key_pressed(config.key_move_left); + input.right = inp_key_pressed(config.key_move_right); float a = atan((float)mouse_pos.y/(float)mouse_pos.x); if(mouse_pos.x < 0) a = a+pi; input.angle = (int)(a*256.0f); - input.jump = inp_key_pressed(baselib::keys::space) || inp_key_pressed('W'); + input.jump = inp_key_pressed(config.key_jump); input.fire = inp_mouse_button_pressed(0);// | (oldinput.fire << 16); //oldinput.fire = input.fire & 0x0000ffff; |