Skip to content

Commit 96486c7

Browse files
authored
Merge pull request #198 from Susko3/fix-sdl_pen-constants
Fix SDL_Pen constants
2 parents e1fb215 + 87b6598 commit 96486c7

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

SDL3-CS/SDL3/ClangSharp/SDL_pen.g.cs

-6
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,6 @@ public enum SDL_PenAxis
3939

4040
public static partial class SDL3
4141
{
42-
[NativeTypeName("#define SDL_PEN_MOUSEID ((SDL_MouseID)-2)")]
43-
public const SDL_MouseID SDL_PEN_MOUSEID = ((SDL_MouseID)(-2));
44-
45-
[NativeTypeName("#define SDL_PEN_TOUCHID ((SDL_TouchID)-2)")]
46-
public const SDL_TouchID SDL_PEN_TOUCHID = ((SDL_TouchID)(-2));
47-
4842
[NativeTypeName("#define SDL_PEN_INPUT_DOWN (1u << 0)")]
4943
public const uint SDL_PEN_INPUT_DOWN = (1U << 0);
5044

SDL3-CS/SDL3/SDL_pen.cs

+9
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,13 @@ public enum SDL_PenInputFlags : UInt32
2020
SDL_PEN_INPUT_BUTTON_5 = SDL3.SDL_PEN_INPUT_BUTTON_5,
2121
SDL_PEN_INPUT_ERASER_TIP = SDL3.SDL_PEN_INPUT_ERASER_TIP,
2222
}
23+
24+
public static partial class SDL3
25+
{
26+
[Constant]
27+
public const SDL_MouseID SDL_PEN_MOUSEID = unchecked((SDL_MouseID)(-2));
28+
29+
[Constant]
30+
public const SDL_TouchID SDL_PEN_TOUCHID = unchecked((SDL_TouchID)(-2));
31+
}
2332
}

0 commit comments

Comments
 (0)