From 5e35411dd18c42fb76781da21b4d859184d75179 Mon Sep 17 00:00:00 2001 From: "Stefanos A." Date: Mon, 30 Sep 2013 13:49:53 +0200 Subject: [PATCH] Fixed return values of keyboard functions SDL_GetKeyFromScancode and SDL_GetScancodeFromKey should return a SDL_Keycode or SDL_Scancode respectively, instead of void. --- Source/OpenTK/Platform/SDL2/sdl2-cs/src/SDL2.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/OpenTK/Platform/SDL2/sdl2-cs/src/SDL2.cs b/Source/OpenTK/Platform/SDL2/sdl2-cs/src/SDL2.cs index a54b0d57..e4c3a348 100644 --- a/Source/OpenTK/Platform/SDL2/sdl2-cs/src/SDL2.cs +++ b/Source/OpenTK/Platform/SDL2/sdl2-cs/src/SDL2.cs @@ -4047,11 +4047,11 @@ namespace OpenTK.Platform.SDL2 * with the current keyboard layout. */ [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] - public static extern void SDL_GetKeyFromScancode(SDL_Scancode scancode); + public static extern SDL_Keycode SDL_GetKeyFromScancode(SDL_Scancode scancode); /* Get the scancode for the given keycode */ [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] - public static extern void SDL_GetScancodeFromKey(SDL_Keycode key); + public static extern SDL_Scancode SDL_GetScancodeFromKey(SDL_Keycode key); /* Wrapper for SDL_GetScancodeName */ [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]