From a2ece2c9fb7fbce99729d31838c402a824193cd6 Mon Sep 17 00:00:00 2001 From: leezer3 <leezer3@gmail.com> Date: Fri, 4 Dec 2015 23:49:15 +0000 Subject: [PATCH 1/2] Fix: KP_ENTER key missing from SDL2 keymap. --- Source/OpenTK/Platform/SDL2/Sdl2KeyMap.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/OpenTK/Platform/SDL2/Sdl2KeyMap.cs b/Source/OpenTK/Platform/SDL2/Sdl2KeyMap.cs index c5ad1d14..53b59b72 100644 --- a/Source/OpenTK/Platform/SDL2/Sdl2KeyMap.cs +++ b/Source/OpenTK/Platform/SDL2/Sdl2KeyMap.cs @@ -283,6 +283,8 @@ namespace OpenTK.Platform.SDL2 return Key.KeypadDivide; case Code.KP_MULTIPLY: return Key.KeypadMultiply; + case Code.KP_ENTER: + return Key.KeypadEnter; // Navigation case Code.UP: From b0dbb7de7fb329e44b6a0ba2f4cadc1ea12b69c9 Mon Sep 17 00:00:00 2001 From: leezer3 <leezer3@gmail.com> Date: Sat, 5 Dec 2015 23:54:42 +0000 Subject: [PATCH 2/2] Align whitespace for SDL2 KeypadEnter fix.... --- Source/OpenTK/Platform/SDL2/Sdl2KeyMap.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/OpenTK/Platform/SDL2/Sdl2KeyMap.cs b/Source/OpenTK/Platform/SDL2/Sdl2KeyMap.cs index 53b59b72..96c6a43b 100644 --- a/Source/OpenTK/Platform/SDL2/Sdl2KeyMap.cs +++ b/Source/OpenTK/Platform/SDL2/Sdl2KeyMap.cs @@ -283,8 +283,8 @@ namespace OpenTK.Platform.SDL2 return Key.KeypadDivide; case Code.KP_MULTIPLY: return Key.KeypadMultiply; - case Code.KP_ENTER: - return Key.KeypadEnter; + case Code.KP_ENTER: + return Key.KeypadEnter; // Navigation case Code.UP: