From fb5395420590851f9e75126da132f92067e9a601 Mon Sep 17 00:00:00 2001 From: Sara Date: Sat, 11 Nov 2023 12:57:44 +0100 Subject: [PATCH] reformatted player input calls --- src/player.c | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/src/player.c b/src/player.c index d3520c0..4546c9f 100644 --- a/src/player.c +++ b/src/player.c @@ -41,22 +41,19 @@ void _internal_player_init_input(Player* self) { InputEvent_Float )), (InputDelegateFn)player_input_h); // JUMP - playerinput_add(self->player_input, - KeyBind_as_InputAxis(keybind_new(SDL_SCANCODE_W)), - (InputDelegateFn)player_input_jump - ); + playerinput_add(self->player_input, KeyBind_as_InputAxis( + keybind_new(SDL_SCANCODE_W) + ), (InputDelegateFn)player_input_jump); // CONTROLLER ------------------------------------------------ // WALK - playerinput_add(self->player_input, - ControllerAxis_as_InputAxis(controlleraxis_new(0)), - (InputDelegateFn)player_input_h - ); + playerinput_add(self->player_input, ControllerAxis_as_InputAxis( + controlleraxis_new(0) + ), (InputDelegateFn)player_input_h); // JUMP - playerinput_add(self->player_input, - ControllerButton_as_InputAxis(controllerbutton_new(SDL_CONTROLLER_BUTTON_A)), - (InputDelegateFn)player_input_jump - ); + playerinput_add(self->player_input, ControllerButton_as_InputAxis( + controllerbutton_new(SDL_CONTROLLER_BUTTON_A) + ), (InputDelegateFn)player_input_jump); } Player* player_new() {