diff options
| author | Autumn! <autumnull@posteo.net> | 2023-05-24 20:37:00 +0000 |
|---|---|---|
| committer | Drew DeVault <sir@cmpwn.com> | 2023-06-04 09:23:18 +0200 |
| commit | 3ca5d97376151d6f1a4a1787b6609c470a05a82c (patch) | |
| tree | 624e7cdf0711f30512b9ce03c67fd9356073b1ad /sdl2/events.ha | |
| parent | added some missing bindings (diff) | |
| download | hare-chip8-3ca5d97376151d6f1a4a1787b6609c470a05a82c.tar.gz | |
Use types::c:: instead of char and strings::
Signed-off-by: Autumn! <autumnull@posteo.net>
Diffstat (limited to '')
| -rw-r--r-- | sdl2/events.ha | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sdl2/events.ha b/sdl2/events.ha index 1003af1..beb1343 100644 --- a/sdl2/events.ha +++ b/sdl2/events.ha @@ -1,3 +1,5 @@ +use types::c; + export type SDL_EventType = enum u32 { FIRSTEVENT = 0, @@ -116,7 +118,7 @@ export def TEXTEDITINGEVENT_TEXT_SIZE: size = 32; export type SDL_TextEditingEvent = struct { SDL_CommonEvent, window_id: u32, - text: [TEXTEDITINGEVENT_TEXT_SIZE]char, + text: [TEXTEDITINGEVENT_TEXT_SIZE]c::char, start: i32, length: i32, }; @@ -128,7 +130,7 @@ export def TEXTINPUTEVENT_TEXT_SIZE: size = 32; export type SDL_TextInputEvent = struct { SDL_CommonEvent, window_id: u32, - text: [TEXTINPUTEVENT_TEXT_SIZE]char, + text: [TEXTINPUTEVENT_TEXT_SIZE]c::char, }; // Mouse motion event structure (event.motion.*) @@ -294,7 +296,7 @@ export type SDL_DollarGestureEvent = struct { // If this event is enabled, you must free the filename in the event. export type SDL_DropEvent = struct { SDL_CommonEvent, - file: *char, + file: *c::char, window_id: u32, }; |
