From 2d5f572ccf977a0fc69cb1e576c18e4ea591a846 Mon Sep 17 00:00:00 2001 From: Jameson Ernst Date: Sat, 17 Aug 2013 17:58:31 -0700 Subject: [PATCH] Changed text input events to byte instead of char Added hint for background joystick events --- src/SDL2.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/SDL2.cs b/src/SDL2.cs index d094c3a..e9b83b0 100644 --- a/src/SDL2.cs +++ b/src/SDL2.cs @@ -145,6 +145,8 @@ namespace SDL2 "SDL_XINPUT_ENABLED"; public const string SDL_HINT_GAMECONTROLLERCONFIG = "SDL_GAMECONTROLLERCONFIG"; + public const string SDL_HINT_JOYSTICK_ALLOW_BACKGROUND_EVENTS = + "SDL_JOYSTICK_ALLOW_BACKGROUND_EVENTS"; public const string SDL_HINT_ALLOW_TOPMOST = "SDL_ALLOW_TOPMOST"; @@ -2447,7 +2449,7 @@ namespace SDL2 public SDL_EventType type; public UInt32 timestamp; public UInt32 windowID; - public fixed char text[SDL_TEXTEDITINGEVENT_TEXT_SIZE]; + public fixed byte text[SDL_TEXTEDITINGEVENT_TEXT_SIZE]; public Int32 start; public Int32 length; } @@ -2458,7 +2460,7 @@ namespace SDL2 public SDL_EventType type; public UInt32 timestamp; public UInt32 windowID; - public fixed char text[SDL_TEXTINPUTEVENT_TEXT_SIZE]; + public fixed byte text[SDL_TEXTINPUTEVENT_TEXT_SIZE]; } /* Mouse motion event structure (event.motion.*) */