Fixed return values of keyboard functions

SDL_GetKeyFromScancode and SDL_GetScancodeFromKey should return a
SDL_Keycode or SDL_Scancode respectively, instead of void.
This commit is contained in:
Stefanos A. 2013-09-30 13:49:53 +02:00
parent fc8b3810e9
commit 5e35411dd1

View file

@ -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)]