common.bmx 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. ' Copyright (c) 2014-2022 Bruce A Henderson
  2. '
  3. ' This software is provided 'as-is', without any express or implied
  4. ' warranty. In no event will the authors be held liable for any damages
  5. ' arising from the use of this software.
  6. '
  7. ' Permission is granted to anyone to use this software for any purpose,
  8. ' including commercial applications, and to alter it and redistribute it
  9. ' freely, subject to the following restrictions:
  10. '
  11. ' 1. The origin of this software must not be misrepresented; you must not
  12. ' claim that you wrote the original software. If you use this software
  13. ' in a product, an acknowledgment in the product documentation would be
  14. ' appreciated but is not required.
  15. '
  16. ' 2. Altered source versions must be plainly marked as such, and must not be
  17. ' misrepresented as being the original software.
  18. '
  19. ' 3. This notice may not be removed or altered from any source
  20. ' distribution.
  21. '
  22. SuperStrict
  23. ?win32x86
  24. Import "../../sdl.mod/sdl.mod/include/win32x86/*.h"
  25. ?win32x64
  26. Import "../../sdl.mod/sdl.mod/include/win32x64/*.h"
  27. ?osx
  28. Import "../../sdl.mod/sdl.mod/include/macos/*.h"
  29. ?linuxx86
  30. Import "../../sdl.mod/sdl.mod/include/linuxx86/*.h"
  31. ?linuxx64
  32. Import "../../sdl.mod/sdl.mod/include/linuxx64/*.h"
  33. ?raspberrypi
  34. Import "../../sdl.mod/sdl.mod/include/raspberrypi/*.h"
  35. ?android
  36. Import "../../sdl.mod/sdl.mod/include/android/*.h"
  37. ?
  38. ?emscripten
  39. Import "../../sdl.mod/sdl.mod/include/emscripten/*.h"
  40. ?ios
  41. Import "../../sdl.mod/sdl.mod/include/ios/*.h"
  42. ?haikux64
  43. Import "../../sdl.mod/sdl.mod/include/haikux64/*.h"
  44. ?
  45. Import "../../sdl.mod/sdl.mod/SDL/include/*.h"
  46. Import "glue.c"
  47. Extern
  48. ' system stuff
  49. Function SDL_ShowCursor:Int(visible:Int)
  50. ' text input
  51. Function SDL_StartTextInput()
  52. Function SDL_StopTextInput()
  53. Function SDL_IsTextInputActive:Int()
  54. Function SDL_IsTextInputShown:Int()
  55. Function SDL_ClearComposition()
  56. Function SDL_HasScreenKeyboardSupport:Int()
  57. Function bmx_SDL_GetDisplayWidth:Int(display:Int)
  58. Function bmx_SDL_GetDisplayHeight:Int(display:Int)
  59. Function bmx_SDL_GetDisplayDepth:Int(display:Int)
  60. Function bmx_SDL_GetDisplayhertz:Int(display:Int)
  61. Function bmx_SDL_Poll()
  62. Function bmx_SDL_WaitEvent()
  63. Function MouseState:Int(x:Int Ptr, y:Int Ptr)="SDL_GetMouseState"
  64. Function bmx_SDL_ShowSimpleMessageBox:Int(Text:String, _appTitle:String, serious:Int)
  65. Function bmx_SDL_ShowMessageBox_confirm:Int(Text:String, _appTitle:String, serious:Int)
  66. Function bmx_SDL_ShowMessageBox_proceed:Int(Text:String, _appTitle:String, serious:Int)
  67. Function bmx_SDL_SetEventFilter(driver:Object)
  68. End Extern