Permalink
Browse files

Shift key for numpad

  • Loading branch information...
jacksonmj committed Mar 12, 2014
1 parent 7dc5139 commit a1515b3d5e9aa1fe58390f5ad3ad1b464ff65b44
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/PowderToySDL.cpp
@@ -444,7 +444,7 @@ float currentWidth, currentHeight;
void EventProcess(SDL_Event event)
{
if (event.type == SDL_KEYDOWN || event.type == SDL_KEYUP)
if (!(event.key.keysym.mod&KEY_MOD_NUM))
if ((!(event.key.keysym.mod&KEY_MOD_NUM)) ^ (!!(event.key.keysym.mod&KEY_MOD_SHIFT)))
{
SDLKey newKey = MapNumpad(event.key.keysym.sym);
if (newKey != event.key.keysym.sym)

0 comments on commit a1515b3

Please sign in to comment.