mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-27 09:54:36 +02:00
Shift key for numpad
This commit is contained in:
@@ -444,7 +444,7 @@ float currentWidth, currentHeight;
|
|||||||
void EventProcess(SDL_Event event)
|
void EventProcess(SDL_Event event)
|
||||||
{
|
{
|
||||||
if (event.type == SDL_KEYDOWN || event.type == SDL_KEYUP)
|
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);
|
SDLKey newKey = MapNumpad(event.key.keysym.sym);
|
||||||
if (newKey != event.key.keysym.sym)
|
if (newKey != event.key.keysym.sym)
|
||||||
|
Reference in New Issue
Block a user