PascalGameDevelopment/SDL2-for-Pascal

sdlkeycode.inc: SDLK_QUOTE = TSDL_KeyCode('\'); is wrong.

Chixpy opened this issue · 3 comments

Chixpy commented

Hi. It's a simple mistake.

In line 37 of sdlkeycode.inc

SDLK_QUOTE = TSDL_KeyCode('\');

must be

SDLK_QUOTE = TSDL_KeyCode('''');

Backslash \ key is defined in line 67: SDLK_BACKSLASH = TSDL_KeyCode('\');

Actually, SDLK_QUOTE was renamed three week ago to SDLK_APOSTROPHE, but I'think that it's for SDL3

Never noticed this, thanks!

Can you craft a quick patch/PR or should I do it?

Best regards

Chixpy commented

Done #137

suve commented

Oh oops. Thanks for noticing and thanks for the PR.