From 4b1a1e21025aeee8344b27772e40b47f6496077d Mon Sep 17 00:00:00 2001 From: Susko3 Date: Sat, 6 Apr 2024 13:47:08 +0200 Subject: [PATCH] Move `SDL_Keycode` typdef to global python script to avoid duplicate definition --- SDL3-CS/SDL3/SDL_keycode.cs | 10 ---------- SDL3-CS/generate_bindings.py | 1 + 2 files changed, 1 insertion(+), 10 deletions(-) delete mode 100644 SDL3-CS/SDL3/SDL_keycode.cs diff --git a/SDL3-CS/SDL3/SDL_keycode.cs b/SDL3-CS/SDL3/SDL_keycode.cs deleted file mode 100644 index fef36b9..0000000 --- a/SDL3-CS/SDL3/SDL_keycode.cs +++ /dev/null @@ -1,10 +0,0 @@ -// Copyright (c) ppy Pty Ltd . Licensed under the MIT Licence. -// See the LICENCE file in the repository root for full licence text. - -using System; - -namespace SDL -{ - [Typedef] - public enum SDL_Keycode : Int32; -} diff --git a/SDL3-CS/generate_bindings.py b/SDL3-CS/generate_bindings.py index 0144ad9..a80402f 100644 --- a/SDL3-CS/generate_bindings.py +++ b/SDL3-CS/generate_bindings.py @@ -216,6 +216,7 @@ base_command = [ "void*=IntPtr", "char=byte", "wchar_t *=IntPtr", # wchar_t has a platform-defined size + typedef("SDL_Keycode"), "--define-macro", "SDL_FUNCTION_POINTER_IS_VOID_POINTER",