sdl2.monkey2 38 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131
  1. Namespace sdl2
  2. #Import "<libc>"
  3. #Import "<gles20>"
  4. #Import "SDL/include/*.h"
  5. #Import "<SDL.h>"
  6. #Import "makefile.monkey2"
  7. Using libc
  8. Extern
  9. Struct SDL_Surface
  10. End
  11. Enum SDL_bool
  12. End
  13. Const SDL_FALSE:SDL_bool
  14. Const SDL_TRUE:SDL_bool
  15. '${EXTERN}
  16. 'FILE="sdl2/SDL_rwops.h"
  17. Struct SDL_RWops
  18. End
  19. Const RW_SEEK_SET:Int
  20. Const RW_SEEK_CUR:Int
  21. Const RW_SEEK_END:Int
  22. Function SDL_RWFromMem:SDL_RWops Ptr( mem:Void Ptr,size:Int )
  23. Function SDL_RWFromFile:SDL_RWops Ptr( file:CString,mode:CString )
  24. Function SDL_RWsize:Long( ops:SDL_RWops Ptr )
  25. Function SDL_RWtell:Long( ops:SDL_RWops Ptr )
  26. Function SDL_RWseek:Long( ops:SDL_RWops Ptr,offset:Long,whence:Int )
  27. Function SDL_RWread:Long( ops:SDL_RWops Ptr,buf:Void Ptr,size:Long,count:Long )
  28. Function SDL_RWwrite:Long( ops:SDL_RWops Ptr,buf:Void Ptr,size:Long,count:Long )
  29. Function SDL_RWclose:Int( ops:SDL_RWops Ptr )
  30. 'FILE=sdl2/SDL_hints.h
  31. Function SDL_SetHint( name:CString,value:CString )
  32. 'FILE="sdl2/SDL.h"
  33. Const SDL_INIT_TIMER:Int
  34. Const SDL_INIT_AUDIO:Int
  35. Const SDL_INIT_VIDEO:Int
  36. Const SDL_INIT_JOYSTICK:Int
  37. Const SDL_INIT_HAPTIC:Int
  38. Const SDL_INIT_GAMECONTROLLER:Int
  39. Const SDL_INIT_EVENTS:Int
  40. Const SDL_INIT_NOPARACHUTE:Int
  41. Const SDL_INIT_EVERYTHING:Int
  42. Function SDL_Init:Int(flags_:Int)
  43. Function SDL_InitSubSystem:Int(flags_:Int)
  44. Function SDL_QuitSubSystem:Void(flags_:Int)
  45. Function SDL_WasInit:Int(flags_:Int)
  46. Function SDL_Quit:Void()
  47. 'FILE="sdl2/SDL_error.h"
  48. Function SDL_GetError:char_t Ptr()
  49. Function SDL_ClearError:Void()
  50. Const SDL_OutOfMemory:Int
  51. Const SDL_Unsupported:Int
  52. Const SDL_InvalidParamError:Int
  53. Enum SDL_errorcode
  54. End
  55. Const SDL_ENOMEM:SDL_errorcode
  56. Const SDL_EFREAD:SDL_errorcode
  57. Const SDL_EFWRITE:SDL_errorcode
  58. Const SDL_EFSEEK:SDL_errorcode
  59. Const SDL_UNSUPPORTED:SDL_errorcode
  60. Const SDL_LASTERROR:SDL_errorcode
  61. Function SDL_Error:Int(code_:SDL_errorcode)
  62. 'FILE="sdl2/SDL_timer.h"
  63. Function SDL_GetTicks:Int()
  64. Const SDL_TICKS_PASSED:Int
  65. Function SDL_GetPerformanceCounter:Long()
  66. Function SDL_GetPerformanceFrequency:Long()
  67. Function SDL_Delay:Void(ms_:Int)
  68. Alias SDL_TimerCallback:Int(Int,Void Ptr)
  69. Alias SDL_TimerID:Int
  70. Function SDL_AddTimer:SDL_TimerID(interval_:Int,callback_:SDL_TimerCallback,param_:Void Ptr)
  71. Function SDL_RemoveTimer:SDL_bool(id_:SDL_TimerID)
  72. 'FILE="sdl2/SDL_rect.h"
  73. Struct SDL_Point
  74. Field x:Int
  75. Field y:Int
  76. End
  77. Struct SDL_Rect
  78. Field x:Int
  79. Field y:Int
  80. Field w:Int
  81. Field h:Int
  82. End
  83. Function SDL_PointInRect:SDL_bool(p_:SDL_Point Ptr,r_:SDL_Rect Ptr)
  84. Function SDL_RectEmpty:SDL_bool(r_:SDL_Rect Ptr)
  85. Function SDL_RectEquals:SDL_bool(a_:SDL_Rect Ptr,b_:SDL_Rect Ptr)
  86. Function SDL_HasIntersection:SDL_bool(A_:SDL_Rect Ptr,B_:SDL_Rect Ptr)
  87. Function SDL_IntersectRect:SDL_bool(A_:SDL_Rect Ptr,B_:SDL_Rect Ptr,result_:SDL_Rect Ptr)
  88. Function SDL_UnionRect:Void(A_:SDL_Rect Ptr,B_:SDL_Rect Ptr,result_:SDL_Rect Ptr)
  89. Function SDL_EnclosePoints:SDL_bool(points_:SDL_Point Ptr,count_:Int,clip_:SDL_Rect Ptr,result_:SDL_Rect Ptr)
  90. Function SDL_IntersectRectAndLine:SDL_bool(rect_:SDL_Rect Ptr,X1_:Int Ptr,Y1_:Int Ptr,X2_:Int Ptr,Y2_:Int Ptr)
  91. 'FILE="sdl2/sdl_video.h"
  92. Struct SDL_DisplayMode
  93. Field format:Int
  94. Field w:Int
  95. Field h:Int
  96. Field refresh_rate:Int
  97. Field driverdata:Void Ptr
  98. End
  99. Struct SDL_Window
  100. Field w:Int
  101. Field h:int
  102. End
  103. Enum SDL_WindowFlags
  104. End
  105. Const SDL_WINDOW_FULLSCREEN:SDL_WindowFlags
  106. Const SDL_WINDOW_OPENGL:SDL_WindowFlags
  107. Const SDL_WINDOW_SHOWN:SDL_WindowFlags
  108. Const SDL_WINDOW_HIDDEN:SDL_WindowFlags
  109. Const SDL_WINDOW_BORDERLESS:SDL_WindowFlags
  110. Const SDL_WINDOW_RESIZABLE:SDL_WindowFlags
  111. Const SDL_WINDOW_MINIMIZED:SDL_WindowFlags
  112. Const SDL_WINDOW_MAXIMIZED:SDL_WindowFlags
  113. Const SDL_WINDOW_INPUT_GRABBED:SDL_WindowFlags
  114. Const SDL_WINDOW_INPUT_FOCUS:SDL_WindowFlags
  115. Const SDL_WINDOW_MOUSE_FOCUS:SDL_WindowFlags
  116. Const SDL_WINDOW_FULLSCREEN_DESKTOP:SDL_WindowFlags
  117. Const SDL_WINDOW_FOREIGN:SDL_WindowFlags
  118. Const SDL_WINDOW_ALLOW_HIGHDPI:SDL_WindowFlags
  119. Const SDL_WINDOW_MOUSE_CAPTURE:SDL_WindowFlags
  120. Const SDL_WINDOW_FLOATING:SDL_WindowFlags
  121. Const SDL_WINDOWPOS_UNDEFINED_MASK:Int
  122. Const SDL_WINDOWPOS_UNDEFINED_DISPLAY:Int
  123. Const SDL_WINDOWPOS_UNDEFINED:Int
  124. Const SDL_WINDOWPOS_ISUNDEFINED:Int
  125. Const SDL_WINDOWPOS_CENTERED_MASK:Int
  126. Const SDL_WINDOWPOS_CENTERED_DISPLAY:Int
  127. Const SDL_WINDOWPOS_CENTERED:Int
  128. Const SDL_WINDOWPOS_ISCENTERED:Int
  129. Enum SDL_WindowEventID
  130. End
  131. Const SDL_WINDOWEVENT_NONE:SDL_WindowEventID
  132. Const SDL_WINDOWEVENT_SHOWN:SDL_WindowEventID
  133. Const SDL_WINDOWEVENT_HIDDEN:SDL_WindowEventID
  134. Const SDL_WINDOWEVENT_EXPOSED:SDL_WindowEventID
  135. Const SDL_WINDOWEVENT_MOVED:SDL_WindowEventID
  136. Const SDL_WINDOWEVENT_RESIZED:SDL_WindowEventID
  137. Const SDL_WINDOWEVENT_SIZE_CHANGED:SDL_WindowEventID
  138. Const SDL_WINDOWEVENT_MINIMIZED:SDL_WindowEventID
  139. Const SDL_WINDOWEVENT_MAXIMIZED:SDL_WindowEventID
  140. Const SDL_WINDOWEVENT_RESTORED:SDL_WindowEventID
  141. Const SDL_WINDOWEVENT_ENTER:SDL_WindowEventID
  142. Const SDL_WINDOWEVENT_LEAVE:SDL_WindowEventID
  143. Const SDL_WINDOWEVENT_FOCUS_GAINED:SDL_WindowEventID
  144. Const SDL_WINDOWEVENT_FOCUS_LOST:SDL_WindowEventID
  145. Const SDL_WINDOWEVENT_CLOSE:SDL_WindowEventID
  146. Alias SDL_GLContext:Void Ptr
  147. Enum SDL_GLattr
  148. End
  149. Const SDL_GL_RED_SIZE:SDL_GLattr
  150. Const SDL_GL_GREEN_SIZE:SDL_GLattr
  151. Const SDL_GL_BLUE_SIZE:SDL_GLattr
  152. Const SDL_GL_ALPHA_SIZE:SDL_GLattr
  153. Const SDL_GL_BUFFER_SIZE:SDL_GLattr
  154. Const SDL_GL_DOUBLEBUFFER:SDL_GLattr
  155. Const SDL_GL_DEPTH_SIZE:SDL_GLattr
  156. Const SDL_GL_STENCIL_SIZE:SDL_GLattr
  157. Const SDL_GL_ACCUM_RED_SIZE:SDL_GLattr
  158. Const SDL_GL_ACCUM_GREEN_SIZE:SDL_GLattr
  159. Const SDL_GL_ACCUM_BLUE_SIZE:SDL_GLattr
  160. Const SDL_GL_ACCUM_ALPHA_SIZE:SDL_GLattr
  161. Const SDL_GL_STEREO:SDL_GLattr
  162. Const SDL_GL_MULTISAMPLEBUFFERS:SDL_GLattr
  163. Const SDL_GL_MULTISAMPLESAMPLES:SDL_GLattr
  164. Const SDL_GL_ACCELERATED_VISUAL:SDL_GLattr
  165. Const SDL_GL_RETAINED_BACKING:SDL_GLattr
  166. Const SDL_GL_CONTEXT_MAJOR_VERSION:SDL_GLattr
  167. Const SDL_GL_CONTEXT_MINOR_VERSION:SDL_GLattr
  168. Const SDL_GL_CONTEXT_EGL:SDL_GLattr
  169. Const SDL_GL_CONTEXT_FLAGS:SDL_GLattr
  170. Const SDL_GL_CONTEXT_PROFILE_MASK:SDL_GLattr
  171. Const SDL_GL_SHARE_WITH_CURRENT_CONTEXT:SDL_GLattr
  172. Const SDL_GL_FRAMEBUFFER_SRGB_CAPABLE:SDL_GLattr
  173. Const SDL_GL_CONTEXT_RELEASE_BEHAVIOR:SDL_GLattr
  174. Enum SDL_GLprofile
  175. End
  176. Const SDL_GL_CONTEXT_PROFILE_CORE:SDL_GLprofile
  177. Const SDL_GL_CONTEXT_PROFILE_COMPATIBILITY:SDL_GLprofile
  178. Const SDL_GL_CONTEXT_PROFILE_ES:SDL_GLprofile
  179. Enum SDL_GLcontextFlag
  180. End
  181. Const SDL_GL_CONTEXT_DEBUG_FLAG:SDL_GLcontextFlag
  182. Const SDL_GL_CONTEXT_FORWARD_COMPATIBLE_FLAG:SDL_GLcontextFlag
  183. Const SDL_GL_CONTEXT_ROBUST_ACCESS_FLAG:SDL_GLcontextFlag
  184. Const SDL_GL_CONTEXT_RESET_ISOLATION_FLAG:SDL_GLcontextFlag
  185. Enum SDL_GLcontextReleaseFlag
  186. End
  187. Const SDL_GL_CONTEXT_RELEASE_BEHAVIOR_NONE:SDL_GLcontextReleaseFlag
  188. Const SDL_GL_CONTEXT_RELEASE_BEHAVIOR_FLUSH:SDL_GLcontextReleaseFlag
  189. Function SDL_GetNumVideoDrivers:Int()
  190. Function SDL_GetVideoDriver:char_t Ptr(index_:Int)
  191. Function SDL_VideoInit:Int(driver_name_:CString)
  192. Function SDL_VideoQuit:Void()
  193. Function SDL_GetCurrentVideoDriver:char_t Ptr()
  194. Function SDL_GetNumVideoDisplays:Int()
  195. Function SDL_GetDisplayName:char_t Ptr(displayIndex_:Int)
  196. Function SDL_GetDisplayBounds:Int(displayIndex_:Int,rect_:SDL_Rect Ptr)
  197. Function SDL_GetDisplayDPI:Int( displayIndex:Int,ddpi:Float Ptr,hdpi:Float Ptr,vdpi:Float Ptr )
  198. Function SDL_GetNumDisplayModes:Int(displayIndex_:Int)
  199. Function SDL_GetDisplayMode:Int(displayIndex_:Int,modeIndex_:Int,mode_:SDL_DisplayMode Ptr)
  200. Function SDL_GetDesktopDisplayMode:Int(displayIndex_:Int,mode_:SDL_DisplayMode Ptr)
  201. Function SDL_GetCurrentDisplayMode:Int(displayIndex_:Int,mode_:SDL_DisplayMode Ptr)
  202. Function SDL_GetClosestDisplayMode:SDL_DisplayMode Ptr(displayIndex_:Int,mode_:SDL_DisplayMode Ptr,closest_:SDL_DisplayMode Ptr)
  203. Function SDL_GetWindowDisplayIndex:Int(window_:SDL_Window Ptr)
  204. Function SDL_SetWindowDisplayMode:Int(window_:SDL_Window Ptr,mode_:SDL_DisplayMode Ptr)
  205. Function SDL_GetWindowDisplayMode:Int(window_:SDL_Window Ptr,mode_:SDL_DisplayMode Ptr)
  206. Function SDL_GetWindowPixelFormat:Int(window_:SDL_Window Ptr)
  207. Function SDL_CreateWindow:SDL_Window Ptr(title_:CString,x_:Int,y_:Int,w_:Int,h_:Int,flags_:Int)
  208. Function SDL_CreateWindowFrom:SDL_Window Ptr(data_:Void Ptr)
  209. Function SDL_GetWindowID:Int(window_:SDL_Window Ptr)
  210. Function SDL_GetWindowFromID:SDL_Window Ptr(id_:Int)
  211. Function SDL_GetWindowFlags:Int(window_:SDL_Window Ptr)
  212. Function SDL_SetWindowTitle:Void(window_:SDL_Window Ptr,title_:CString)
  213. Function SDL_GetWindowTitle:char_t Ptr(window_:SDL_Window Ptr)
  214. Function SDL_SetWindowIcon:Void(window_:SDL_Window Ptr,icon_:SDL_Surface Ptr)
  215. Function SDL_SetWindowData:Void Ptr(window_:SDL_Window Ptr,name_:CString,userdata_:Void Ptr)
  216. Function SDL_GetWindowData:Void Ptr(window_:SDL_Window Ptr,name_:CString)
  217. Function SDL_SetWindowPosition:Void(window_:SDL_Window Ptr,x_:Int,y_:Int)
  218. Function SDL_GetWindowPosition:Void(window_:SDL_Window Ptr,x_:Int Ptr,y_:Int Ptr)
  219. Function SDL_SetWindowSize:Void(window_:SDL_Window Ptr,w_:Int,h_:Int)
  220. Function SDL_GetWindowSize:Void(window_:SDL_Window Ptr,w_:Int Ptr,h_:Int Ptr)
  221. Function SDL_SetWindowMinimumSize:Void(window_:SDL_Window Ptr,min_w_:Int,min_h_:Int)
  222. Function SDL_GetWindowMinimumSize:Void(window_:SDL_Window Ptr,w_:Int Ptr,h_:Int Ptr)
  223. Function SDL_SetWindowMaximumSize:Void(window_:SDL_Window Ptr,max_w_:Int,max_h_:Int)
  224. Function SDL_GetWindowMaximumSize:Void(window_:SDL_Window Ptr,w_:Int Ptr,h_:Int Ptr)
  225. Function SDL_SetWindowBordered:Void(window_:SDL_Window Ptr,bordered_:SDL_bool)
  226. Function SDL_ShowWindow:Void(window_:SDL_Window Ptr)
  227. Function SDL_HideWindow:Void(window_:SDL_Window Ptr)
  228. Function SDL_RaiseWindow:Void(window_:SDL_Window Ptr)
  229. Function SDL_MaximizeWindow:Void(window_:SDL_Window Ptr)
  230. Function SDL_MinimizeWindow:Void(window_:SDL_Window Ptr)
  231. Function SDL_RestoreWindow:Void(window_:SDL_Window Ptr)
  232. Function SDL_SetWindowFullscreen:Int(window_:SDL_Window Ptr,flags_:Int)
  233. Function SDL_GetWindowSurface:SDL_Surface Ptr(window_:SDL_Window Ptr)
  234. Function SDL_UpdateWindowSurface:Int(window_:SDL_Window Ptr)
  235. Function SDL_UpdateWindowSurfaceRects:Int(window_:SDL_Window Ptr,rects_:SDL_Rect Ptr,numrects_:Int)
  236. Function SDL_SetWindowGrab:Void(window_:SDL_Window Ptr,grabbed_:SDL_bool)
  237. Function SDL_GetWindowGrab:SDL_bool(window_:SDL_Window Ptr)
  238. Function SDL_SetWindowBrightness:Int(window_:SDL_Window Ptr,brightness_:Float)
  239. Function SDL_GetWindowBrightness:Float(window_:SDL_Window Ptr)
  240. Function SDL_SetWindowGammaRamp:Int(window_:SDL_Window Ptr,red_:Short Ptr,green_:Short Ptr,blue_:Short Ptr)
  241. Function SDL_GetWindowGammaRamp:Int(window_:SDL_Window Ptr,red_:Short Ptr,green_:Short Ptr,blue_:Short Ptr)
  242. Enum SDL_HitTestResult
  243. End
  244. Const SDL_HITTEST_NORMAL:SDL_HitTestResult
  245. Const SDL_HITTEST_DRAGGABLE:SDL_HitTestResult
  246. Const SDL_HITTEST_RESIZE_TOPLEFT:SDL_HitTestResult
  247. Const SDL_HITTEST_RESIZE_TOP:SDL_HitTestResult
  248. Const SDL_HITTEST_RESIZE_TOPRIGHT:SDL_HitTestResult
  249. Const SDL_HITTEST_RESIZE_RIGHT:SDL_HitTestResult
  250. Const SDL_HITTEST_RESIZE_BOTTOMRIGHT:SDL_HitTestResult
  251. Const SDL_HITTEST_RESIZE_BOTTOM:SDL_HitTestResult
  252. Const SDL_HITTEST_RESIZE_BOTTOMLEFT:SDL_HitTestResult
  253. Const SDL_HITTEST_RESIZE_LEFT:SDL_HitTestResult
  254. Alias SDL_HitTest:SDL_HitTestResult(SDL_Window Ptr,SDL_Point Ptr,Void Ptr)
  255. Function SDL_SetWindowHitTest:Int(window_:SDL_Window Ptr,callback_:SDL_HitTest,callback_data_:Void Ptr)
  256. Function SDL_DestroyWindow:Void(window_:SDL_Window Ptr)
  257. Function SDL_IsScreenSaverEnabled:SDL_bool()
  258. Function SDL_EnableScreenSaver:Void()
  259. Function SDL_DisableScreenSaver:Void()
  260. Function SDL_GL_LoadLibrary:Int(path_:CString)
  261. Function SDL_GL_GetProcAddress:Void Ptr(proc_:CString)
  262. Function SDL_GL_UnloadLibrary:Void()
  263. Function SDL_GL_ExtensionSupported:SDL_bool(extension_:CString)
  264. Function SDL_GL_ResetAttributes:Void()
  265. Function SDL_GL_SetAttribute:Int(attr_:SDL_GLattr,value_:Int)
  266. Function SDL_GL_GetAttribute:Int(attr_:SDL_GLattr,value_:Int Ptr)
  267. Function SDL_GL_CreateContext:SDL_GLContext(window_:SDL_Window Ptr)
  268. Function SDL_GL_MakeCurrent:Int(window_:SDL_Window Ptr,context_:SDL_GLContext)
  269. Function SDL_GL_GetCurrentWindow:SDL_Window Ptr()
  270. Function SDL_GL_GetCurrentContext:SDL_GLContext()
  271. Function SDL_GL_GetDrawableSize:Void(window_:SDL_Window Ptr,w_:Int Ptr,h_:Int Ptr)
  272. Function SDL_GL_SetSwapInterval:Int(interval_:Int)
  273. Function SDL_GL_GetSwapInterval:Int()
  274. Function SDL_GL_SwapWindow:Void(window_:SDL_Window Ptr)
  275. Function SDL_GL_DeleteContext:Void(context_:SDL_GLContext)
  276. 'FILE="sdl2/sdl_touch.h"
  277. Alias SDL_TouchID:Long
  278. Alias SDL_FingerID:Long
  279. Struct SDL_Finger
  280. Field id:SDL_FingerID
  281. Field x:Float
  282. Field y:Float
  283. Field pressure:Float
  284. End
  285. Const SDL_TOUCH_MOUSEID:Int
  286. Function SDL_GetNumTouchDevices:Int()
  287. Function SDL_GetTouchDevice:SDL_TouchID(index_:Int)
  288. Function SDL_GetNumTouchFingers:Int(touchID_:SDL_TouchID)
  289. Function SDL_GetTouchFinger:SDL_Finger Ptr(touchID_:SDL_TouchID,index_:Int)
  290. 'FILE="sdl2/sdl_mouse.h"
  291. Struct SDL_Cursor
  292. End
  293. Enum SDL_SystemCursor
  294. End
  295. Const SDL_SYSTEM_CURSOR_ARROW:SDL_SystemCursor
  296. Const SDL_SYSTEM_CURSOR_IBEAM:SDL_SystemCursor
  297. Const SDL_SYSTEM_CURSOR_WAIT:SDL_SystemCursor
  298. Const SDL_SYSTEM_CURSOR_CROSSHAIR:SDL_SystemCursor
  299. Const SDL_SYSTEM_CURSOR_WAITARROW:SDL_SystemCursor
  300. Const SDL_SYSTEM_CURSOR_SIZENWSE:SDL_SystemCursor
  301. Const SDL_SYSTEM_CURSOR_SIZENESW:SDL_SystemCursor
  302. Const SDL_SYSTEM_CURSOR_SIZEWE:SDL_SystemCursor
  303. Const SDL_SYSTEM_CURSOR_SIZENS:SDL_SystemCursor
  304. Const SDL_SYSTEM_CURSOR_SIZEALL:SDL_SystemCursor
  305. Const SDL_SYSTEM_CURSOR_NO:SDL_SystemCursor
  306. Const SDL_SYSTEM_CURSOR_HAND:SDL_SystemCursor
  307. Const SDL_NUM_SYSTEM_CURSORS:SDL_SystemCursor
  308. Enum SDL_MouseWheelDirection
  309. End
  310. Const SDL_MOUSEWHEEL_NORMAL:SDL_MouseWheelDirection
  311. Const SDL_MOUSEWHEEL_FLIPPED:SDL_MouseWheelDirection
  312. Function SDL_GetMouseFocus:SDL_Window Ptr()
  313. Function SDL_GetMouseState:Int(x_:Int Ptr,y_:Int Ptr)
  314. Function SDL_GetGlobalMouseState:Int(x_:Int Ptr,y_:Int Ptr)
  315. Function SDL_GetRelativeMouseState:Int(x_:Int Ptr,y_:Int Ptr)
  316. Function SDL_WarpMouseInWindow:Void(window_:SDL_Window Ptr,x_:Int,y_:Int)
  317. Function SDL_WarpMouseGlobal:Void(x_:Int,y_:Int)
  318. Function SDL_SetRelativeMouseMode:Int(enabled_:SDL_bool)
  319. Function SDL_CaptureMouse:Int(enabled_:SDL_bool)
  320. Function SDL_GetRelativeMouseMode:SDL_bool()
  321. Function SDL_CreateCursor:SDL_Cursor Ptr(data_:CString,mask_:CString,w_:Int,h_:Int,hot_x_:Int,hot_y_:Int)
  322. Function SDL_CreateColorCursor:SDL_Cursor Ptr(surface_:SDL_Surface Ptr,hot_x_:Int,hot_y_:Int)
  323. Function SDL_CreateSystemCursor:SDL_Cursor Ptr(id_:SDL_SystemCursor)
  324. Function SDL_SetCursor:Void(cursor_:SDL_Cursor Ptr)
  325. Function SDL_GetCursor:SDL_Cursor Ptr()
  326. Function SDL_GetDefaultCursor:SDL_Cursor Ptr()
  327. Function SDL_FreeCursor:Void(cursor_:SDL_Cursor Ptr)
  328. Function SDL_ShowCursor:Int(toggle_:Int)
  329. Const SDL_BUTTON:Int
  330. Const SDL_BUTTON_LEFT:Int
  331. Const SDL_BUTTON_MIDDLE:Int
  332. Const SDL_BUTTON_RIGHT:Int
  333. Const SDL_BUTTON_X1:Int
  334. Const SDL_BUTTON_X2:Int
  335. Const SDL_BUTTON_LMASK:Int
  336. Const SDL_BUTTON_MMASK:Int
  337. Const SDL_BUTTON_RMASK:Int
  338. Const SDL_BUTTON_X1MASK:Int
  339. Const SDL_BUTTON_X2MASK:Int
  340. 'FILE="sdl2/sdl_joystick.h"
  341. Struct SDL_Joystick
  342. End
  343. Struct SDL_JoystickGUID
  344. End
  345. Alias SDL_JoystickID:Int
  346. Function SDL_NumJoysticks:Int()
  347. Function SDL_JoystickNameForIndex:char_t Ptr(device_index_:Int)
  348. Function SDL_JoystickOpen:SDL_Joystick Ptr(device_index_:Int)
  349. Function SDL_JoystickName:char_t Ptr(joystick_:SDL_Joystick Ptr)
  350. Function SDL_JoystickGetDeviceGUID:SDL_JoystickGUID(device_index_:Int)
  351. Function SDL_JoystickGetGUID:SDL_JoystickGUID(joystick_:SDL_Joystick Ptr)
  352. Function SDL_JoystickGetGUIDString:Void(guid_:SDL_JoystickGUID,pszGUID_:char_t Ptr ,cbGUID_:Int)
  353. Function SDL_JoystickGetGUIDFromString:SDL_JoystickGUID(pchGUID_:CString)
  354. Function SDL_JoystickGetAttached:SDL_bool(joystick_:SDL_Joystick Ptr)
  355. Function SDL_JoystickInstanceID:SDL_JoystickID(joystick_:SDL_Joystick Ptr)
  356. Function SDL_JoystickNumAxes:Int(joystick_:SDL_Joystick Ptr)
  357. Function SDL_JoystickNumBalls:Int(joystick_:SDL_Joystick Ptr)
  358. Function SDL_JoystickNumHats:Int(joystick_:SDL_Joystick Ptr)
  359. Function SDL_JoystickNumButtons:Int(joystick_:SDL_Joystick Ptr)
  360. Function SDL_JoystickUpdate:Void()
  361. Function SDL_JoystickEventState:Int(state_:Int)
  362. Function SDL_JoystickGetAxis:Short(joystick_:SDL_Joystick Ptr,axis_:Int)
  363. Const SDL_HAT_CENTERED:Int
  364. Const SDL_HAT_UP:Int
  365. Const SDL_HAT_RIGHT:Int
  366. Const SDL_HAT_DOWN:Int
  367. Const SDL_HAT_LEFT:Int
  368. Const SDL_HAT_RIGHTUP:Int
  369. Const SDL_HAT_RIGHTDOWN:Int
  370. Const SDL_HAT_LEFTUP:Int
  371. Const SDL_HAT_LEFTDOWN:Int
  372. Function SDL_JoystickGetHat:Byte(joystick_:SDL_Joystick Ptr,hat_:Int)
  373. Function SDL_JoystickGetBall:Int(joystick_:SDL_Joystick Ptr,ball_:Int,dx_:Int Ptr,dy_:Int Ptr)
  374. Function SDL_JoystickGetButton:Byte(joystick_:SDL_Joystick Ptr,button_:Int)
  375. Function SDL_JoystickClose:Void(joystick_:SDL_Joystick Ptr)
  376. 'FILE="sdl2/sdl_keycode.h"
  377. Alias SDL_Keycode:Int
  378. Const SDL_SCANCODE_TO_KEYCODE:Int
  379. Enum SDL_Keymod
  380. End
  381. Const KMOD_NONE:SDL_Keymod
  382. Const KMOD_LSHIFT:SDL_Keymod
  383. Const KMOD_RSHIFT:SDL_Keymod
  384. Const KMOD_LCTRL:SDL_Keymod
  385. Const KMOD_RCTRL:SDL_Keymod
  386. Const KMOD_LALT:SDL_Keymod
  387. Const KMOD_RALT:SDL_Keymod
  388. Const KMOD_LGUI:SDL_Keymod
  389. Const KMOD_RGUI:SDL_Keymod
  390. Const KMOD_NUM:SDL_Keymod
  391. Const KMOD_CAPS:SDL_Keymod
  392. Const KMOD_MODE:SDL_Keymod
  393. Const KMOD_RESERVED:SDL_Keymod
  394. 'FILE="sdl2/sdl_scancode.h"
  395. Enum SDL_Scancode
  396. End
  397. Const SDL_SCANCODE_UNKNOWN:SDL_Scancode
  398. Const SDL_SCANCODE_A:SDL_Scancode
  399. Const SDL_SCANCODE_B:SDL_Scancode
  400. Const SDL_SCANCODE_C:SDL_Scancode
  401. Const SDL_SCANCODE_D:SDL_Scancode
  402. Const SDL_SCANCODE_E:SDL_Scancode
  403. Const SDL_SCANCODE_F:SDL_Scancode
  404. Const SDL_SCANCODE_G:SDL_Scancode
  405. Const SDL_SCANCODE_H:SDL_Scancode
  406. Const SDL_SCANCODE_I:SDL_Scancode
  407. Const SDL_SCANCODE_J:SDL_Scancode
  408. Const SDL_SCANCODE_K:SDL_Scancode
  409. Const SDL_SCANCODE_L:SDL_Scancode
  410. Const SDL_SCANCODE_M:SDL_Scancode
  411. Const SDL_SCANCODE_N:SDL_Scancode
  412. Const SDL_SCANCODE_O:SDL_Scancode
  413. Const SDL_SCANCODE_P:SDL_Scancode
  414. Const SDL_SCANCODE_Q:SDL_Scancode
  415. Const SDL_SCANCODE_R:SDL_Scancode
  416. Const SDL_SCANCODE_S:SDL_Scancode
  417. Const SDL_SCANCODE_T:SDL_Scancode
  418. Const SDL_SCANCODE_U:SDL_Scancode
  419. Const SDL_SCANCODE_V:SDL_Scancode
  420. Const SDL_SCANCODE_W:SDL_Scancode
  421. Const SDL_SCANCODE_X:SDL_Scancode
  422. Const SDL_SCANCODE_Y:SDL_Scancode
  423. Const SDL_SCANCODE_Z:SDL_Scancode
  424. Const SDL_SCANCODE_1:SDL_Scancode
  425. Const SDL_SCANCODE_2:SDL_Scancode
  426. Const SDL_SCANCODE_3:SDL_Scancode
  427. Const SDL_SCANCODE_4:SDL_Scancode
  428. Const SDL_SCANCODE_5:SDL_Scancode
  429. Const SDL_SCANCODE_6:SDL_Scancode
  430. Const SDL_SCANCODE_7:SDL_Scancode
  431. Const SDL_SCANCODE_8:SDL_Scancode
  432. Const SDL_SCANCODE_9:SDL_Scancode
  433. Const SDL_SCANCODE_0:SDL_Scancode
  434. Const SDL_SCANCODE_RETURN:SDL_Scancode
  435. Const SDL_SCANCODE_ESCAPE:SDL_Scancode
  436. Const SDL_SCANCODE_BACKSPACE:SDL_Scancode
  437. Const SDL_SCANCODE_TAB:SDL_Scancode
  438. Const SDL_SCANCODE_SPACE:SDL_Scancode
  439. Const SDL_SCANCODE_MINUS:SDL_Scancode
  440. Const SDL_SCANCODE_EQUALS:SDL_Scancode
  441. Const SDL_SCANCODE_LEFTBRACKET:SDL_Scancode
  442. Const SDL_SCANCODE_RIGHTBRACKET:SDL_Scancode
  443. Const SDL_SCANCODE_BACKSLASH:SDL_Scancode
  444. Const SDL_SCANCODE_NONUSHASH:SDL_Scancode
  445. Const SDL_SCANCODE_SEMICOLON:SDL_Scancode
  446. Const SDL_SCANCODE_APOSTROPHE:SDL_Scancode
  447. Const SDL_SCANCODE_GRAVE:SDL_Scancode
  448. Const SDL_SCANCODE_COMMA:SDL_Scancode
  449. Const SDL_SCANCODE_PERIOD:SDL_Scancode
  450. Const SDL_SCANCODE_SLASH:SDL_Scancode
  451. Const SDL_SCANCODE_CAPSLOCK:SDL_Scancode
  452. Const SDL_SCANCODE_F1:SDL_Scancode
  453. Const SDL_SCANCODE_F2:SDL_Scancode
  454. Const SDL_SCANCODE_F3:SDL_Scancode
  455. Const SDL_SCANCODE_F4:SDL_Scancode
  456. Const SDL_SCANCODE_F5:SDL_Scancode
  457. Const SDL_SCANCODE_F6:SDL_Scancode
  458. Const SDL_SCANCODE_F7:SDL_Scancode
  459. Const SDL_SCANCODE_F8:SDL_Scancode
  460. Const SDL_SCANCODE_F9:SDL_Scancode
  461. Const SDL_SCANCODE_F10:SDL_Scancode
  462. Const SDL_SCANCODE_F11:SDL_Scancode
  463. Const SDL_SCANCODE_F12:SDL_Scancode
  464. Const SDL_SCANCODE_PRINTSCREEN:SDL_Scancode
  465. Const SDL_SCANCODE_SCROLLLOCK:SDL_Scancode
  466. Const SDL_SCANCODE_PAUSE:SDL_Scancode
  467. Const SDL_SCANCODE_INSERT:SDL_Scancode
  468. Const SDL_SCANCODE_HOME:SDL_Scancode
  469. Const SDL_SCANCODE_PAGEUP:SDL_Scancode
  470. Const SDL_SCANCODE_DELETE:SDL_Scancode
  471. Const SDL_SCANCODE_END:SDL_Scancode
  472. Const SDL_SCANCODE_PAGEDOWN:SDL_Scancode
  473. Const SDL_SCANCODE_RIGHT:SDL_Scancode
  474. Const SDL_SCANCODE_LEFT:SDL_Scancode
  475. Const SDL_SCANCODE_DOWN:SDL_Scancode
  476. Const SDL_SCANCODE_UP:SDL_Scancode
  477. Const SDL_SCANCODE_NUMLOCKCLEAR:SDL_Scancode
  478. Const SDL_SCANCODE_KP_DIVIDE:SDL_Scancode
  479. Const SDL_SCANCODE_KP_MULTIPLY:SDL_Scancode
  480. Const SDL_SCANCODE_KP_MINUS:SDL_Scancode
  481. Const SDL_SCANCODE_KP_PLUS:SDL_Scancode
  482. Const SDL_SCANCODE_KP_ENTER:SDL_Scancode
  483. Const SDL_SCANCODE_KP_1:SDL_Scancode
  484. Const SDL_SCANCODE_KP_2:SDL_Scancode
  485. Const SDL_SCANCODE_KP_3:SDL_Scancode
  486. Const SDL_SCANCODE_KP_4:SDL_Scancode
  487. Const SDL_SCANCODE_KP_5:SDL_Scancode
  488. Const SDL_SCANCODE_KP_6:SDL_Scancode
  489. Const SDL_SCANCODE_KP_7:SDL_Scancode
  490. Const SDL_SCANCODE_KP_8:SDL_Scancode
  491. Const SDL_SCANCODE_KP_9:SDL_Scancode
  492. Const SDL_SCANCODE_KP_0:SDL_Scancode
  493. Const SDL_SCANCODE_KP_PERIOD:SDL_Scancode
  494. Const SDL_SCANCODE_NONUSBACKSLASH:SDL_Scancode
  495. Const SDL_SCANCODE_APPLICATION:SDL_Scancode
  496. Const SDL_SCANCODE_POWER:SDL_Scancode
  497. Const SDL_SCANCODE_KP_EQUALS:SDL_Scancode
  498. Const SDL_SCANCODE_F13:SDL_Scancode
  499. Const SDL_SCANCODE_F14:SDL_Scancode
  500. Const SDL_SCANCODE_F15:SDL_Scancode
  501. Const SDL_SCANCODE_F16:SDL_Scancode
  502. Const SDL_SCANCODE_F17:SDL_Scancode
  503. Const SDL_SCANCODE_F18:SDL_Scancode
  504. Const SDL_SCANCODE_F19:SDL_Scancode
  505. Const SDL_SCANCODE_F20:SDL_Scancode
  506. Const SDL_SCANCODE_F21:SDL_Scancode
  507. Const SDL_SCANCODE_F22:SDL_Scancode
  508. Const SDL_SCANCODE_F23:SDL_Scancode
  509. Const SDL_SCANCODE_F24:SDL_Scancode
  510. Const SDL_SCANCODE_EXECUTE:SDL_Scancode
  511. Const SDL_SCANCODE_HELP:SDL_Scancode
  512. Const SDL_SCANCODE_MENU:SDL_Scancode
  513. Const SDL_SCANCODE_SELECT:SDL_Scancode
  514. Const SDL_SCANCODE_STOP:SDL_Scancode
  515. Const SDL_SCANCODE_AGAIN:SDL_Scancode
  516. Const SDL_SCANCODE_UNDO:SDL_Scancode
  517. Const SDL_SCANCODE_CUT:SDL_Scancode
  518. Const SDL_SCANCODE_COPY:SDL_Scancode
  519. Const SDL_SCANCODE_PASTE:SDL_Scancode
  520. Const SDL_SCANCODE_FIND:SDL_Scancode
  521. Const SDL_SCANCODE_MUTE:SDL_Scancode
  522. Const SDL_SCANCODE_VOLUMEUP:SDL_Scancode
  523. Const SDL_SCANCODE_VOLUMEDOWN:SDL_Scancode
  524. Const SDL_SCANCODE_KP_COMMA:SDL_Scancode
  525. Const SDL_SCANCODE_KP_EQUALSAS400:SDL_Scancode
  526. Const SDL_SCANCODE_INTERNATIONAL1:SDL_Scancode
  527. Const SDL_SCANCODE_INTERNATIONAL2:SDL_Scancode
  528. Const SDL_SCANCODE_INTERNATIONAL3:SDL_Scancode
  529. Const SDL_SCANCODE_INTERNATIONAL4:SDL_Scancode
  530. Const SDL_SCANCODE_INTERNATIONAL5:SDL_Scancode
  531. Const SDL_SCANCODE_INTERNATIONAL6:SDL_Scancode
  532. Const SDL_SCANCODE_INTERNATIONAL7:SDL_Scancode
  533. Const SDL_SCANCODE_INTERNATIONAL8:SDL_Scancode
  534. Const SDL_SCANCODE_INTERNATIONAL9:SDL_Scancode
  535. Const SDL_SCANCODE_LANG1:SDL_Scancode
  536. Const SDL_SCANCODE_LANG2:SDL_Scancode
  537. Const SDL_SCANCODE_LANG3:SDL_Scancode
  538. Const SDL_SCANCODE_LANG4:SDL_Scancode
  539. Const SDL_SCANCODE_LANG5:SDL_Scancode
  540. Const SDL_SCANCODE_LANG6:SDL_Scancode
  541. Const SDL_SCANCODE_LANG7:SDL_Scancode
  542. Const SDL_SCANCODE_LANG8:SDL_Scancode
  543. Const SDL_SCANCODE_LANG9:SDL_Scancode
  544. Const SDL_SCANCODE_ALTERASE:SDL_Scancode
  545. Const SDL_SCANCODE_SYSREQ:SDL_Scancode
  546. Const SDL_SCANCODE_CANCEL:SDL_Scancode
  547. Const SDL_SCANCODE_CLEAR:SDL_Scancode
  548. Const SDL_SCANCODE_PRIOR:SDL_Scancode
  549. Const SDL_SCANCODE_RETURN2:SDL_Scancode
  550. Const SDL_SCANCODE_SEPARATOR:SDL_Scancode
  551. Const SDL_SCANCODE_OUT:SDL_Scancode
  552. Const SDL_SCANCODE_OPER:SDL_Scancode
  553. Const SDL_SCANCODE_CLEARAGAIN:SDL_Scancode
  554. Const SDL_SCANCODE_CRSEL:SDL_Scancode
  555. Const SDL_SCANCODE_EXSEL:SDL_Scancode
  556. Const SDL_SCANCODE_KP_00:SDL_Scancode
  557. Const SDL_SCANCODE_KP_000:SDL_Scancode
  558. Const SDL_SCANCODE_THOUSANDSSEPARATOR:SDL_Scancode
  559. Const SDL_SCANCODE_DECIMALSEPARATOR:SDL_Scancode
  560. Const SDL_SCANCODE_CURRENCYUNIT:SDL_Scancode
  561. Const SDL_SCANCODE_CURRENCYSUBUNIT:SDL_Scancode
  562. Const SDL_SCANCODE_KP_LEFTPAREN:SDL_Scancode
  563. Const SDL_SCANCODE_KP_RIGHTPAREN:SDL_Scancode
  564. Const SDL_SCANCODE_KP_LEFTBRACE:SDL_Scancode
  565. Const SDL_SCANCODE_KP_RIGHTBRACE:SDL_Scancode
  566. Const SDL_SCANCODE_KP_TAB:SDL_Scancode
  567. Const SDL_SCANCODE_KP_BACKSPACE:SDL_Scancode
  568. Const SDL_SCANCODE_KP_A:SDL_Scancode
  569. Const SDL_SCANCODE_KP_B:SDL_Scancode
  570. Const SDL_SCANCODE_KP_C:SDL_Scancode
  571. Const SDL_SCANCODE_KP_D:SDL_Scancode
  572. Const SDL_SCANCODE_KP_E:SDL_Scancode
  573. Const SDL_SCANCODE_KP_F:SDL_Scancode
  574. Const SDL_SCANCODE_KP_XOR:SDL_Scancode
  575. Const SDL_SCANCODE_KP_POWER:SDL_Scancode
  576. Const SDL_SCANCODE_KP_PERCENT:SDL_Scancode
  577. Const SDL_SCANCODE_KP_LESS:SDL_Scancode
  578. Const SDL_SCANCODE_KP_GREATER:SDL_Scancode
  579. Const SDL_SCANCODE_KP_AMPERSAND:SDL_Scancode
  580. Const SDL_SCANCODE_KP_DBLAMPERSAND:SDL_Scancode
  581. Const SDL_SCANCODE_KP_VERTICALBAR:SDL_Scancode
  582. Const SDL_SCANCODE_KP_DBLVERTICALBAR:SDL_Scancode
  583. Const SDL_SCANCODE_KP_COLON:SDL_Scancode
  584. Const SDL_SCANCODE_KP_HASH:SDL_Scancode
  585. Const SDL_SCANCODE_KP_SPACE:SDL_Scancode
  586. Const SDL_SCANCODE_KP_AT:SDL_Scancode
  587. Const SDL_SCANCODE_KP_EXCLAM:SDL_Scancode
  588. Const SDL_SCANCODE_KP_MEMSTORE:SDL_Scancode
  589. Const SDL_SCANCODE_KP_MEMRECALL:SDL_Scancode
  590. Const SDL_SCANCODE_KP_MEMCLEAR:SDL_Scancode
  591. Const SDL_SCANCODE_KP_MEMADD:SDL_Scancode
  592. Const SDL_SCANCODE_KP_MEMSUBTRACT:SDL_Scancode
  593. Const SDL_SCANCODE_KP_MEMMULTIPLY:SDL_Scancode
  594. Const SDL_SCANCODE_KP_MEMDIVIDE:SDL_Scancode
  595. Const SDL_SCANCODE_KP_PLUSMINUS:SDL_Scancode
  596. Const SDL_SCANCODE_KP_CLEAR:SDL_Scancode
  597. Const SDL_SCANCODE_KP_CLEARENTRY:SDL_Scancode
  598. Const SDL_SCANCODE_KP_BINARY:SDL_Scancode
  599. Const SDL_SCANCODE_KP_OCTAL:SDL_Scancode
  600. Const SDL_SCANCODE_KP_DECIMAL:SDL_Scancode
  601. Const SDL_SCANCODE_KP_HEXADECIMAL:SDL_Scancode
  602. Const SDL_SCANCODE_LCTRL:SDL_Scancode
  603. Const SDL_SCANCODE_LSHIFT:SDL_Scancode
  604. Const SDL_SCANCODE_LALT:SDL_Scancode
  605. Const SDL_SCANCODE_LGUI:SDL_Scancode
  606. Const SDL_SCANCODE_RCTRL:SDL_Scancode
  607. Const SDL_SCANCODE_RSHIFT:SDL_Scancode
  608. Const SDL_SCANCODE_RALT:SDL_Scancode
  609. Const SDL_SCANCODE_RGUI:SDL_Scancode
  610. Const SDL_SCANCODE_MODE:SDL_Scancode
  611. Const SDL_SCANCODE_AUDIONEXT:SDL_Scancode
  612. Const SDL_SCANCODE_AUDIOPREV:SDL_Scancode
  613. Const SDL_SCANCODE_AUDIOSTOP:SDL_Scancode
  614. Const SDL_SCANCODE_AUDIOPLAY:SDL_Scancode
  615. Const SDL_SCANCODE_AUDIOMUTE:SDL_Scancode
  616. Const SDL_SCANCODE_MEDIASELECT:SDL_Scancode
  617. Const SDL_SCANCODE_WWW:SDL_Scancode
  618. Const SDL_SCANCODE_MAIL:SDL_Scancode
  619. Const SDL_SCANCODE_CALCULATOR:SDL_Scancode
  620. Const SDL_SCANCODE_COMPUTER:SDL_Scancode
  621. Const SDL_SCANCODE_AC_SEARCH:SDL_Scancode
  622. Const SDL_SCANCODE_AC_HOME:SDL_Scancode
  623. Const SDL_SCANCODE_AC_BACK:SDL_Scancode
  624. Const SDL_SCANCODE_AC_FORWARD:SDL_Scancode
  625. Const SDL_SCANCODE_AC_STOP:SDL_Scancode
  626. Const SDL_SCANCODE_AC_REFRESH:SDL_Scancode
  627. Const SDL_SCANCODE_AC_BOOKMARKS:SDL_Scancode
  628. Const SDL_SCANCODE_BRIGHTNESSDOWN:SDL_Scancode
  629. Const SDL_SCANCODE_BRIGHTNESSUP:SDL_Scancode
  630. Const SDL_SCANCODE_DISPLAYSWITCH:SDL_Scancode
  631. Const SDL_SCANCODE_KBDILLUMTOGGLE:SDL_Scancode
  632. Const SDL_SCANCODE_KBDILLUMDOWN:SDL_Scancode
  633. Const SDL_SCANCODE_KBDILLUMUP:SDL_Scancode
  634. Const SDL_SCANCODE_EJECT:SDL_Scancode
  635. Const SDL_SCANCODE_SLEEP:SDL_Scancode
  636. Const SDL_SCANCODE_APP1:SDL_Scancode
  637. Const SDL_SCANCODE_APP2:SDL_Scancode
  638. Const SDL_NUM_SCANCODES:SDL_Scancode
  639. 'FILE="sdl2/sdl_keyboard.h"
  640. Struct SDL_Keysym
  641. Field scancode:SDL_Scancode
  642. Field sym:SDL_Keycode
  643. Field mod_:Short="mod"
  644. Field unused:Int
  645. End
  646. Function SDL_GetKeyboardFocus:SDL_Window Ptr()
  647. Function SDL_GetKeyboardState:UByte Ptr(numkeys_:Int Ptr)="(bbUByte*)SDL_GetKeyboardState"
  648. Function SDL_GetModState:SDL_Keymod()
  649. Function SDL_SetModState:Void(modstate_:SDL_Keymod)
  650. Function SDL_GetKeyFromScancode:SDL_Keycode(scancode_:SDL_Scancode)
  651. Function SDL_GetScancodeFromKey:SDL_Scancode(key_:SDL_Keycode)
  652. Function SDL_GetScancodeName:char_t Ptr(scancode_:SDL_Scancode)
  653. Function SDL_GetScancodeFromName:SDL_Scancode(name_:CString)
  654. Function SDL_GetKeyName:char_t Ptr(key_:SDL_Keycode)
  655. Function SDL_GetKeyFromName:SDL_Keycode(name_:CString)
  656. Function SDL_StartTextInput:Void()
  657. Function SDL_IsTextInputActive:SDL_bool()
  658. Function SDL_StopTextInput:Void()
  659. Function SDL_SetTextInputRect:Void(rect_:SDL_Rect Ptr)
  660. Function SDL_HasScreenKeyboardSupport:SDL_bool()
  661. Function SDL_IsScreenKeyboardShown:SDL_bool(window_:SDL_Window Ptr)
  662. 'FILE="sdl2/sdl_events.h"
  663. Const SDL_RELEASED:Int
  664. Const SDL_PRESSED:Int
  665. Enum SDL_EventType
  666. End
  667. Const SDL_FIRSTEVENT:SDL_EventType
  668. Const SDL_QUIT:SDL_EventType
  669. Const SDL_APP_TERMINATING:SDL_EventType
  670. Const SDL_APP_LOWMEMORY:SDL_EventType
  671. Const SDL_APP_WILLENTERBACKGROUND:SDL_EventType
  672. Const SDL_APP_DIDENTERBACKGROUND:SDL_EventType
  673. Const SDL_APP_WILLENTERFOREGROUND:SDL_EventType
  674. Const SDL_APP_DIDENTERFOREGROUND:SDL_EventType
  675. Const SDL_WINDOWEVENT:SDL_EventType
  676. Const SDL_SYSWMEVENT:SDL_EventType
  677. Const SDL_KEYDOWN:SDL_EventType
  678. Const SDL_KEYUP:SDL_EventType
  679. Const SDL_TEXTEDITING:SDL_EventType
  680. Const SDL_TEXTINPUT:SDL_EventType
  681. Const SDL_MOUSEMOTION:SDL_EventType
  682. Const SDL_MOUSEBUTTONDOWN:SDL_EventType
  683. Const SDL_MOUSEBUTTONUP:SDL_EventType
  684. Const SDL_MOUSEWHEEL:SDL_EventType
  685. Const SDL_JOYAXISMOTION:SDL_EventType
  686. Const SDL_JOYBALLMOTION:SDL_EventType
  687. Const SDL_JOYHATMOTION:SDL_EventType
  688. Const SDL_JOYBUTTONDOWN:SDL_EventType
  689. Const SDL_JOYBUTTONUP:SDL_EventType
  690. Const SDL_JOYDEVICEADDED:SDL_EventType
  691. Const SDL_JOYDEVICEREMOVED:SDL_EventType
  692. Const SDL_CONTROLLERAXISMOTION:SDL_EventType
  693. Const SDL_CONTROLLERBUTTONDOWN:SDL_EventType
  694. Const SDL_CONTROLLERBUTTONUP:SDL_EventType
  695. Const SDL_CONTROLLERDEVICEADDED:SDL_EventType
  696. Const SDL_CONTROLLERDEVICEREMOVED:SDL_EventType
  697. Const SDL_CONTROLLERDEVICEREMAPPED:SDL_EventType
  698. Const SDL_FINGERDOWN:SDL_EventType
  699. Const SDL_FINGERUP:SDL_EventType
  700. Const SDL_FINGERMOTION:SDL_EventType
  701. Const SDL_DOLLARGESTURE:SDL_EventType
  702. Const SDL_DOLLARRECORD:SDL_EventType
  703. Const SDL_MULTIGESTURE:SDL_EventType
  704. Const SDL_CLIPBOARDUPDATE:SDL_EventType
  705. Const SDL_DROPFILE:SDL_EventType
  706. Const SDL_AUDIODEVICEADDED:SDL_EventType
  707. Const SDL_AUDIODEVICEREMOVED:SDL_EventType
  708. Const SDL_RENDER_TARGETS_RESET:SDL_EventType
  709. Const SDL_RENDER_DEVICE_RESET:SDL_EventType
  710. Const SDL_USEREVENT:SDL_EventType
  711. Const SDL_LASTEVENT:SDL_EventType
  712. Struct SDL_CommonEvent
  713. Field type:Int
  714. Field timestamp:Int
  715. End
  716. Struct SDL_WindowEvent
  717. Field type:Int
  718. Field timestamp:Int
  719. Field windowID:Int
  720. Field event:Byte
  721. Field padding1:Byte
  722. Field padding2:Byte
  723. Field padding3:Byte
  724. Field data1:Int
  725. Field data2:Int
  726. End
  727. Struct SDL_KeyboardEvent
  728. Field type:Int
  729. Field timestamp:Int
  730. Field windowID:Int
  731. Field state:Byte
  732. Field repeat_:Byte="repeat"
  733. Field padding2:Byte
  734. Field padding3:Byte
  735. Field keysym:SDL_Keysym
  736. End
  737. Const SDL_TEXTEDITINGEVENT_TEXT_SIZE:Int
  738. Struct SDL_TextEditingEvent
  739. Field type:Int
  740. Field timestamp:Int
  741. Field windowID:Int
  742. Field text:UByte Ptr
  743. Field start:Int
  744. Field length:Int
  745. End
  746. Const SDL_TEXTINPUTEVENT_TEXT_SIZE:Int
  747. Struct SDL_TextInputEvent
  748. Field type:Int
  749. Field timestamp:Int
  750. Field windowID:Int
  751. Field text:UByte Ptr
  752. End
  753. Struct SDL_MouseMotionEvent
  754. Field type:Int
  755. Field timestamp:Int
  756. Field windowID:Int
  757. Field which:Int
  758. Field state:Int
  759. Field x:Int
  760. Field y:Int
  761. Field xrel:Int
  762. Field yrel:Int
  763. End
  764. Struct SDL_MouseButtonEvent
  765. Field type:Int
  766. Field timestamp:Int
  767. Field windowID:Int
  768. Field which:Int
  769. Field button:Byte
  770. Field state:Byte
  771. Field clicks:Byte
  772. Field padding1:Byte
  773. Field x:Int
  774. Field y:Int
  775. End
  776. Struct SDL_MouseWheelEvent
  777. Field type:Int
  778. Field timestamp:Int
  779. Field windowID:Int
  780. Field which:Int
  781. Field x:Int
  782. Field y:Int
  783. Field direction:Int
  784. End
  785. Struct SDL_JoyAxisEvent
  786. Field type:Int
  787. Field timestamp:Int
  788. Field which:SDL_JoystickID
  789. Field axis:Byte
  790. Field padding1:Byte
  791. Field padding2:Byte
  792. Field padding3:Byte
  793. Field value:Short
  794. Field padding4:Short
  795. End
  796. Struct SDL_JoyBallEvent
  797. Field type:Int
  798. Field timestamp:Int
  799. Field which:SDL_JoystickID
  800. Field ball:Byte
  801. Field padding1:Byte
  802. Field padding2:Byte
  803. Field padding3:Byte
  804. Field xrel:Short
  805. Field yrel:Short
  806. End
  807. Struct SDL_JoyHatEvent
  808. Field type:Int
  809. Field timestamp:Int
  810. Field which:SDL_JoystickID
  811. Field hat:Byte
  812. Field value:Byte
  813. Field padding1:Byte
  814. Field padding2:Byte
  815. End
  816. Struct SDL_JoyButtonEvent
  817. Field type:Int
  818. Field timestamp:Int
  819. Field which:SDL_JoystickID
  820. Field button:Byte
  821. Field state:Byte
  822. Field padding1:Byte
  823. Field padding2:Byte
  824. End
  825. Struct SDL_JoyDeviceEvent
  826. Field type:Int
  827. Field timestamp:Int
  828. Field which:Int
  829. End
  830. Struct SDL_ControllerAxisEvent
  831. Field type:Int
  832. Field timestamp:Int
  833. Field which:SDL_JoystickID
  834. Field axis:Byte
  835. Field padding1:Byte
  836. Field padding2:Byte
  837. Field padding3:Byte
  838. Field value:Short
  839. Field padding4:Short
  840. End
  841. Struct SDL_ControllerButtonEvent
  842. Field type:Int
  843. Field timestamp:Int
  844. Field which:SDL_JoystickID
  845. Field button:Byte
  846. Field state:Byte
  847. Field padding1:Byte
  848. Field padding2:Byte
  849. End
  850. Struct SDL_ControllerDeviceEvent
  851. Field type:Int
  852. Field timestamp:Int
  853. Field which:Int
  854. End
  855. Struct SDL_AudioDeviceEvent
  856. Field type:Int
  857. Field timestamp:Int
  858. Field which:Int
  859. Field iscapture:Byte
  860. Field padding1:Byte
  861. Field padding2:Byte
  862. Field padding3:Byte
  863. End
  864. Struct SDL_TouchFingerEvent
  865. Field type:Int
  866. Field timestamp:Int
  867. Field touchId:SDL_TouchID
  868. Field fingerId:SDL_FingerID
  869. Field x:Float
  870. Field y:Float
  871. Field dx:Float
  872. Field dy:Float
  873. Field pressure:Float
  874. End
  875. Struct SDL_MultiGestureEvent
  876. Field type:Int
  877. Field timestamp:Int
  878. Field touchId:SDL_TouchID
  879. Field dTheta:Float
  880. Field dDist:Float
  881. Field x:Float
  882. Field y:Float
  883. Field numFingers:Short
  884. Field padding:Short
  885. End
  886. Struct SDL_DollarGestureEvent
  887. Field type:Int
  888. Field timestamp:Int
  889. Field touchId:SDL_TouchID
  890. ' Field gestureId:SDL_GestureID
  891. Field numFingers:Int
  892. Field error:Float
  893. Field x:Float
  894. Field y:Float
  895. End
  896. Struct SDL_DropEvent
  897. Field type:Int
  898. Field timestamp:Int
  899. Field file:Byte Ptr
  900. End
  901. Struct SDL_QuitEvent
  902. Field type:Int
  903. Field timestamp:Int
  904. End
  905. Struct SDL_OSEvent
  906. Field type:Int
  907. Field timestamp:Int
  908. End
  909. Struct SDL_UserEvent
  910. Field type:Int
  911. Field timestamp:Int
  912. Field windowID:Int
  913. Field code:Int
  914. Field data1:Void Ptr
  915. Field data2:Void Ptr
  916. End
  917. Struct SDL_SysWMmsg
  918. End
  919. Struct SDL_SysWMEvent
  920. Field type:Int
  921. Field timestamp:Int
  922. Field msg:SDL_SysWMmsg Ptr
  923. End
  924. Struct SDL_Event
  925. Field type:Int
  926. Field common:SDL_CommonEvent
  927. Field window:SDL_WindowEvent
  928. Field key:SDL_KeyboardEvent
  929. Field edit:SDL_TextEditingEvent
  930. Field text:SDL_TextInputEvent
  931. Field motion:SDL_MouseMotionEvent
  932. Field button:SDL_MouseButtonEvent
  933. Field wheel:SDL_MouseWheelEvent
  934. Field jaxis:SDL_JoyAxisEvent
  935. Field jball:SDL_JoyBallEvent
  936. Field jhat:SDL_JoyHatEvent
  937. Field jbutton:SDL_JoyButtonEvent
  938. Field jdevice:SDL_JoyDeviceEvent
  939. Field caxis:SDL_ControllerAxisEvent
  940. Field cbutton:SDL_ControllerButtonEvent
  941. Field cdevice:SDL_ControllerDeviceEvent
  942. Field adevice:SDL_AudioDeviceEvent
  943. Field quit:SDL_QuitEvent
  944. Field user:SDL_UserEvent
  945. Field syswm:SDL_SysWMEvent
  946. Field tfinger:SDL_TouchFingerEvent
  947. Field mgesture:SDL_MultiGestureEvent
  948. Field dgesture:SDL_DollarGestureEvent
  949. Field drop:SDL_DropEvent
  950. End
  951. Function SDL_PumpEvents:Void()
  952. Enum SDL_eventaction
  953. End
  954. Const SDL_ADDEVENT:SDL_eventaction
  955. Const SDL_PEEKEVENT:SDL_eventaction
  956. Const SDL_GETEVENT:SDL_eventaction
  957. Function SDL_PeepEvents:Int(events_:SDL_Event Ptr,numevents_:Int,action_:SDL_eventaction,minType_:Int,maxType_:Int)
  958. Function SDL_HasEvent:SDL_bool(type_:Int)
  959. Function SDL_HasEvents:SDL_bool(minType_:Int,maxType_:Int)
  960. Function SDL_FlushEvent:Void(type_:Int)
  961. Function SDL_FlushEvents:Void(minType_:Int,maxType_:Int)
  962. Function SDL_PollEvent:Int(event_:SDL_Event Ptr)
  963. Function SDL_WaitEvent:Int(event_:SDL_Event Ptr)
  964. Function SDL_WaitEventTimeout:Int(event_:SDL_Event Ptr,timeout_:Int)
  965. Function SDL_PushEvent:Int(event_:SDL_Event Ptr)
  966. Alias SDL_EventFilter:Int(Void Ptr,SDL_Event Ptr)
  967. Function SDL_SetEventFilter:Void(filter_:SDL_EventFilter,userdata_:Void Ptr)
  968. Function SDL_GetEventFilter:SDL_bool(filter_:SDL_EventFilter Ptr,userdata_:Void Ptr Ptr)
  969. Function SDL_AddEventWatch:Void(filter_:SDL_EventFilter,userdata_:Void Ptr)
  970. Function SDL_DelEventWatch:Void(filter_:SDL_EventFilter,userdata_:Void Ptr)
  971. Function SDL_FilterEvents:Void(filter_:SDL_EventFilter,userdata_:Void Ptr)
  972. Const SDL_QUERY:Int
  973. Const SDL_IGNORE:Int
  974. Const SDL_DISABLE:Int
  975. Const SDL_ENABLE:Int
  976. Function SDL_EventState:Byte(type_:Int,state_:Int)
  977. Const SDL_GetEventState:Int
  978. Function SDL_RegisterEvents:Int(numevents_:Int)
  979. 'FILE="sdl2/sdl_audio.h"
  980. Alias SDL_AudioFormat:Short
  981. Const SDL_AUDIO_MASK_BITSIZE:Int
  982. Const SDL_AUDIO_MASK_DATATYPE:Int
  983. Const SDL_AUDIO_MASK_ENDIAN:Int
  984. Const SDL_AUDIO_MASK_SIGNED:Int
  985. Const SDL_AUDIO_BITSIZE:Int
  986. Const SDL_AUDIO_ISFLOAT:Int
  987. Const SDL_AUDIO_ISBIGENDIAN:Int
  988. Const SDL_AUDIO_ISSIGNED:Int
  989. Const SDL_AUDIO_ISINT:Int
  990. Const SDL_AUDIO_ISLITTLEENDIAN:Int
  991. Const SDL_AUDIO_ISUNSIGNED:Int
  992. Const SDL_AUDIO_ALLOW_FREQUENCY_CHANGE:Int
  993. Const SDL_AUDIO_ALLOW_FORMAT_CHANGE:Int
  994. Const SDL_AUDIO_ALLOW_CHANNELS_CHANGE:Int
  995. Const SDL_AUDIO_ALLOW_ANY_CHANGE:Int
  996. Alias SDL_AudioCallback:Void(Void Ptr,UByte Ptr,Int)
  997. Struct SDL_AudioSpec
  998. Field freq:Int
  999. Field format:SDL_AudioFormat
  1000. Field channels:Byte
  1001. Field silence:Byte
  1002. Field samples:Short
  1003. Field padding:Short
  1004. Field size:Int
  1005. Field callback:SDL_AudioCallback
  1006. Field userdata:Void Ptr
  1007. End
  1008. Struct SDL_AudioCVT
  1009. Field needed:Int
  1010. Field src_format:SDL_AudioFormat
  1011. Field dst_format:SDL_AudioFormat
  1012. Field rate_incr:Double
  1013. Field buf:Byte Ptr
  1014. Field len:Int
  1015. Field len_cvt:Int
  1016. Field len_mult:Int
  1017. Field len_ratio:Double
  1018. Field filter_index:Int
  1019. End
  1020. Alias SDL_AudioFilter:Void(SDL_AudioCVT Ptr,SDL_AudioFormat)
  1021. Function SDL_GetNumAudioDrivers:Int()
  1022. Function SDL_GetAudioDriver:char_t Ptr(index_:Int)
  1023. Function SDL_AudioInit:Int(driver_name_:CString)
  1024. Function SDL_AudioQuit:Void()
  1025. Function SDL_GetCurrentAudioDriver:char_t Ptr()
  1026. Function SDL_OpenAudio:Int(desired_:SDL_AudioSpec Ptr,obtained_:SDL_AudioSpec Ptr)
  1027. Alias SDL_AudioDeviceID:Int
  1028. Function SDL_GetNumAudioDevices:Int(iscapture_:Int)
  1029. Function SDL_GetAudioDeviceName:char_t Ptr(index_:Int,iscapture_:Int)
  1030. Function SDL_OpenAudioDevice:SDL_AudioDeviceID(device_:CString,iscapture_:Int,desired_:SDL_AudioSpec Ptr,obtained_:SDL_AudioSpec Ptr,allowed_changes_:Int)
  1031. Enum SDL_AudioStatus
  1032. End
  1033. Const SDL_AUDIO_STOPPED:SDL_AudioStatus
  1034. Const SDL_AUDIO_PLAYING:SDL_AudioStatus
  1035. Const SDL_AUDIO_PAUSED:SDL_AudioStatus
  1036. Function SDL_GetAudioStatus:SDL_AudioStatus()
  1037. Function SDL_GetAudioDeviceStatus:SDL_AudioStatus(dev_:SDL_AudioDeviceID)
  1038. Function SDL_PauseAudio:Void(pause_on_:Int)
  1039. Function SDL_PauseAudioDevice:Void(dev_:SDL_AudioDeviceID,pause_on_:Int)
  1040. Function SDL_LoadWAV_RW:SDL_AudioSpec Ptr(src_:SDL_RWops Ptr,freesrc_:Int,spec_:SDL_AudioSpec Ptr,audio_buf_:UByte Ptr Ptr,audio_len_:UInt Ptr)
  1041. Const SDL_LoadWAV:Int
  1042. Function SDL_FreeWAV:Void(audio_buf_:Byte Ptr)
  1043. Function SDL_BuildAudioCVT:Int(cvt_:SDL_AudioCVT Ptr,src_format_:SDL_AudioFormat,src_channels_:Byte,src_rate_:Int,dst_format_:SDL_AudioFormat,dst_channels_:Byte,dst_rate_:Int)
  1044. Function SDL_ConvertAudio:Int(cvt_:SDL_AudioCVT Ptr)
  1045. Const SDL_MIX_MAXVOLUME:Int
  1046. Function SDL_MixAudio:Void(dst_:Byte Ptr,src_:CString,len_:Int,volume_:Int)
  1047. Function SDL_MixAudioFormat:Void(dst_:Byte Ptr,src_:CString,format_:SDL_AudioFormat,len_:Int,volume_:Int)
  1048. Function SDL_QueueAudio:Int(dev_:SDL_AudioDeviceID,data_:Void Ptr,len_:Int)
  1049. Function SDL_GetQueuedAudioSize:Int(dev_:SDL_AudioDeviceID)
  1050. Function SDL_ClearQueuedAudio:Void(dev_:SDL_AudioDeviceID)
  1051. Function SDL_LockAudio:Void()
  1052. Function SDL_LockAudioDevice:Void(dev_:SDL_AudioDeviceID)
  1053. Function SDL_UnlockAudio:Void()
  1054. Function SDL_UnlockAudioDevice:Void(dev_:SDL_AudioDeviceID)
  1055. Function SDL_CloseAudio:Void()
  1056. Function SDL_CloseAudioDevice:Void(dev_:SDL_AudioDeviceID)
  1057. 'FILE="sdl2/SDL_clipboard.h"
  1058. Function SDL_SetClipboardText( text:CString )
  1059. Function SDL_GetClipboardText:char_t Ptr()
  1060. Function SDL_HasClipboardText:SDL_bool()
  1061. Function SDL_free( text:Void Ptr )
  1062. 'FILE="sdl2/SDL_audio.h"
  1063. Const AUDIO_U8:Int
  1064. Const AUDIO_S8:Int
  1065. Const AUDIO_U16LSB:Int
  1066. Const AUDIO_S16LSB:Int
  1067. Const AUDIO_U16MSB:Int
  1068. Const AUDIO_S16MSB:Int
  1069. Const AUDIO_U16:Int
  1070. Const AUDIO_S16:Int
  1071. 'FILE="sdl2/SDL_thread.h"
  1072. Alias SDL_threadID:UInt
  1073. Function SDL_ThreadID:SDL_threadID()
  1074. '${END}