mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-01-22 23:11:13 +00:00
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:
parent
fc8b3810e9
commit
5e35411dd1
|
@ -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)]
|
||||
|
|
Loading…
Reference in a new issue