rework input to be in line with rendering semantics
This commit is contained in:
@ -11,6 +11,13 @@
|
||||
static void ingame_tick(State *state) {
|
||||
SceneIngame *scn = (SceneIngame *)state->scene;
|
||||
|
||||
input_bind_action_control("player_left", CONTROL_A);
|
||||
input_bind_action_control("player_right", CONTROL_D);
|
||||
input_bind_action_control("player_forward", CONTROL_W);
|
||||
input_bind_action_control("player_backward", CONTROL_S);
|
||||
input_bind_action_control("player_jump", CONTROL_SPACE);
|
||||
input_bind_action_control("player_run", CONTROL_LSHIFT);
|
||||
|
||||
world_drawdef(scn->world);
|
||||
player_calc(scn->player);
|
||||
|
||||
|
@ -14,6 +14,8 @@ static void title_tick(State *state) {
|
||||
SceneTitle *scn = (SceneTitle *)state->scene;
|
||||
(void)scn;
|
||||
|
||||
input_bind_action_control("ui_accept", CONTROL_RETURN);
|
||||
|
||||
if (input_is_action_just_pressed("ui_accept")) {
|
||||
switch_to(state, ingame_scene);
|
||||
return;
|
||||
|
Reference in New Issue
Block a user