Skip to content
Permalink
Browse files

[Input] SDL: fix OemPlus/Minus mapping (thanks nes)

  • Loading branch information
xen2 committed Sep 5, 2019
1 parent e32c91f commit b431e3d680757f756e64ad545f578f44f28e7dee
Showing with 2 additions and 4 deletions.
  1. +2 −4 sources/engine/Xenko.Input/SDL/KeyboardSDL.cs
@@ -221,10 +221,10 @@ private static class SDLKeys
map[SDL.SDL_Keycode.SDLK_KP_8] = Keys.NumPad8;
map[SDL.SDL_Keycode.SDLK_KP_9] = Keys.NumPad9;
map[SDL.SDL_Keycode.SDLK_KP_MULTIPLY] = Keys.Multiply;
map[SDL.SDL_Keycode.SDLK_PLUS] = Keys.Add;
map[SDL.SDL_Keycode.SDLK_PLUS] = Keys.OemPlus;
map[SDL.SDL_Keycode.SDLK_KP_PLUS] = Keys.Add;
map[SDL.SDL_Keycode.SDLK_SEPARATOR] = Keys.Separator;
map[SDL.SDL_Keycode.SDLK_MINUS] = Keys.Subtract;
map[SDL.SDL_Keycode.SDLK_MINUS] = Keys.OemMinus;
map[SDL.SDL_Keycode.SDLK_KP_MINUS] = Keys.Subtract;
map[SDL.SDL_Keycode.SDLK_DECIMALSEPARATOR] = Keys.Decimal;
map[SDL.SDL_Keycode.SDLK_KP_DECIMAL] = Keys.Decimal;
@@ -281,9 +281,7 @@ private static class SDLKeys
// map [SDL.SDL_Keycode.SDLK_UNKNOWN] = Keys.LaunchApplication2;
// map [SDL.SDL_Keycode.SDLK_UNKNOWN] = Keys.Oem1;
// map [SDL.SDL_Keycode.SDLK_UNKNOWN] = Keys.OemSemicolon;
// map [SDL.SDL_Keycode.SDLK_UNKNOWN] = Keys.OemPlus;
// map [SDL.SDL_Keycode.SDLK_UNKNOWN] = Keys.OemComma;
// map [SDL.SDL_Keycode.SDLK_UNKNOWN] = Keys.OemMinus;
// map [SDL.SDL_Keycode.SDLK_UNKNOWN] = Keys.OemPeriod;
// map [SDL.SDL_Keycode.SDLK_UNKNOWN] = Keys.Oem2;
// map [SDL.SDL_Keycode.SDLK_UNKNOWN] = Keys.OemQuestion;

0 comments on commit b431e3d

Please sign in to comment.
You can’t perform that action at this time.