Remap `SDL_KeyCode` enum to `SDL_Keycode` typedef

This doesn't compile because of duplicate `SDL_Keycode` definition
This commit is contained in:
Susko3 2024-04-06 13:45:49 +02:00
parent 7b8ea9767f
commit 7d9502ee82
2 changed files with 5 additions and 1 deletions

View File

@ -28,7 +28,7 @@ using static SDL.SDL_Scancode;
namespace SDL
{
public enum SDL_KeyCode
public enum SDL_Keycode
{
SDLK_UNKNOWN = 0,
SDLK_RETURN = '\r',

View File

@ -3,3 +3,7 @@
--with-attribute
SDL_Keymod=Flags
# Remap the C `SDL_KeyCode` enum to the `SDL_Keycode` typedef
--remap
SDL_KeyCode=SDL_Keycode