Move `SDL_Keycode` typdef to global python script to avoid duplicate definition

This commit is contained in:
Susko3 2024-04-06 13:47:08 +02:00
parent 7d9502ee82
commit 182482217d
2 changed files with 1 additions and 10 deletions

View File

@ -1,10 +0,0 @@
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. 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;
}

View File

@ -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",