forked from vlang/sdl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
system_ios.c.v
32 lines (25 loc) · 1.18 KB
/
system_ios.c.v
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// Copyright(C) 2021 Lars Pontoppidan. All rights reserved.
// Use of this source code is governed by an MIT license
// that can be found in the LICENSE file.
module sdl
//
// SDL_system.h
//
// Platform specific functions for iOS
pub type IOSAnimationCallback = fn (params voidptr)
fn C.SDL_iOSSetAnimationCallback(window &C.SDL_Window, interval int, callback IOSAnimationCallback, callbackParam voidptr) int
pub fn iphone_set_animation_callback(window &Window, interval int, callback IOSAnimationCallback, callback_param voidptr) int {
return C.SDL_iOSSetAnimationCallback(window, interval, callback, callback_param)
}
fn C.SDL_iPhoneSetAnimationCallback(window &C.SDL_Window, interval int, callback IOSAnimationCallback, callback_param voidptr) int
pub fn iphone_set_animation_callback(window &Window, interval int, callback IOSAnimationCallback, callback_param voidptr) int {
return C.SDL_iPhoneSetAnimationCallback(window, interval, callback, callback_param)
}
fn C.SDL_iOSSetEventPump(enabled)
pub fn ios_set_event_pump(enabled bool) {
C.SDL_iOSSetEventPump(enabled)
}
fn C.SDL_iPhoneSetEventPump(enabled bool)
pub fn iphone_set_event_pump(enabled bool) {
C.SDL_iPhoneSetEventPump(enabled)
}