Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 14 additions & 8 deletions putt/st_all.c
Original file line number Diff line number Diff line change
Expand Up @@ -691,6 +691,8 @@ static int pause_keybd(int c, int d)
{
if (d && c == KEY_EXIT)
return pause_action(PAUSE_CONTINUE);
if (d && c == KEY_FALL)
goto_state(&st_fall);
return 1;
}

Expand All @@ -713,8 +715,10 @@ static int shared_keybd(int c, int d)
{
if (d)
{
if (c == KEY_EXIT)
return goto_pause(&st_over);
if (c == KEY_EXIT)
return goto_pause(&st_over);
if (c == KEY_FALL)
goto_state(&st_fall);
}
return 1;
}
Expand Down Expand Up @@ -805,12 +809,14 @@ static int next_keybd(int c, int d)
{
if (d)
{
if (c == KEY_POSE)
return goto_state(&st_poser);
if (c == KEY_EXIT)
return goto_pause(&st_over);
if ('0' <= c && c <= '9')
num = num * 10 + c - '0';
if (c == KEY_POSE)
return goto_state(&st_poser);
if (c == KEY_EXIT)
return goto_pause(&st_over);
if (c == KEY_FALL)
goto_state(&st_fall);
if ('0' <= c && c <= '9')
num = num * 10 + c - '0';
}
return 1;
}
Expand Down
2 changes: 1 addition & 1 deletion share/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ int config_screenshot(void);
/* Names for some hard-coded keys. */

#define KEY_EXIT SDLK_ESCAPE

#define KEY_FALL SDLK_TAB
#define KEY_LOOKAROUND SDLK_F5
#define KEY_WIREFRAME SDLK_F6
#define KEY_RESOURCES SDLK_F7
Expand Down