浏览代码

additional fixes for #252

Nicolas Cannasse 6 年之前
父节点
当前提交
fd478a84e0
共有 2 个文件被更改,包括 3 次插入2 次删除
  1. 2 1
      libs/sdl/sdl.c
  2. 1 1
      libs/sdl/sdl/Sdl.hx

+ 2 - 1
libs/sdl/sdl.c

@@ -401,7 +401,7 @@ HL_PRIM const char *HL_NAME(detect_keyboard_layout)() {
 
 DEFINE_PRIM(_BOOL, init_once, _NO_ARG);
 DEFINE_PRIM(_VOID, gl_options, _I32 _I32 _I32 _I32 _I32 _I32);
-DEFINE_PRIM(_BOOL, event_loop, _OBJ(_I32 _I32 _I32 _I32 _I32 _I32 _I32 _I32 _I32 _BOOL _I32 _I32 _I32) );
+DEFINE_PRIM(_BOOL, event_loop, _DYN );
 DEFINE_PRIM(_VOID, quit, _NO_ARG);
 DEFINE_PRIM(_VOID, delay, _I32);
 DEFINE_PRIM(_I32, get_screen_width, _NO_ARG);
@@ -412,6 +412,7 @@ DEFINE_PRIM(_BOOL, detect_win32, _NO_ARG);
 DEFINE_PRIM(_VOID, text_input, _BOOL);
 DEFINE_PRIM(_I32, set_relative_mouse_mode, _BOOL);
 DEFINE_PRIM(_BYTES, detect_keyboard_layout, _NO_ARG);
+DEFINE_PRIM(_BOOL, hint_value, _BYTES _BYTES);
 
 // Window
 

+ 1 - 1
libs/sdl/sdl/Sdl.hx

@@ -49,7 +49,7 @@ class Sdl {
 	static function glOptions( major : Int, minor : Int, depth : Int, stencil : Int, flags : Int, samples : Int ) {}
 
 	static function initOnce() return false;
-	static function eventLoop( e : Event ) return false;
+	static function eventLoop( e : Dynamic ) return false;
 	static function hintValue( name : hl.Bytes, value : hl.Bytes ) return false;
 
 	static var event = new Event();