diff options
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; |