🛠️🐜 Antkeeper superbuild with dependencies included https://antkeeper.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

92 lines
3.0 KiB

  1. Simple DirectMedia Layer 2 for OS/2 & eComStation
  2. ================================================================================
  3. SDL port for OS/2, authored by Andrey Vasilkin <digi@os2.snc.ru>, 2016
  4. OpenGL and audio capture not supported by this port.
  5. Additional optional environment variables:
  6. SDL_AUDIO_SHARE
  7. Values: 0 or 1, default is 0
  8. Initializes the device as shareable or exclusively acquired.
  9. SDL_VIDEODRIVER
  10. Values: DIVE or VMAN, default is DIVE
  11. Use video subsystem: Direct interface video extensions (DIVE) or
  12. Video Manager (VMAN).
  13. You may significantly increase video output speed with OS4 kernel and patched
  14. files vman.dll and dive.dll or with latest versions of ACPI support and video
  15. driver Panorama.
  16. Latest versions of OS/4 kernel:
  17. http://gus.biysk.ru/os4/
  18. (Info: https://www.os2world.com/wiki/index.php/Phoenix_OS/4)
  19. Patched files vman.dll and dive.dll:
  20. http://gus.biysk.ru/os4/test/pached_dll/PATCHED_DLL.RAR
  21. Compiling:
  22. ----------
  23. Open Watcom 1.9 or newer is tested. For the new Open Watcom V2 fork, see:
  24. https://github.com/open-watcom/ and https://open-watcom.github.io
  25. WATCOM environment variable must to be set to the Open Watcom install
  26. directory. To compile, run: wmake -f Makefile.os2
  27. Installing:
  28. -----------
  29. - eComStation:
  30. If you have previously installed SDL2, make a Backup copy of SDL2.dll
  31. located in D:\ecs\dll (where D: is disk on which installed eComStation).
  32. Stop all programs running with SDL2. Copy SDL2.dll to D:\ecs\dll
  33. - OS/2:
  34. Copy SDL2.dll to any directory on your LIBPATH. If you have a previous
  35. version installed, close all SDL2 applications before replacing the old
  36. copy. Also make sure that any other older versions of DLLs are removed
  37. from your system.
  38. Joysticks in SDL2:
  39. ------------------
  40. The joystick code in SDL2 is a direct forward-port from the SDL-1.2 version.
  41. Here is the original documentation from SDL-1.2:
  42. The Joystick detection only works for standard joysticks (2 buttons, 2 axes
  43. and the like). Therefore, if you use a non-standard joystick, you should
  44. specify its features in the SDL_OS2_JOYSTICK environment variable in a batch
  45. file or CONFIG.SYS, so SDL applications can provide full capability to your
  46. device. The syntax is:
  47. SET SDL_OS2_JOYSTICK=[JOYSTICK_NAME] [AXES] [BUTTONS] [HATS] [BALLS]
  48. So, it you have a Gravis GamePad with 4 axes, 2 buttons, 2 hats and 0 balls,
  49. the line should be:
  50. SET SDL_OS2_JOYSTICK=Gravis_GamePad 4 2 2 0
  51. If you want to add spaces in your joystick name, just surround it with
  52. quotes or double-quotes:
  53. SET SDL_OS2_JOYSTICK='Gravis GamePad' 4 2 2 0
  54. or
  55. SET SDL_OS2_JOYSTICK="Gravis GamePad" 4 2 2 0
  56. Note however that Balls and Hats are not supported under OS/2, and the
  57. value will be ignored... but it is wise to define these correctly because
  58. in the future those can be supported.
  59. Also the number of buttons is limited to 2 when using two joysticks,
  60. 4 when using one joystick with 4 axes, 6 when using a joystick with 3 axes
  61. and 8 when using a joystick with 2 axes. Notice however these are limitations
  62. of the Joystick Port hardware, not OS/2.