Skip to content

Commit

Permalink
Numpad numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Oct 20, 2004
1 parent 5051f16 commit 39a8863
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions doomsday/Src/dd_input.c
Expand Up @@ -489,6 +489,13 @@ byte DD_ModKey(byte key)
key = shiftKeyMappings[key];
if(altDown)
key = altKeyMappings[key];
if(key >= DDKEY_NUMPAD7 && key <= DDKEY_NUMPAD0)
{
byte numPadKeys[10] = {
'7', '8', '9', '4', '5', '6', '1', '2', '3', '0'
};
return numPadKeys[key - DDKEY_NUMPAD7];
}
return key;
}

Expand Down

0 comments on commit 39a8863

Please sign in to comment.