Skip to content

Commit 407a56f

Browse files
authored
Fix keypad keys "star" and "slash", both did not return "KP_xxxxxxxx"… (#1280)
* Changes to make keys KP_STAR and KP_SLASH work
1 parent e76263d commit 407a56f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

shared/sdl/sdl_input.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -338,10 +338,10 @@ static fakeAscii_t IN_TranslateSDLToJKKey( SDL_Keysym *keysym, qboolean down ) {
338338
case SDLK_KP_5: key = A_KP_5; break;
339339
case SDLK_INSERT: key = A_INSERT; break;
340340
case SDLK_KP_0: key = A_KP_0; break;
341-
case SDLK_KP_MULTIPLY: key = A_STAR; break;
341+
case SDLK_KP_MULTIPLY: key = A_MULTIPLY; break;
342342
case SDLK_KP_PLUS: key = A_KP_PLUS; break;
343343
case SDLK_KP_MINUS: key = A_KP_MINUS; break;
344-
case SDLK_KP_DIVIDE: key = A_FORWARD_SLASH; break;
344+
case SDLK_KP_DIVIDE: key = A_DIVIDE; break;
345345

346346
case SDLK_SCROLLLOCK: key = A_SCROLLLOCK; break;
347347
case SDLK_NUMLOCKCLEAR: key = A_NUMLOCK; break;

0 commit comments

Comments
 (0)