Skip to content

Commit 2f5beac

Browse files
Lokathorslouken
authored andcommitted
Change octal char literals to hex char literals
This should not change anything at all within the compiled library, but it does make the header file easier to read for non-C programmers who don't expect an octal value.
1 parent 391bb80 commit 2f5beac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/SDL_keycode.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ typedef enum
5252
SDLK_UNKNOWN = 0,
5353

5454
SDLK_RETURN = '\r',
55-
SDLK_ESCAPE = '\033',
55+
SDLK_ESCAPE = '\x1B',
5656
SDLK_BACKSPACE = '\b',
5757
SDLK_TAB = '\t',
5858
SDLK_SPACE = ' ',
@@ -147,7 +147,7 @@ typedef enum
147147
SDLK_INSERT = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_INSERT),
148148
SDLK_HOME = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_HOME),
149149
SDLK_PAGEUP = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_PAGEUP),
150-
SDLK_DELETE = '\177',
150+
SDLK_DELETE = '\x1F',
151151
SDLK_END = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_END),
152152
SDLK_PAGEDOWN = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_PAGEDOWN),
153153
SDLK_RIGHT = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_RIGHT),

0 commit comments

Comments
 (0)