SDL_migration.cocci 39 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336
  1. //
  2. // This is a coccinelle semantic patch to ease migration of your project from SDL2 to SDL3.
  3. //
  4. // It generates a patch that you can apply to your project to build for SDL3. It does not
  5. // handle conceptual API changes, but it automates API name changes and function parameter
  6. // transformations.
  7. //
  8. // To install (native Ubuntu or using WSL on Windows):
  9. // sudo apt install coccinelle
  10. //
  11. // Apply the semantic patch to generate a patch file:
  12. // cd path/to/your/code
  13. // spatch --sp-file path/to/SDL_migration.cocci . >patch.txt
  14. //
  15. // A few options:
  16. // --c++=11 to parse cpp file
  17. // --max-width 200 to increase line witdth of generated source
  18. //
  19. // Apply the patch to your project:
  20. // patch -p1 <patch.txt
  21. //
  22. //
  23. // #############
  24. // In very short, a semantic patch is composed of two sub-blocks, like
  25. //
  26. // @@
  27. // declaration
  28. // @@
  29. // rule / transformation
  30. //
  31. // So this file is a set of many semantic patches, mostly independant.
  32. @ rule_audio_open @
  33. expression e1, e2;
  34. @@
  35. - SDL_OpenAudio(e1, e2)
  36. + (g_audio_id = SDL_OpenAudioDevice(NULL, 0, e1, e2, 0)) > 0 ? 0 : -1
  37. @ depends on rule_audio_open @
  38. @@
  39. {
  40. + /* FIXME MIGRATION: maybe move this to a global scope ? */
  41. + SDL_AudioDeviceID g_audio_id = -1;
  42. ...
  43. SDL_OpenAudioDevice(...)
  44. ...
  45. }
  46. @@
  47. @@
  48. - SDL_LockAudio()
  49. + SDL_LockAudioDevice(g_audio_id)
  50. @@
  51. @@
  52. - SDL_UnlockAudio()
  53. + SDL_UnlockAudioDevice(g_audio_id)
  54. @@
  55. @@
  56. - SDL_CloseAudio(void)
  57. + SDL_CloseAudioDevice(g_audio_id)
  58. @@
  59. expression e;
  60. @@
  61. - SDL_PauseAudio(e)
  62. + e == SDL_TRUE ? SDL_PauseAudioDevice(g_audio_id) : SDL_PlayAudioDevice(g_audio_id)
  63. @@
  64. @@
  65. - SDL_GetAudioStatus()
  66. + SDL_GetAudioDeviceStatus(g_audio_id)
  67. @@
  68. @@
  69. - SDL_GetQueuedAudioSize(1)
  70. + SDL_GetQueuedAudioSize(g_audio_id)
  71. @@
  72. expression e1, e2;
  73. @@
  74. - SDL_QueueAudio(1, e1, e2)
  75. + SDL_QueueAudio(g_audio_id, e1, e2)
  76. // SDL_EventState() - replaced with SDL_SetEventEnabled()
  77. @@
  78. expression e1;
  79. @@
  80. (
  81. - SDL_EventState(e1, SDL_IGNORE)
  82. + SDL_SetEventEnabled(e1, SDL_FALSE)
  83. |
  84. - SDL_EventState(e1, SDL_DISABLE)
  85. + SDL_SetEventEnabled(e1, SDL_FALSE)
  86. |
  87. - SDL_EventState(e1, SDL_ENABLE)
  88. + SDL_SetEventEnabled(e1, SDL_TRUE)
  89. |
  90. - SDL_EventState(e1, SDL_QUERY)
  91. + SDL_EventEnabled(e1)
  92. )
  93. // SDL_GetEventState() - replaced with SDL_EventEnabled()
  94. @@
  95. expression e1;
  96. @@
  97. - SDL_GetEventState(e1)
  98. + SDL_EventEnabled(e1)
  99. @@
  100. expression e;
  101. @@
  102. - SDL_JoystickGetDevicePlayerIndex(e)
  103. + /* FIXME MIGRATION: check for valid instance */
  104. + SDL_GetJoystickInstancePlayerIndex(GetJoystickInstanceFromIndex(e))
  105. @@
  106. expression e;
  107. @@
  108. - SDL_JoystickIsVirtual(e)
  109. + /* FIXME MIGRATION: check for valid instance */
  110. + SDL_IsJoystickVirtual(GetJoystickInstanceFromIndex(e))
  111. @@
  112. expression e;
  113. @@
  114. - SDL_JoystickPathForIndex(e)
  115. + /* FIXME MIGRATION: check for valid instance */
  116. + SDL_GetJoystickInstancePath(GetJoystickInstanceFromIndex(e))
  117. @@
  118. expression e;
  119. @@
  120. - SDL_IsGameController(e)
  121. + /* FIXME MIGRATION: check for valid instance */
  122. + SDL_IsGamepad(GetJoystickInstanceFromIndex(e))
  123. @@
  124. expression e;
  125. @@
  126. - SDL_GameControllerMappingForDeviceIndex(e)
  127. + /* FIXME MIGRATION: check for valid instance */
  128. + SDL_GetGamepadInstanceMapping(GetJoystickInstanceFromIndex(e))
  129. @@
  130. expression e;
  131. @@
  132. - SDL_GameControllerNameForIndex(e)
  133. + /* FIXME MIGRATION: check for valid instance */
  134. + SDL_GetGamepadInstanceName(GetJoystickInstanceFromIndex(e))
  135. @@
  136. expression e;
  137. @@
  138. - SDL_GameControllerPathForIndex(e)
  139. + /* FIXME MIGRATION: check for valid instance */
  140. + SDL_GetGamepadInstancePath(GetJoystickInstanceFromIndex(e))
  141. @@
  142. expression e;
  143. @@
  144. - SDL_GameControllerTypeForIndex(e)
  145. + /* FIXME MIGRATION: check for valid instance */
  146. + SDL_GetGamepadInstanceType(GetJoystickInstanceFromIndex(e))
  147. // SDL_Has3DNow() has been removed; there is no replacement.
  148. @@
  149. @@
  150. + /* FIXME MIGRATION: SDL_Has3DNow() has been removed; there is no replacement. */ 0
  151. - SDL_Has3DNow()
  152. // SDL_HINT_VIDEO_X11_XINERAMA (Xinerama no longer supported by the X11 backend)
  153. @@
  154. @@
  155. + /* FIXME MIGRATION: no longer support by the X11 backend */ NULL
  156. - SDL_HINT_VIDEO_X11_XINERAMA
  157. // SDL_HINT_VIDEO_X11_XVIDMODE (Xvidmode no longer supported by the X11 backend)
  158. @@
  159. @@
  160. + /* FIXME MIGRATION: no longer support by the X11 backend */ NULL
  161. - SDL_HINT_VIDEO_X11_XVIDMODE
  162. // SDL_HINT_VIDEO_X11_FORCE_EGL (use SDL_HINT_VIDEO_FORCE_EGL instead)
  163. @@
  164. @@
  165. - SDL_HINT_VIDEO_X11_FORCE_EGL
  166. + SDL_HINT_VIDEO_FORCE_EGL
  167. @@
  168. @@
  169. - SDL_HINT_AUDIODRIVER
  170. + SDL_HINT_AUDIO_DRIVER
  171. @@
  172. @@
  173. - SDL_HINT_VIDEODRIVER
  174. + SDL_HINT_VIDEO_DRIVER
  175. @@
  176. @@
  177. - M_PI
  178. + SDL_PI_D
  179. // SDL_GetRevisionNumber() has been removed from the API, it always returned 0 in SDL 2.0.
  180. @@
  181. @@
  182. + /* FIXME MIGRATION: SDL_GetRevisionNumber() removed */ 0
  183. - SDL_GetRevisionNumber()
  184. // SDL_RWread
  185. @ rule_rwread @
  186. expression e1, e2, e3, e4;
  187. identifier i;
  188. @@
  189. (
  190. i = SDL_RWread(e1, e2,
  191. - e3, e4);
  192. + e3 * e4);
  193. + i = (i <= 0) ? 0 : i / e3;
  194. |
  195. SDL_RWread(e1, e2,
  196. - e3, e4);
  197. + e3 * e4);
  198. |
  199. + /* FIXME MIGRATION: double-check if you use the returned value of SDL_RWread() */
  200. SDL_RWread(e1, e2,
  201. - e3, e4)
  202. + e3 * e4)
  203. )
  204. // SDL_RWwrite
  205. @ rule_rwwrite @
  206. expression e1, e2, e3, e4;
  207. identifier i;
  208. @@
  209. (
  210. i = SDL_RWwrite(e1, e2,
  211. - e3, e4);
  212. + e3 * e4);
  213. + i = (i <= 0) ? 0 : i / e3;
  214. |
  215. SDL_RWwrite(e1, e2,
  216. - e3, e4);
  217. + e3 * e4);
  218. |
  219. + /* FIXME MIGRATION: double-check if you use the returned value of SDL_RWwrite() */
  220. SDL_RWwrite(e1, e2,
  221. - e3, e4)
  222. + e3 * e4)
  223. )
  224. @ depends on rule_rwread || rule_rwwrite @
  225. expression e;
  226. @@
  227. (
  228. - e * 1
  229. + e
  230. |
  231. - e / 1
  232. + e
  233. )
  234. // SDL_SIMDAlloc(), SDL_SIMDFree() have been removed.
  235. @@
  236. expression e1;
  237. @@
  238. - SDL_SIMDAlloc(e1)
  239. + SDL_aligned_alloc(SDL_SIMDGetAlignment(), e1)
  240. @@
  241. expression e1;
  242. @@
  243. - SDL_SIMDFree(
  244. + SDL_aligned_free(
  245. e1)
  246. // SDL_Vulkan_GetInstanceExtensions() no longer takes a window parameter.
  247. @@
  248. expression e1, e2, e3;
  249. @@
  250. SDL_Vulkan_GetInstanceExtensions(
  251. - e1,
  252. e2, e3)
  253. // SDL_Vulkan_GetVkGetInstanceProcAddr() now returns `SDL_FunctionPointer` instead of `void *`, and should be cast to PFN_vkGetInstanceProcAddr.
  254. @@
  255. typedef PFN_vkGetInstanceProcAddr;
  256. @@
  257. + (PFN_vkGetInstanceProcAddr)
  258. SDL_Vulkan_GetVkGetInstanceProcAddr()
  259. // SDL_PauseAudioDevice / SDL_PlayAudioDevice
  260. @@
  261. expression e;
  262. @@
  263. (
  264. - SDL_PauseAudioDevice(e, 1)
  265. + SDL_PauseAudioDevice(e)
  266. |
  267. - SDL_PauseAudioDevice(e, SDL_TRUE)
  268. + SDL_PauseAudioDevice(e)
  269. |
  270. - SDL_PauseAudioDevice(e, 0)
  271. + SDL_PlayAudioDevice(e)
  272. |
  273. - SDL_PauseAudioDevice(e, SDL_FALSE)
  274. + SDL_PlayAudioDevice(e)
  275. )
  276. @@
  277. expression e, pause_on;
  278. @@
  279. - SDL_PauseAudioDevice(e, pause_on);
  280. + if (pause_on) {
  281. + SDL_PauseAudioDevice(e);
  282. + } else {
  283. + SDL_PlayAudioDevice(e);
  284. + }
  285. // Remove SDL_WINDOW_SHOWN
  286. @@
  287. expression e;
  288. @@
  289. (
  290. - SDL_WINDOW_SHOWN | e
  291. + e
  292. |
  293. - SDL_WINDOW_SHOWN
  294. + 0
  295. )
  296. @@
  297. // Remove parameter from SDL_ConvertSurface
  298. expression e1, e2, e3;
  299. @@
  300. SDL_ConvertSurface(e1, e2
  301. - ,e3)
  302. + )
  303. @@
  304. // Remove parameter from SDL_ConvertSurfaceFormat
  305. expression e1, e2, e3;
  306. @@
  307. SDL_ConvertSurfaceFormat(e1, e2
  308. - ,e3)
  309. + )
  310. @@
  311. // SDL_CreateRGBSurfaceWithFormat
  312. // remove 'flags'
  313. // remove 'depth'
  314. // rename to SDL_CreateSurface
  315. expression e1, e2, e3, e4, e5;
  316. @@
  317. - SDL_CreateRGBSurfaceWithFormat(e1, e2, e3, e4, e5)
  318. + SDL_CreateSurface(e2, e3, e5)
  319. @@
  320. // SDL_CreateRGBSurfaceWithFormat:
  321. // remove 'depth'
  322. // rename to SDL_CreateSurfaceFrom
  323. expression e1, e2, e3, e4, e5, e6;
  324. @@
  325. - SDL_CreateRGBSurfaceWithFormatFrom(e1, e2, e3, e4, e5, e6)
  326. + SDL_CreateSurfaceFrom(e1, e2, e3, e5, e6)
  327. @@
  328. // SDL_CreateRGBSurface : convert Masks to format
  329. expression e1, e2, e3, e4, e5, e6, e7, e8, e9;
  330. @@
  331. (
  332. // Generated for all formats:
  333. - SDL_CreateRGBSurface(e1, e2, e3, 1, 0x00000000, 0x00000000, 0x00000000, 0x00000000)
  334. + SDL_CreateSurface(e2, e3, SDL_PIXELFORMAT_INDEX1LSB)
  335. |
  336. - SDL_CreateRGBSurfaceFrom(e1, e2, e3, 1, e4, 0x00000000, 0x00000000, 0x00000000, 0x00000000)
  337. + SDL_CreateSurfaceFrom(e1, e2, e3, e4, SDL_PIXELFORMAT_INDEX1LSB)
  338. |
  339. - SDL_CreateRGBSurface(e1, e2, e3, 1, 0x00000000, 0x00000000, 0x00000000, 0x00000000)
  340. + SDL_CreateSurface(e2, e3, SDL_PIXELFORMAT_INDEX1MSB)
  341. |
  342. - SDL_CreateRGBSurfaceFrom(e1, e2, e3, 1, e4, 0x00000000, 0x00000000, 0x00000000, 0x00000000)
  343. + SDL_CreateSurfaceFrom(e1, e2, e3, e4, SDL_PIXELFORMAT_INDEX1MSB)
  344. |
  345. - SDL_CreateRGBSurface(e1, e2, e3, 4, 0x00000000, 0x00000000, 0x00000000, 0x00000000)
  346. + SDL_CreateSurface(e2, e3, SDL_PIXELFORMAT_INDEX4LSB)
  347. |
  348. - SDL_CreateRGBSurfaceFrom(e1, e2, e3, 4, e4, 0x00000000, 0x00000000, 0x00000000, 0x00000000)
  349. + SDL_CreateSurfaceFrom(e1, e2, e3, e4, SDL_PIXELFORMAT_INDEX4LSB)
  350. |
  351. - SDL_CreateRGBSurface(e1, e2, e3, 4, 0x00000000, 0x00000000, 0x00000000, 0x00000000)
  352. + SDL_CreateSurface(e2, e3, SDL_PIXELFORMAT_INDEX4MSB)
  353. |
  354. - SDL_CreateRGBSurfaceFrom(e1, e2, e3, 4, e4, 0x00000000, 0x00000000, 0x00000000, 0x00000000)
  355. + SDL_CreateSurfaceFrom(e1, e2, e3, e4, SDL_PIXELFORMAT_INDEX4MSB)
  356. |
  357. - SDL_CreateRGBSurface(e1, e2, e3, 8, 0x00000000, 0x00000000, 0x00000000, 0x00000000)
  358. + SDL_CreateSurface(e2, e3, SDL_PIXELFORMAT_INDEX8)
  359. |
  360. - SDL_CreateRGBSurfaceFrom(e1, e2, e3, 8, e4, 0x00000000, 0x00000000, 0x00000000, 0x00000000)
  361. + SDL_CreateSurfaceFrom(e1, e2, e3, e4, SDL_PIXELFORMAT_INDEX8)
  362. |
  363. - SDL_CreateRGBSurface(e1, e2, e3, 8, 0x000000E0, 0x0000001C, 0x00000003, 0x00000000)
  364. + SDL_CreateSurface(e2, e3, SDL_PIXELFORMAT_RGB332)
  365. |
  366. - SDL_CreateRGBSurfaceFrom(e1, e2, e3, 8, e4, 0x000000E0, 0x0000001C, 0x00000003, 0x00000000)
  367. + SDL_CreateSurfaceFrom(e1, e2, e3, e4, SDL_PIXELFORMAT_RGB332)
  368. |
  369. - SDL_CreateRGBSurface(e1, e2, e3, 12, 0x00000F00, 0x000000F0, 0x0000000F, 0x00000000)
  370. + SDL_CreateSurface(e2, e3, SDL_PIXELFORMAT_RGB444)
  371. |
  372. - SDL_CreateRGBSurfaceFrom(e1, e2, e3, 12, e4, 0x00000F00, 0x000000F0, 0x0000000F, 0x00000000)
  373. + SDL_CreateSurfaceFrom(e1, e2, e3, e4, SDL_PIXELFORMAT_RGB444)
  374. |
  375. - SDL_CreateRGBSurface(e1, e2, e3, 15, 0x00007C00, 0x000003E0, 0x0000001F, 0x00000000)
  376. + SDL_CreateSurface(e2, e3, SDL_PIXELFORMAT_RGB555)
  377. |
  378. - SDL_CreateRGBSurfaceFrom(e1, e2, e3, 15, e4, 0x00007C00, 0x000003E0, 0x0000001F, 0x00000000)
  379. + SDL_CreateSurfaceFrom(e1, e2, e3, e4, SDL_PIXELFORMAT_RGB555)
  380. |
  381. - SDL_CreateRGBSurface(e1, e2, e3, 15, 0x0000001F, 0x000003E0, 0x00007C00, 0x00000000)
  382. + SDL_CreateSurface(e2, e3, SDL_PIXELFORMAT_BGR555)
  383. |
  384. - SDL_CreateRGBSurfaceFrom(e1, e2, e3, 15, e4, 0x0000001F, 0x000003E0, 0x00007C00, 0x00000000)
  385. + SDL_CreateSurfaceFrom(e1, e2, e3, e4, SDL_PIXELFORMAT_BGR555)
  386. |
  387. - SDL_CreateRGBSurface(e1, e2, e3, 16, 0x00000F00, 0x000000F0, 0x0000000F, 0x0000F000)
  388. + SDL_CreateSurface(e2, e3, SDL_PIXELFORMAT_ARGB4444)
  389. |
  390. - SDL_CreateRGBSurfaceFrom(e1, e2, e3, 16, e4, 0x00000F00, 0x000000F0, 0x0000000F, 0x0000F000)
  391. + SDL_CreateSurfaceFrom(e1, e2, e3, e4, SDL_PIXELFORMAT_ARGB4444)
  392. |
  393. - SDL_CreateRGBSurface(e1, e2, e3, 16, 0x0000F000, 0x00000F00, 0x000000F0, 0x0000000F)
  394. + SDL_CreateSurface(e2, e3, SDL_PIXELFORMAT_RGBA4444)
  395. |
  396. - SDL_CreateRGBSurfaceFrom(e1, e2, e3, 16, e4, 0x0000F000, 0x00000F00, 0x000000F0, 0x0000000F)
  397. + SDL_CreateSurfaceFrom(e1, e2, e3, e4, SDL_PIXELFORMAT_RGBA4444)
  398. |
  399. - SDL_CreateRGBSurface(e1, e2, e3, 16, 0x0000000F, 0x000000F0, 0x00000F00, 0x0000F000)
  400. + SDL_CreateSurface(e2, e3, SDL_PIXELFORMAT_ABGR4444)
  401. |
  402. - SDL_CreateRGBSurfaceFrom(e1, e2, e3, 16, e4, 0x0000000F, 0x000000F0, 0x00000F00, 0x0000F000)
  403. + SDL_CreateSurfaceFrom(e1, e2, e3, e4, SDL_PIXELFORMAT_ABGR4444)
  404. |
  405. - SDL_CreateRGBSurface(e1, e2, e3, 16, 0x000000F0, 0x00000F00, 0x0000F000, 0x0000000F)
  406. + SDL_CreateSurface(e2, e3, SDL_PIXELFORMAT_BGRA4444)
  407. |
  408. - SDL_CreateRGBSurfaceFrom(e1, e2, e3, 16, e4, 0x000000F0, 0x00000F00, 0x0000F000, 0x0000000F)
  409. + SDL_CreateSurfaceFrom(e1, e2, e3, e4, SDL_PIXELFORMAT_BGRA4444)
  410. |
  411. - SDL_CreateRGBSurface(e1, e2, e3, 16, 0x00007C00, 0x000003E0, 0x0000001F, 0x00008000)
  412. + SDL_CreateSurface(e2, e3, SDL_PIXELFORMAT_ARGB1555)
  413. |
  414. - SDL_CreateRGBSurfaceFrom(e1, e2, e3, 16, e4, 0x00007C00, 0x000003E0, 0x0000001F, 0x00008000)
  415. + SDL_CreateSurfaceFrom(e1, e2, e3, e4, SDL_PIXELFORMAT_ARGB1555)
  416. |
  417. - SDL_CreateRGBSurface(e1, e2, e3, 16, 0x0000F800, 0x000007C0, 0x0000003E, 0x00000001)
  418. + SDL_CreateSurface(e2, e3, SDL_PIXELFORMAT_RGBA5551)
  419. |
  420. - SDL_CreateRGBSurfaceFrom(e1, e2, e3, 16, e4, 0x0000F800, 0x000007C0, 0x0000003E, 0x00000001)
  421. + SDL_CreateSurfaceFrom(e1, e2, e3, e4, SDL_PIXELFORMAT_RGBA5551)
  422. |
  423. - SDL_CreateRGBSurface(e1, e2, e3, 16, 0x0000001F, 0x000003E0, 0x00007C00, 0x00008000)
  424. + SDL_CreateSurface(e2, e3, SDL_PIXELFORMAT_ABGR1555)
  425. |
  426. - SDL_CreateRGBSurfaceFrom(e1, e2, e3, 16, e4, 0x0000001F, 0x000003E0, 0x00007C00, 0x00008000)
  427. + SDL_CreateSurfaceFrom(e1, e2, e3, e4, SDL_PIXELFORMAT_ABGR1555)
  428. |
  429. - SDL_CreateRGBSurface(e1, e2, e3, 16, 0x0000003E, 0x000007C0, 0x0000F800, 0x00000001)
  430. + SDL_CreateSurface(e2, e3, SDL_PIXELFORMAT_BGRA5551)
  431. |
  432. - SDL_CreateRGBSurfaceFrom(e1, e2, e3, 16, e4, 0x0000003E, 0x000007C0, 0x0000F800, 0x00000001)
  433. + SDL_CreateSurfaceFrom(e1, e2, e3, e4, SDL_PIXELFORMAT_BGRA5551)
  434. |
  435. - SDL_CreateRGBSurface(e1, e2, e3, 16, 0x0000F800, 0x000007E0, 0x0000001F, 0x00000000)
  436. + SDL_CreateSurface(e2, e3, SDL_PIXELFORMAT_RGB565)
  437. |
  438. - SDL_CreateRGBSurfaceFrom(e1, e2, e3, 16, e4, 0x0000F800, 0x000007E0, 0x0000001F, 0x00000000)
  439. + SDL_CreateSurfaceFrom(e1, e2, e3, e4, SDL_PIXELFORMAT_RGB565)
  440. |
  441. - SDL_CreateRGBSurface(e1, e2, e3, 16, 0x0000001F, 0x000007E0, 0x0000F800, 0x00000000)
  442. + SDL_CreateSurface(e2, e3, SDL_PIXELFORMAT_BGR565)
  443. |
  444. - SDL_CreateRGBSurfaceFrom(e1, e2, e3, 16, e4, 0x0000001F, 0x000007E0, 0x0000F800, 0x00000000)
  445. + SDL_CreateSurfaceFrom(e1, e2, e3, e4, SDL_PIXELFORMAT_BGR565)
  446. |
  447. - SDL_CreateRGBSurface(e1, e2, e3, 24, 0x000000FF, 0x0000FF00, 0x00FF0000, 0x00000000)
  448. + SDL_CreateSurface(e2, e3, SDL_PIXELFORMAT_RGB24)
  449. |
  450. - SDL_CreateRGBSurfaceFrom(e1, e2, e3, 24, e4, 0x000000FF, 0x0000FF00, 0x00FF0000, 0x00000000)
  451. + SDL_CreateSurfaceFrom(e1, e2, e3, e4, SDL_PIXELFORMAT_RGB24)
  452. |
  453. - SDL_CreateRGBSurface(e1, e2, e3, 24, 0x00FF0000, 0x0000FF00, 0x000000FF, 0x00000000)
  454. + SDL_CreateSurface(e2, e3, SDL_PIXELFORMAT_BGR24)
  455. |
  456. - SDL_CreateRGBSurfaceFrom(e1, e2, e3, 24, e4, 0x00FF0000, 0x0000FF00, 0x000000FF, 0x00000000)
  457. + SDL_CreateSurfaceFrom(e1, e2, e3, e4, SDL_PIXELFORMAT_BGR24)
  458. |
  459. - SDL_CreateRGBSurface(e1, e2, e3, 32, 0x00FF0000, 0x0000FF00, 0x000000FF, 0x00000000)
  460. + SDL_CreateSurface(e2, e3, SDL_PIXELFORMAT_RGB888)
  461. |
  462. - SDL_CreateRGBSurfaceFrom(e1, e2, e3, 32, e4, 0x00FF0000, 0x0000FF00, 0x000000FF, 0x00000000)
  463. + SDL_CreateSurfaceFrom(e1, e2, e3, e4, SDL_PIXELFORMAT_RGB888)
  464. |
  465. - SDL_CreateRGBSurface(e1, e2, e3, 32, 0xFF000000, 0x00FF0000, 0x0000FF00, 0x00000000)
  466. + SDL_CreateSurface(e2, e3, SDL_PIXELFORMAT_RGBX8888)
  467. |
  468. - SDL_CreateRGBSurfaceFrom(e1, e2, e3, 32, e4, 0xFF000000, 0x00FF0000, 0x0000FF00, 0x00000000)
  469. + SDL_CreateSurfaceFrom(e1, e2, e3, e4, SDL_PIXELFORMAT_RGBX8888)
  470. |
  471. - SDL_CreateRGBSurface(e1, e2, e3, 32, 0x000000FF, 0x0000FF00, 0x00FF0000, 0x00000000)
  472. + SDL_CreateSurface(e2, e3, SDL_PIXELFORMAT_BGR888)
  473. |
  474. - SDL_CreateRGBSurfaceFrom(e1, e2, e3, 32, e4, 0x000000FF, 0x0000FF00, 0x00FF0000, 0x00000000)
  475. + SDL_CreateSurfaceFrom(e1, e2, e3, e4, SDL_PIXELFORMAT_BGR888)
  476. |
  477. - SDL_CreateRGBSurface(e1, e2, e3, 32, 0x0000FF00, 0x00FF0000, 0xFF000000, 0x00000000)
  478. + SDL_CreateSurface(e2, e3, SDL_PIXELFORMAT_BGRX8888)
  479. |
  480. - SDL_CreateRGBSurfaceFrom(e1, e2, e3, 32, e4, 0x0000FF00, 0x00FF0000, 0xFF000000, 0x00000000)
  481. + SDL_CreateSurfaceFrom(e1, e2, e3, e4, SDL_PIXELFORMAT_BGRX8888)
  482. |
  483. - SDL_CreateRGBSurface(e1, e2, e3, 32, 0x00FF0000, 0x0000FF00, 0x000000FF, 0xFF000000)
  484. + SDL_CreateSurface(e2, e3, SDL_PIXELFORMAT_ARGB8888)
  485. |
  486. - SDL_CreateRGBSurfaceFrom(e1, e2, e3, 32, e4, 0x00FF0000, 0x0000FF00, 0x000000FF, 0xFF000000)
  487. + SDL_CreateSurfaceFrom(e1, e2, e3, e4, SDL_PIXELFORMAT_ARGB8888)
  488. |
  489. - SDL_CreateRGBSurface(e1, e2, e3, 32, 0xFF000000, 0x00FF0000, 0x0000FF00, 0x000000FF)
  490. + SDL_CreateSurface(e2, e3, SDL_PIXELFORMAT_RGBA8888)
  491. |
  492. - SDL_CreateRGBSurfaceFrom(e1, e2, e3, 32, e4, 0xFF000000, 0x00FF0000, 0x0000FF00, 0x000000FF)
  493. + SDL_CreateSurfaceFrom(e1, e2, e3, e4, SDL_PIXELFORMAT_RGBA8888)
  494. |
  495. - SDL_CreateRGBSurface(e1, e2, e3, 32, 0x000000FF, 0x0000FF00, 0x00FF0000, 0xFF000000)
  496. + SDL_CreateSurface(e2, e3, SDL_PIXELFORMAT_ABGR8888)
  497. |
  498. - SDL_CreateRGBSurfaceFrom(e1, e2, e3, 32, e4, 0x000000FF, 0x0000FF00, 0x00FF0000, 0xFF000000)
  499. + SDL_CreateSurfaceFrom(e1, e2, e3, e4, SDL_PIXELFORMAT_ABGR8888)
  500. |
  501. - SDL_CreateRGBSurface(e1, e2, e3, 32, 0x0000FF00, 0x00FF0000, 0xFF000000, 0x000000FF)
  502. + SDL_CreateSurface(e2, e3, SDL_PIXELFORMAT_BGRA8888)
  503. |
  504. - SDL_CreateRGBSurfaceFrom(e1, e2, e3, 32, e4, 0x0000FF00, 0x00FF0000, 0xFF000000, 0x000000FF)
  505. + SDL_CreateSurfaceFrom(e1, e2, e3, e4, SDL_PIXELFORMAT_BGRA8888)
  506. |
  507. - SDL_CreateRGBSurface(e1, e2, e3, 32, 0x3FF00000, 0x000FFC00, 0x000003FF, 0xC0000000)
  508. + SDL_CreateSurface(e2, e3, SDL_PIXELFORMAT_ARGB2101010)
  509. |
  510. - SDL_CreateRGBSurfaceFrom(e1, e2, e3, 32, e4, 0x3FF00000, 0x000FFC00, 0x000003FF, 0xC0000000)
  511. + SDL_CreateSurfaceFrom(e1, e2, e3, e4, SDL_PIXELFORMAT_ARGB2101010)
  512. |
  513. // End Generated
  514. - SDL_CreateRGBSurface(e1, e2, e3, e4->BitsPerPixel, e4->Rmask, e4->Gmask, e4->Bmask, e4->Amask)
  515. + SDL_CreateSurface(e2, e3, e4->format)
  516. |
  517. - SDL_CreateRGBSurfaceFrom(e1, e2, e3, e4->BitsPerPixel, e5, e4->Rmask, e4->Gmask, e4->Bmask, e4->Amask)
  518. + SDL_CreateSurfaceFrom(e1, e2, e3, e5, e4->format)
  519. |
  520. -SDL_CreateRGBSurface(e1, e2, e3, e4, e5, e6, e7, e8)
  521. +SDL_CreateSurface(e2, e3, SDL_MasksToPixelFormatEnum(e4, e5, e6, e7, e8))
  522. |
  523. -SDL_CreateRGBSurfaceFrom(e1, e2, e3, e4, e5, e6, e7, e8, e9)
  524. +SDL_CreateSurfaceFrom(e1, e2, e3, e5, SDL_MasksToPixelFormatEnum(e4, e6, e7, e8, e9))
  525. )
  526. @@
  527. // SDL_CreateRenderer:
  528. // 2nd argument changed from int (default=-1) to const char* (default=NULL)
  529. expression e1, e2, e3;
  530. @@
  531. (
  532. -SDL_CreateRenderer(e1, -1, e3)
  533. +SDL_CreateRenderer(e1, NULL, e3)
  534. |
  535. -SDL_CreateRenderer(e1, e2, e3)
  536. +SDL_CreateRenderer(e1, SDL_GetRenderDriver(e2), e3)
  537. )
  538. // Renaming of SDL_oldnames.h
  539. @@
  540. @@
  541. - SDL_AudioStreamAvailable
  542. + SDL_GetAudioStreamAvailable
  543. (...)
  544. @@
  545. @@
  546. - SDL_AudioStreamClear
  547. + SDL_ClearAudioStream
  548. (...)
  549. @@
  550. @@
  551. - SDL_AudioStreamFlush
  552. + SDL_FlushAudioStream
  553. (...)
  554. @@
  555. @@
  556. - SDL_AudioStreamGet
  557. + SDL_GetAudioStreamData
  558. (...)
  559. @@
  560. @@
  561. - SDL_AudioStreamPut
  562. + SDL_PutAudioStreamData
  563. (...)
  564. @@
  565. @@
  566. - SDL_FreeAudioStream
  567. + SDL_DestroyAudioStream
  568. (...)
  569. @@
  570. @@
  571. - SDL_FreeWAV
  572. + SDL_free
  573. (...)
  574. @@
  575. @@
  576. - SDL_NewAudioStream
  577. + SDL_CreateAudioStream
  578. (...)
  579. @@
  580. @@
  581. - SDL_CONTROLLERAXISMOTION
  582. + SDL_EVENT_GAMEPAD_AXIS_MOTION
  583. @@
  584. @@
  585. - SDL_CONTROLLERBUTTONDOWN
  586. + SDL_EVENT_GAMEPAD_BUTTON_DOWN
  587. @@
  588. @@
  589. - SDL_CONTROLLERBUTTONUP
  590. + SDL_EVENT_GAMEPAD_BUTTON_UP
  591. @@
  592. @@
  593. - SDL_CONTROLLERDEVICEADDED
  594. + SDL_EVENT_GAMEPAD_ADDED
  595. @@
  596. @@
  597. - SDL_CONTROLLERDEVICEREMAPPED
  598. + SDL_EVENT_GAMEPAD_REMAPPED
  599. @@
  600. @@
  601. - SDL_CONTROLLERDEVICEREMOVED
  602. + SDL_EVENT_GAMEPAD_REMOVED
  603. @@
  604. @@
  605. - SDL_CONTROLLERSENSORUPDATE
  606. + SDL_EVENT_GAMEPAD_SENSOR_UPDATE
  607. @@
  608. @@
  609. - SDL_CONTROLLERTOUCHPADDOWN
  610. + SDL_EVENT_GAMEPAD_TOUCHPAD_DOWN
  611. @@
  612. @@
  613. - SDL_CONTROLLERTOUCHPADMOTION
  614. + SDL_EVENT_GAMEPAD_TOUCHPAD_MOTION
  615. @@
  616. @@
  617. - SDL_CONTROLLERTOUCHPADUP
  618. + SDL_EVENT_GAMEPAD_TOUCHPAD_UP
  619. @@
  620. typedef SDL_ControllerAxisEvent, SDL_GamepadAxisEvent;
  621. @@
  622. - SDL_ControllerAxisEvent
  623. + SDL_GamepadAxisEvent
  624. @@
  625. typedef SDL_ControllerButtonEvent, SDL_GamepadButtonEvent;
  626. @@
  627. - SDL_ControllerButtonEvent
  628. + SDL_GamepadButtonEvent
  629. @@
  630. typedef SDL_ControllerDeviceEvent, SDL_GamepadDeviceEvent;
  631. @@
  632. - SDL_ControllerDeviceEvent
  633. + SDL_GamepadDeviceEvent
  634. @@
  635. typedef SDL_ControllerSensorEvent, SDL_GamepadSensorEvent;
  636. @@
  637. - SDL_ControllerSensorEvent
  638. + SDL_GamepadSensorEvent
  639. @@
  640. typedef SDL_ControllerTouchpadEvent, SDL_GamepadTouchpadEvent;
  641. @@
  642. - SDL_ControllerTouchpadEvent
  643. + SDL_GamepadTouchpadEvent
  644. @@
  645. @@
  646. - SDL_CONTROLLER_AXIS_INVALID
  647. + SDL_GAMEPAD_AXIS_INVALID
  648. @@
  649. @@
  650. - SDL_CONTROLLER_AXIS_LEFTX
  651. + SDL_GAMEPAD_AXIS_LEFTX
  652. @@
  653. @@
  654. - SDL_CONTROLLER_AXIS_LEFTY
  655. + SDL_GAMEPAD_AXIS_LEFTY
  656. @@
  657. @@
  658. - SDL_CONTROLLER_AXIS_MAX
  659. + SDL_GAMEPAD_AXIS_MAX
  660. @@
  661. @@
  662. - SDL_CONTROLLER_AXIS_RIGHTX
  663. + SDL_GAMEPAD_AXIS_RIGHTX
  664. @@
  665. @@
  666. - SDL_CONTROLLER_AXIS_RIGHTY
  667. + SDL_GAMEPAD_AXIS_RIGHTY
  668. @@
  669. @@
  670. - SDL_CONTROLLER_AXIS_TRIGGERLEFT
  671. + SDL_GAMEPAD_AXIS_LEFT_TRIGGER
  672. @@
  673. @@
  674. - SDL_CONTROLLER_AXIS_TRIGGERRIGHT
  675. + SDL_GAMEPAD_AXIS_RIGHT_TRIGGER
  676. @@
  677. @@
  678. - SDL_CONTROLLER_BINDTYPE_AXIS
  679. + SDL_GAMEPAD_BINDTYPE_AXIS
  680. @@
  681. @@
  682. - SDL_CONTROLLER_BINDTYPE_BUTTON
  683. + SDL_GAMEPAD_BINDTYPE_BUTTON
  684. @@
  685. @@
  686. - SDL_CONTROLLER_BINDTYPE_HAT
  687. + SDL_GAMEPAD_BINDTYPE_HAT
  688. @@
  689. @@
  690. - SDL_CONTROLLER_BINDTYPE_NONE
  691. + SDL_GAMEPAD_BINDTYPE_NONE
  692. @@
  693. @@
  694. - SDL_CONTROLLER_BUTTON_A
  695. + SDL_GAMEPAD_BUTTON_A
  696. @@
  697. @@
  698. - SDL_CONTROLLER_BUTTON_B
  699. + SDL_GAMEPAD_BUTTON_B
  700. @@
  701. @@
  702. - SDL_CONTROLLER_BUTTON_BACK
  703. + SDL_GAMEPAD_BUTTON_BACK
  704. @@
  705. @@
  706. - SDL_CONTROLLER_BUTTON_DPAD_DOWN
  707. + SDL_GAMEPAD_BUTTON_DPAD_DOWN
  708. @@
  709. @@
  710. - SDL_CONTROLLER_BUTTON_DPAD_LEFT
  711. + SDL_GAMEPAD_BUTTON_DPAD_LEFT
  712. @@
  713. @@
  714. - SDL_CONTROLLER_BUTTON_DPAD_RIGHT
  715. + SDL_GAMEPAD_BUTTON_DPAD_RIGHT
  716. @@
  717. @@
  718. - SDL_CONTROLLER_BUTTON_DPAD_UP
  719. + SDL_GAMEPAD_BUTTON_DPAD_UP
  720. @@
  721. @@
  722. - SDL_CONTROLLER_BUTTON_GUIDE
  723. + SDL_GAMEPAD_BUTTON_GUIDE
  724. @@
  725. @@
  726. - SDL_CONTROLLER_BUTTON_INVALID
  727. + SDL_GAMEPAD_BUTTON_INVALID
  728. @@
  729. @@
  730. - SDL_CONTROLLER_BUTTON_LEFTSHOULDER
  731. + SDL_GAMEPAD_BUTTON_LEFT_SHOULDER
  732. @@
  733. @@
  734. - SDL_CONTROLLER_BUTTON_LEFTSTICK
  735. + SDL_GAMEPAD_BUTTON_LEFT_STICK
  736. @@
  737. @@
  738. - SDL_CONTROLLER_BUTTON_MAX
  739. + SDL_GAMEPAD_BUTTON_MAX
  740. @@
  741. @@
  742. - SDL_CONTROLLER_BUTTON_MISC1
  743. + SDL_GAMEPAD_BUTTON_MISC1
  744. @@
  745. @@
  746. - SDL_CONTROLLER_BUTTON_PADDLE1
  747. + SDL_GAMEPAD_BUTTON_PADDLE1
  748. @@
  749. @@
  750. - SDL_CONTROLLER_BUTTON_PADDLE2
  751. + SDL_GAMEPAD_BUTTON_PADDLE2
  752. @@
  753. @@
  754. - SDL_CONTROLLER_BUTTON_PADDLE3
  755. + SDL_GAMEPAD_BUTTON_PADDLE3
  756. @@
  757. @@
  758. - SDL_CONTROLLER_BUTTON_PADDLE4
  759. + SDL_GAMEPAD_BUTTON_PADDLE4
  760. @@
  761. @@
  762. - SDL_CONTROLLER_BUTTON_RIGHTSHOULDER
  763. + SDL_GAMEPAD_BUTTON_RIGHT_SHOULDER
  764. @@
  765. @@
  766. - SDL_CONTROLLER_BUTTON_RIGHTSTICK
  767. + SDL_GAMEPAD_BUTTON_RIGHT_STICK
  768. @@
  769. @@
  770. - SDL_CONTROLLER_BUTTON_START
  771. + SDL_GAMEPAD_BUTTON_START
  772. @@
  773. @@
  774. - SDL_CONTROLLER_BUTTON_TOUCHPAD
  775. + SDL_GAMEPAD_BUTTON_TOUCHPAD
  776. @@
  777. @@
  778. - SDL_CONTROLLER_BUTTON_X
  779. + SDL_GAMEPAD_BUTTON_X
  780. @@
  781. @@
  782. - SDL_CONTROLLER_BUTTON_Y
  783. + SDL_GAMEPAD_BUTTON_Y
  784. @@
  785. @@
  786. - SDL_CONTROLLER_TYPE_AMAZON_LUNA
  787. + SDL_GAMEPAD_TYPE_AMAZON_LUNA
  788. @@
  789. @@
  790. - SDL_CONTROLLER_TYPE_GOOGLE_STADIA
  791. + SDL_GAMEPAD_TYPE_GOOGLE_STADIA
  792. @@
  793. @@
  794. - SDL_CONTROLLER_TYPE_NINTENDO_SWITCH_JOYCON_LEFT
  795. + SDL_GAMEPAD_TYPE_NINTENDO_SWITCH_JOYCON_LEFT
  796. @@
  797. @@
  798. - SDL_CONTROLLER_TYPE_NINTENDO_SWITCH_JOYCON_PAIR
  799. + SDL_GAMEPAD_TYPE_NINTENDO_SWITCH_JOYCON_PAIR
  800. @@
  801. @@
  802. - SDL_CONTROLLER_TYPE_NINTENDO_SWITCH_JOYCON_RIGHT
  803. + SDL_GAMEPAD_TYPE_NINTENDO_SWITCH_JOYCON_RIGHT
  804. @@
  805. @@
  806. - SDL_CONTROLLER_TYPE_NINTENDO_SWITCH_PRO
  807. + SDL_GAMEPAD_TYPE_NINTENDO_SWITCH_PRO
  808. @@
  809. @@
  810. - SDL_CONTROLLER_TYPE_NVIDIA_SHIELD
  811. + SDL_GAMEPAD_TYPE_NVIDIA_SHIELD
  812. @@
  813. @@
  814. - SDL_CONTROLLER_TYPE_PS3
  815. + SDL_GAMEPAD_TYPE_PS3
  816. @@
  817. @@
  818. - SDL_CONTROLLER_TYPE_PS4
  819. + SDL_GAMEPAD_TYPE_PS4
  820. @@
  821. @@
  822. - SDL_CONTROLLER_TYPE_PS5
  823. + SDL_GAMEPAD_TYPE_PS5
  824. @@
  825. @@
  826. - SDL_CONTROLLER_TYPE_UNKNOWN
  827. + SDL_GAMEPAD_TYPE_UNKNOWN
  828. @@
  829. @@
  830. - SDL_CONTROLLER_TYPE_VIRTUAL
  831. + SDL_GAMEPAD_TYPE_VIRTUAL
  832. @@
  833. @@
  834. - SDL_CONTROLLER_TYPE_XBOX360
  835. + SDL_GAMEPAD_TYPE_XBOX360
  836. @@
  837. @@
  838. - SDL_CONTROLLER_TYPE_XBOXONE
  839. + SDL_GAMEPAD_TYPE_XBOXONE
  840. @@
  841. typedef SDL_GameController, SDL_Gamepad;
  842. @@
  843. - SDL_GameController
  844. + SDL_Gamepad
  845. @@
  846. @@
  847. - SDL_GameControllerAddMapping
  848. + SDL_AddGamepadMapping
  849. (...)
  850. @@
  851. @@
  852. - SDL_GameControllerAddMappingsFromFile
  853. + SDL_AddGamepadMappingsFromFile
  854. (...)
  855. @@
  856. @@
  857. - SDL_GameControllerAddMappingsFromRW
  858. + SDL_AddGamepadMappingsFromRW
  859. (...)
  860. @@
  861. typedef SDL_GameControllerAxis, SDL_GamepadAxis;
  862. @@
  863. - SDL_GameControllerAxis
  864. + SDL_GamepadAxis
  865. @@
  866. typedef SDL_GameControllerBindType, SDL_GamepadBindingType;
  867. @@
  868. - SDL_GameControllerBindType
  869. + SDL_GamepadBindingType
  870. @@
  871. typedef SDL_GameControllerButton, SDL_GamepadButton;
  872. @@
  873. - SDL_GameControllerButton
  874. + SDL_GamepadButton
  875. @@
  876. typedef SDL_GameControllerButtonBind, SDL_GamepadBinding;
  877. @@
  878. - SDL_GameControllerButtonBind
  879. + SDL_GamepadBinding
  880. @@
  881. @@
  882. - SDL_GameControllerClose
  883. + SDL_CloseGamepad
  884. (...)
  885. @@
  886. @@
  887. - SDL_GameControllerFromInstanceID
  888. + SDL_GetGamepadFromInstanceID
  889. (...)
  890. @@
  891. @@
  892. - SDL_GameControllerFromPlayerIndex
  893. + SDL_GetGamepadFromPlayerIndex
  894. (...)
  895. @@
  896. @@
  897. - SDL_GameControllerGetAppleSFSymbolsNameForAxis
  898. + SDL_GetGamepadAppleSFSymbolsNameForAxis
  899. (...)
  900. @@
  901. @@
  902. - SDL_GameControllerGetAppleSFSymbolsNameForButton
  903. + SDL_GetGamepadAppleSFSymbolsNameForButton
  904. (...)
  905. @@
  906. @@
  907. - SDL_GameControllerGetAttached
  908. + SDL_GamepadConnected
  909. (...)
  910. @@
  911. @@
  912. - SDL_GameControllerGetAxis
  913. + SDL_GetGamepadAxis
  914. (...)
  915. @@
  916. @@
  917. - SDL_GameControllerGetAxisFromString
  918. + SDL_GetGamepadAxisFromString
  919. (...)
  920. @@
  921. @@
  922. - SDL_GameControllerGetBindForAxis
  923. + SDL_GetGamepadBindForAxis
  924. (...)
  925. @@
  926. @@
  927. - SDL_GameControllerGetBindForButton
  928. + SDL_GetGamepadBindForButton
  929. (...)
  930. @@
  931. @@
  932. - SDL_GameControllerGetButton
  933. + SDL_GetGamepadButton
  934. (...)
  935. @@
  936. @@
  937. - SDL_GameControllerGetButtonFromString
  938. + SDL_GetGamepadButtonFromString
  939. (...)
  940. @@
  941. @@
  942. - SDL_GameControllerGetFirmwareVersion
  943. + SDL_GetGamepadFirmwareVersion
  944. (...)
  945. @@
  946. @@
  947. - SDL_GameControllerGetJoystick
  948. + SDL_GetGamepadJoystick
  949. (...)
  950. @@
  951. @@
  952. - SDL_GameControllerGetNumTouchpadFingers
  953. + SDL_GetGamepadNumTouchpadFingers
  954. (...)
  955. @@
  956. @@
  957. - SDL_GameControllerGetNumTouchpads
  958. + SDL_GetGamepadNumTouchpads
  959. (...)
  960. @@
  961. @@
  962. - SDL_GameControllerGetPlayerIndex
  963. + SDL_GetGamepadPlayerIndex
  964. (...)
  965. @@
  966. @@
  967. - SDL_GameControllerGetProduct
  968. + SDL_GetGamepadProduct
  969. (...)
  970. @@
  971. @@
  972. - SDL_GameControllerGetProductVersion
  973. + SDL_GetGamepadProductVersion
  974. (...)
  975. @@
  976. @@
  977. - SDL_GameControllerGetSensorData
  978. + SDL_GetGamepadSensorData
  979. (...)
  980. @@
  981. @@
  982. - SDL_GameControllerGetSensorDataRate
  983. + SDL_GetGamepadSensorDataRate
  984. (...)
  985. @@
  986. @@
  987. - SDL_GameControllerGetSerial
  988. + SDL_GetGamepadSerial
  989. (...)
  990. @@
  991. @@
  992. - SDL_GameControllerGetStringForAxis
  993. + SDL_GetGamepadStringForAxis
  994. (...)
  995. @@
  996. @@
  997. - SDL_GameControllerGetStringForButton
  998. + SDL_GetGamepadStringForButton
  999. (...)
  1000. @@
  1001. @@
  1002. - SDL_GameControllerGetTouchpadFinger
  1003. + SDL_GetGamepadTouchpadFinger
  1004. (...)
  1005. @@
  1006. @@
  1007. - SDL_GameControllerGetType
  1008. + SDL_GetGamepadType
  1009. (...)
  1010. @@
  1011. @@
  1012. - SDL_GameControllerGetVendor
  1013. + SDL_GetGamepadVendor
  1014. (...)
  1015. @@
  1016. @@
  1017. - SDL_GameControllerHasAxis
  1018. + SDL_GamepadHasAxis
  1019. (...)
  1020. @@
  1021. @@
  1022. - SDL_GameControllerHasButton
  1023. + SDL_GamepadHasButton
  1024. (...)
  1025. @@
  1026. @@
  1027. - SDL_GameControllerHasLED
  1028. + SDL_GamepadHasLED
  1029. (...)
  1030. @@
  1031. @@
  1032. - SDL_GameControllerHasRumble
  1033. + SDL_GamepadHasRumble
  1034. (...)
  1035. @@
  1036. @@
  1037. - SDL_GameControllerHasRumbleTriggers
  1038. + SDL_GamepadHasRumbleTriggers
  1039. (...)
  1040. @@
  1041. @@
  1042. - SDL_GameControllerHasSensor
  1043. + SDL_GamepadHasSensor
  1044. (...)
  1045. @@
  1046. @@
  1047. - SDL_GameControllerIsSensorEnabled
  1048. + SDL_GamepadSensorEnabled
  1049. (...)
  1050. @@
  1051. @@
  1052. - SDL_GameControllerMapping
  1053. + SDL_GetGamepadMapping
  1054. (...)
  1055. @@
  1056. @@
  1057. - SDL_GameControllerMappingForGUID
  1058. + SDL_GetGamepadMappingForGUID
  1059. (...)
  1060. @@
  1061. @@
  1062. - SDL_GameControllerMappingForIndex
  1063. + SDL_GetGamepadMappingForIndex
  1064. (...)
  1065. @@
  1066. @@
  1067. - SDL_GameControllerName
  1068. + SDL_GetGamepadName
  1069. (...)
  1070. @@
  1071. @@
  1072. - SDL_GameControllerNumMappings
  1073. + SDL_GetNumGamepadMappings
  1074. (...)
  1075. @@
  1076. @@
  1077. - SDL_GameControllerOpen
  1078. + SDL_OpenGamepad
  1079. (...)
  1080. @@
  1081. @@
  1082. - SDL_GameControllerPath
  1083. + SDL_GetGamepadPath
  1084. (...)
  1085. @@
  1086. @@
  1087. - SDL_GameControllerRumble
  1088. + SDL_RumbleGamepad
  1089. (...)
  1090. @@
  1091. @@
  1092. - SDL_GameControllerRumbleTriggers
  1093. + SDL_RumbleGamepadTriggers
  1094. (...)
  1095. @@
  1096. @@
  1097. - SDL_GameControllerSendEffect
  1098. + SDL_SendGamepadEffect
  1099. (...)
  1100. @@
  1101. @@
  1102. - SDL_GameControllerSetLED
  1103. + SDL_SetGamepadLED
  1104. (...)
  1105. @@
  1106. @@
  1107. - SDL_GameControllerSetPlayerIndex
  1108. + SDL_SetGamepadPlayerIndex
  1109. (...)
  1110. @@
  1111. @@
  1112. - SDL_GameControllerSetSensorEnabled
  1113. + SDL_SetGamepadSensorEnabled
  1114. (...)
  1115. @@
  1116. @@
  1117. - SDL_GameControllerType
  1118. + SDL_GamepadType
  1119. (...)
  1120. @@
  1121. @@
  1122. - SDL_GameControllerUpdate
  1123. + SDL_UpdateGamepads
  1124. (...)
  1125. @@
  1126. @@
  1127. - SDL_INIT_GAMECONTROLLER
  1128. + SDL_INIT_GAMEPAD
  1129. @ rule_init_noparachute @
  1130. @@
  1131. - SDL_INIT_NOPARACHUTE
  1132. + 0
  1133. @@
  1134. @@
  1135. - SDL_JOYSTICK_TYPE_GAMECONTROLLER
  1136. + SDL_JOYSTICK_TYPE_GAMEPAD
  1137. @@
  1138. @@
  1139. - SDL_JoystickAttachVirtual
  1140. + SDL_AttachVirtualJoystick
  1141. (...)
  1142. @@
  1143. @@
  1144. - SDL_JoystickAttachVirtualEx
  1145. + SDL_AttachVirtualJoystickEx
  1146. (...)
  1147. @@
  1148. @@
  1149. - SDL_JoystickClose
  1150. + SDL_CloseJoystick
  1151. (...)
  1152. @@
  1153. @@
  1154. - SDL_JoystickCurrentPowerLevel
  1155. + SDL_GetJoystickPowerLevel
  1156. (...)
  1157. @@
  1158. @@
  1159. - SDL_JoystickDetachVirtual
  1160. + SDL_DetachVirtualJoystick
  1161. (...)
  1162. @@
  1163. @@
  1164. - SDL_JoystickFromInstanceID
  1165. + SDL_GetJoystickFromInstanceID
  1166. (...)
  1167. @@
  1168. @@
  1169. - SDL_JoystickFromPlayerIndex
  1170. + SDL_GetJoystickFromPlayerIndex
  1171. (...)
  1172. @@
  1173. @@
  1174. - SDL_JoystickGetAttached
  1175. + SDL_JoystickConnected
  1176. (...)
  1177. @@
  1178. @@
  1179. - SDL_JoystickGetAxis
  1180. + SDL_GetJoystickAxis
  1181. (...)
  1182. @@
  1183. @@
  1184. - SDL_JoystickGetAxisInitialState
  1185. + SDL_GetJoystickAxisInitialState
  1186. (...)
  1187. @@
  1188. @@
  1189. - SDL_JoystickGetButton
  1190. + SDL_GetJoystickButton
  1191. (...)
  1192. @@
  1193. @@
  1194. - SDL_JoystickGetFirmwareVersion
  1195. + SDL_GetJoystickFirmwareVersion
  1196. (...)
  1197. @@
  1198. @@
  1199. - SDL_JoystickGetGUID
  1200. + SDL_GetJoystickGUID
  1201. (...)
  1202. @@
  1203. @@
  1204. - SDL_JoystickGetGUIDFromString
  1205. + SDL_GetJoystickGUIDFromString
  1206. (...)
  1207. @@
  1208. @@
  1209. - SDL_JoystickGetGUIDString
  1210. + SDL_GetJoystickGUIDString
  1211. (...)
  1212. @@
  1213. @@
  1214. - SDL_JoystickGetHat
  1215. + SDL_GetJoystickHat
  1216. (...)
  1217. @@
  1218. @@
  1219. - SDL_JoystickGetPlayerIndex
  1220. + SDL_GetJoystickPlayerIndex
  1221. (...)
  1222. @@
  1223. @@
  1224. - SDL_JoystickGetProduct
  1225. + SDL_GetJoystickProduct
  1226. (...)
  1227. @@
  1228. @@
  1229. - SDL_JoystickGetProductVersion
  1230. + SDL_GetJoystickProductVersion
  1231. (...)
  1232. @@
  1233. @@
  1234. - SDL_JoystickGetSerial
  1235. + SDL_GetJoystickSerial
  1236. (...)
  1237. @@
  1238. @@
  1239. - SDL_JoystickGetType
  1240. + SDL_GetJoystickType
  1241. (...)
  1242. @@
  1243. @@
  1244. - SDL_JoystickGetVendor
  1245. + SDL_GetJoystickVendor
  1246. (...)
  1247. @@
  1248. @@
  1249. - SDL_JoystickInstanceID
  1250. + SDL_GetJoystickInstanceID
  1251. (...)
  1252. @@
  1253. @@
  1254. - SDL_JoystickName
  1255. + SDL_GetJoystickName
  1256. (...)
  1257. @@
  1258. @@
  1259. - SDL_JoystickNumAxes
  1260. + SDL_GetNumJoystickAxes
  1261. (...)
  1262. @@
  1263. @@
  1264. - SDL_JoystickNumButtons
  1265. + SDL_GetNumJoystickButtons
  1266. (...)
  1267. @@
  1268. @@
  1269. - SDL_JoystickNumHats
  1270. + SDL_GetNumJoystickHats
  1271. (...)
  1272. @@
  1273. @@
  1274. - SDL_JoystickOpen
  1275. + SDL_OpenJoystick
  1276. (...)
  1277. @@
  1278. @@
  1279. - SDL_JoystickPath
  1280. + SDL_GetJoystickPath
  1281. (...)
  1282. @@
  1283. @@
  1284. - SDL_JoystickRumble
  1285. + SDL_RumbleJoystick
  1286. (...)
  1287. @@
  1288. @@
  1289. - SDL_JoystickRumbleTriggers
  1290. + SDL_RumbleJoystickTriggers
  1291. (...)
  1292. @@
  1293. @@
  1294. - SDL_JoystickSendEffect
  1295. + SDL_SendJoystickEffect
  1296. (...)
  1297. @@
  1298. @@
  1299. - SDL_JoystickSetLED
  1300. + SDL_SetJoystickLED
  1301. (...)
  1302. @@
  1303. @@
  1304. - SDL_JoystickSetPlayerIndex
  1305. + SDL_SetJoystickPlayerIndex
  1306. (...)
  1307. @@
  1308. @@
  1309. - SDL_JoystickSetVirtualAxis
  1310. + SDL_SetJoystickVirtualAxis
  1311. (...)
  1312. @@
  1313. @@
  1314. - SDL_JoystickSetVirtualButton
  1315. + SDL_SetJoystickVirtualButton
  1316. (...)
  1317. @@
  1318. @@
  1319. - SDL_JoystickSetVirtualHat
  1320. + SDL_SetJoystickVirtualHat
  1321. (...)
  1322. @@
  1323. @@
  1324. - SDL_JoystickUpdate
  1325. + SDL_UpdateJoysticks
  1326. (...)
  1327. @@
  1328. @@
  1329. - SDL_IsScreenKeyboardShown
  1330. + SDL_ScreenKeyboardShown
  1331. (...)
  1332. @@
  1333. @@
  1334. - SDL_IsTextInputActive
  1335. + SDL_TextInputActive
  1336. (...)
  1337. @@
  1338. @@
  1339. - SDL_IsTextInputShown
  1340. + SDL_TextInputShown
  1341. (...)
  1342. @@
  1343. @@
  1344. - KMOD_ALT
  1345. + SDL_KMOD_ALT
  1346. @@
  1347. @@
  1348. - KMOD_CAPS
  1349. + SDL_KMOD_CAPS
  1350. @@
  1351. @@
  1352. - KMOD_CTRL
  1353. + SDL_KMOD_CTRL
  1354. @@
  1355. @@
  1356. - KMOD_GUI
  1357. + SDL_KMOD_GUI
  1358. @@
  1359. @@
  1360. - KMOD_LALT
  1361. + SDL_KMOD_LALT
  1362. @@
  1363. @@
  1364. - KMOD_LCTRL
  1365. + SDL_KMOD_LCTRL
  1366. @@
  1367. @@
  1368. - KMOD_LGUI
  1369. + SDL_KMOD_LGUI
  1370. @@
  1371. @@
  1372. - KMOD_LSHIFT
  1373. + SDL_KMOD_LSHIFT
  1374. @@
  1375. @@
  1376. - KMOD_MODE
  1377. + SDL_KMOD_MODE
  1378. @@
  1379. @@
  1380. - KMOD_NONE
  1381. + SDL_KMOD_NONE
  1382. @@
  1383. @@
  1384. - KMOD_NUM
  1385. + SDL_KMOD_NUM
  1386. @@
  1387. @@
  1388. - KMOD_RALT
  1389. + SDL_KMOD_RALT
  1390. @@
  1391. @@
  1392. - KMOD_RCTRL
  1393. + SDL_KMOD_RCTRL
  1394. @@
  1395. @@
  1396. - KMOD_RESERVED
  1397. + SDL_KMOD_RESERVED
  1398. @@
  1399. @@
  1400. - KMOD_RGUI
  1401. + SDL_KMOD_RGUI
  1402. @@
  1403. @@
  1404. - KMOD_RSHIFT
  1405. + SDL_KMOD_RSHIFT
  1406. @@
  1407. @@
  1408. - KMOD_SCROLL
  1409. + SDL_KMOD_SCROLL
  1410. @@
  1411. @@
  1412. - KMOD_SHIFT
  1413. + SDL_KMOD_SHIFT
  1414. @@
  1415. @@
  1416. - SDL_FreeCursor
  1417. + SDL_DestroyCursor
  1418. (...)
  1419. @@
  1420. @@
  1421. - SDL_AllocFormat
  1422. + SDL_CreatePixelFormat
  1423. (...)
  1424. @@
  1425. @@
  1426. - SDL_AllocPalette
  1427. + SDL_CreatePalette
  1428. (...)
  1429. @@
  1430. @@
  1431. - SDL_FreeFormat
  1432. + SDL_DestroyPixelFormat
  1433. (...)
  1434. @@
  1435. @@
  1436. - SDL_FreePalette
  1437. + SDL_DestroyPalette
  1438. (...)
  1439. @@
  1440. @@
  1441. - SDL_MasksToPixelFormatEnum
  1442. + SDL_GetPixelFormatEnumForMasks
  1443. (...)
  1444. @@
  1445. @@
  1446. - SDL_PixelFormatEnumToMasks
  1447. + SDL_GetMasksForPixelFormatEnum
  1448. (...)
  1449. @@
  1450. @@
  1451. - SDL_EncloseFPoints
  1452. + SDL_GetRectEnclosingPointsFloat
  1453. (...)
  1454. @@
  1455. @@
  1456. - SDL_EnclosePoints
  1457. + SDL_GetRectEnclosingPoints
  1458. (...)
  1459. @@
  1460. @@
  1461. - SDL_FRectEmpty
  1462. + SDL_RectEmptyFloat
  1463. (...)
  1464. @@
  1465. @@
  1466. - SDL_FRectEquals
  1467. + SDL_RectsEqualFloat
  1468. (...)
  1469. @@
  1470. @@
  1471. - SDL_FRectEqualsEpsilon
  1472. + SDL_RectsEqualEpsilon
  1473. (...)
  1474. @@
  1475. @@
  1476. - SDL_HasIntersection
  1477. + SDL_HasRectIntersection
  1478. (...)
  1479. @@
  1480. @@
  1481. - SDL_HasIntersectionF
  1482. + SDL_HasRectIntersectionFloat
  1483. (...)
  1484. @@
  1485. @@
  1486. - SDL_IntersectFRect
  1487. + SDL_GetRectIntersectionFloat
  1488. (...)
  1489. @@
  1490. @@
  1491. - SDL_IntersectFRectAndLine
  1492. + SDL_GetRectAndLineIntersectionFloat
  1493. (...)
  1494. @@
  1495. @@
  1496. - SDL_IntersectRect
  1497. + SDL_GetRectIntersection
  1498. (...)
  1499. @@
  1500. @@
  1501. - SDL_IntersectRectAndLine
  1502. + SDL_GetRectAndLineIntersection
  1503. (...)
  1504. @@
  1505. @@
  1506. - SDL_PointInFRect
  1507. + SDL_PointInRectFloat
  1508. (...)
  1509. @@
  1510. @@
  1511. - SDL_RectEquals
  1512. + SDL_RectsEqual
  1513. (...)
  1514. @@
  1515. @@
  1516. - SDL_UnionFRect
  1517. + SDL_GetRectUnionFloat
  1518. (...)
  1519. @@
  1520. @@
  1521. - SDL_UnionRect
  1522. + SDL_GetRectUnion
  1523. (...)
  1524. @@
  1525. @@
  1526. - SDL_RenderCopyExF
  1527. + SDL_RenderTextureRotated
  1528. (...)
  1529. @@
  1530. @@
  1531. - SDL_RenderCopyF
  1532. + SDL_RenderTexture
  1533. (...)
  1534. @@
  1535. @@
  1536. - SDL_RenderDrawLineF
  1537. + SDL_RenderLine
  1538. (...)
  1539. @@
  1540. @@
  1541. - SDL_RenderDrawLinesF
  1542. + SDL_RenderLines
  1543. (...)
  1544. @@
  1545. @@
  1546. - SDL_RenderDrawPointF
  1547. + SDL_RenderPoint
  1548. (...)
  1549. @@
  1550. @@
  1551. - SDL_RenderDrawPointsF
  1552. + SDL_RenderPoints
  1553. (...)
  1554. @@
  1555. @@
  1556. - SDL_RenderDrawRectF
  1557. + SDL_RenderRect
  1558. (...)
  1559. @@
  1560. @@
  1561. - SDL_RenderDrawRectsF
  1562. + SDL_RenderRects
  1563. (...)
  1564. @@
  1565. @@
  1566. - SDL_RenderFillRectF
  1567. + SDL_RenderFillRect
  1568. (...)
  1569. @@
  1570. @@
  1571. - SDL_RenderFillRectsF
  1572. + SDL_RenderFillRects
  1573. (...)
  1574. @@
  1575. @@
  1576. - SDL_RenderGetClipRect
  1577. + SDL_GetRenderClipRect
  1578. (...)
  1579. @@
  1580. @@
  1581. - SDL_RenderGetIntegerScale
  1582. + SDL_GetRenderIntegerScale
  1583. (...)
  1584. @@
  1585. @@
  1586. - SDL_RenderGetLogicalSize
  1587. + SDL_GetRenderLogicalSize
  1588. (...)
  1589. @@
  1590. @@
  1591. - SDL_RenderGetMetalCommandEncoder
  1592. + SDL_GetRenderMetalCommandEncoder
  1593. (...)
  1594. @@
  1595. @@
  1596. - SDL_RenderGetMetalLayer
  1597. + SDL_GetRenderMetalLayer
  1598. (...)
  1599. @@
  1600. @@
  1601. - SDL_RenderGetScale
  1602. + SDL_GetRenderScale
  1603. (...)
  1604. @@
  1605. @@
  1606. - SDL_RenderGetViewport
  1607. + SDL_GetRenderViewport
  1608. (...)
  1609. @@
  1610. @@
  1611. - SDL_RenderGetWindow
  1612. + SDL_GetRenderWindow
  1613. (...)
  1614. @@
  1615. @@
  1616. - SDL_RenderIsClipEnabled
  1617. + SDL_RenderClipEnabled
  1618. (...)
  1619. @@
  1620. @@
  1621. - SDL_RenderSetClipRect
  1622. + SDL_SetRenderClipRect
  1623. (...)
  1624. @@
  1625. @@
  1626. - SDL_RenderSetIntegerScale
  1627. + SDL_SetRenderIntegerScale
  1628. (...)
  1629. @@
  1630. @@
  1631. - SDL_RenderSetLogicalSize
  1632. + SDL_SetRenderLogicalSize
  1633. (...)
  1634. @@
  1635. @@
  1636. - SDL_RenderSetScale
  1637. + SDL_SetRenderScale
  1638. (...)
  1639. @@
  1640. @@
  1641. - SDL_RenderSetVSync
  1642. + SDL_SetRenderVSync
  1643. (...)
  1644. @@
  1645. @@
  1646. - SDL_RenderSetViewport
  1647. + SDL_SetRenderViewport
  1648. (...)
  1649. @@
  1650. @@
  1651. - RW_SEEK_CUR
  1652. + SDL_RW_SEEK_CUR
  1653. @@
  1654. @@
  1655. - RW_SEEK_END
  1656. + SDL_RW_SEEK_END
  1657. @@
  1658. @@
  1659. - RW_SEEK_SET
  1660. + SDL_RW_SEEK_SET
  1661. @@
  1662. @@
  1663. - SDL_AllocRW
  1664. + SDL_CreateRW
  1665. (...)
  1666. @@
  1667. @@
  1668. - SDL_FreeRW
  1669. + SDL_DestroyRW
  1670. (...)
  1671. @@
  1672. @@
  1673. - SDL_SensorClose
  1674. + SDL_CloseSensor
  1675. (...)
  1676. @@
  1677. @@
  1678. - SDL_SensorFromInstanceID
  1679. + SDL_GetSensorFromInstanceID
  1680. (...)
  1681. @@
  1682. @@
  1683. - SDL_SensorGetData
  1684. + SDL_GetSensorData
  1685. (...)
  1686. @@
  1687. @@
  1688. - SDL_SensorGetInstanceID
  1689. + SDL_GetSensorInstanceID
  1690. (...)
  1691. @@
  1692. @@
  1693. - SDL_SensorGetName
  1694. + SDL_GetSensorName
  1695. (...)
  1696. @@
  1697. @@
  1698. - SDL_SensorGetNonPortableType
  1699. + SDL_GetSensorNonPortableType
  1700. (...)
  1701. @@
  1702. @@
  1703. - SDL_SensorGetType
  1704. + SDL_GetSensorType
  1705. (...)
  1706. @@
  1707. @@
  1708. - SDL_SensorOpen
  1709. + SDL_OpenSensor
  1710. (...)
  1711. @@
  1712. @@
  1713. - SDL_SensorUpdate
  1714. + SDL_UpdateSensors
  1715. (...)
  1716. @@
  1717. @@
  1718. - SDL_FillRect
  1719. + SDL_FillSurfaceRect
  1720. (...)
  1721. @@
  1722. @@
  1723. - SDL_FillRects
  1724. + SDL_FillSurfaceRects
  1725. (...)
  1726. @@
  1727. @@
  1728. - SDL_FreeSurface
  1729. + SDL_DestroySurface
  1730. (...)
  1731. @@
  1732. @@
  1733. - SDL_GetClipRect
  1734. + SDL_GetSurfaceClipRect
  1735. (...)
  1736. @@
  1737. @@
  1738. - SDL_GetColorKey
  1739. + SDL_GetSurfaceColorKey
  1740. (...)
  1741. @@
  1742. @@
  1743. - SDL_HasColorKey
  1744. + SDL_SurfaceHasColorKey
  1745. (...)
  1746. @@
  1747. @@
  1748. - SDL_HasSurfaceRLE
  1749. + SDL_SurfaceHasRLE
  1750. (...)
  1751. @@
  1752. @@
  1753. - SDL_LowerBlit
  1754. + SDL_BlitSurfaceUnchecked
  1755. (...)
  1756. @@
  1757. @@
  1758. - SDL_LowerBlitScaled
  1759. + SDL_BlitSurfaceUncheckedScaled
  1760. (...)
  1761. @@
  1762. @@
  1763. - SDL_SetClipRect
  1764. + SDL_SetSurfaceClipRect
  1765. (...)
  1766. @@
  1767. @@
  1768. - SDL_SetColorKey
  1769. + SDL_SetSurfaceColorKey
  1770. (...)
  1771. @@
  1772. @@
  1773. - SDL_UpperBlit
  1774. + SDL_BlitSurface
  1775. (...)
  1776. @@
  1777. @@
  1778. - SDL_UpperBlitScaled
  1779. + SDL_BlitSurfaceScaled
  1780. (...)
  1781. @@
  1782. @@
  1783. - SDL_RenderGetD3D11Device
  1784. + SDL_GetRenderD3D11Device
  1785. (...)
  1786. @@
  1787. @@
  1788. - SDL_RenderGetD3D9Device
  1789. + SDL_GetRenderD3D9Device
  1790. (...)
  1791. @@
  1792. @@
  1793. - SDL_GetTicks64
  1794. + SDL_GetTicks
  1795. (...)
  1796. @@
  1797. @@
  1798. - SDL_GetPointDisplayIndex
  1799. + SDL_GetDisplayIndexForPoint
  1800. (...)
  1801. @@
  1802. @@
  1803. - SDL_GetRectDisplayIndex
  1804. + SDL_GetDisplayIndexForRect
  1805. (...)
  1806. @ depends on rule_init_noparachute @
  1807. expression e;
  1808. @@
  1809. - e | 0
  1810. + e
  1811. @@
  1812. @@
  1813. - SDL_FIRSTEVENT
  1814. + SDL_EVENT_FIRST
  1815. @@
  1816. @@
  1817. - SDL_QUIT
  1818. + SDL_EVENT_QUIT
  1819. @@
  1820. @@
  1821. - SDL_APP_TERMINATING
  1822. + SDL_EVENT_TERMINATING
  1823. @@
  1824. @@
  1825. - SDL_APP_LOWMEMORY
  1826. + SDL_EVENT_LOW_MEMORY
  1827. @@
  1828. @@
  1829. - SDL_APP_WILLENTERBACKGROUND
  1830. + SDL_EVENT_WILL_ENTER_BACKGROUND
  1831. @@
  1832. @@
  1833. - SDL_APP_DIDENTERBACKGROUND
  1834. + SDL_EVENT_DID_ENTER_BACKGROUND
  1835. @@
  1836. @@
  1837. - SDL_APP_WILLENTERFOREGROUND
  1838. + SDL_EVENT_WILL_ENTER_FOREGROUND
  1839. @@
  1840. @@
  1841. - SDL_APP_DIDENTERFOREGROUND
  1842. + SDL_EVENT_DID_ENTER_FOREGROUND
  1843. @@
  1844. @@
  1845. - SDL_LOCALECHANGED
  1846. + SDL_EVENT_LOCALE_CHANGED
  1847. @@
  1848. @@
  1849. - SDL_DISPLAYEVENT_ORIENTATION
  1850. + SDL_EVENT_DISPLAY_ORIENTATION
  1851. @@
  1852. @@
  1853. - SDL_DISPLAYEVENT_CONNECTED
  1854. + SDL_EVENT_DISPLAY_CONNECTED
  1855. @@
  1856. @@
  1857. - SDL_DISPLAYEVENT_DISCONNECTED
  1858. + SDL_EVENT_DISPLAY_DISCONNECTED
  1859. @@
  1860. @@
  1861. - SDL_DISPLAYEVENT_MOVED
  1862. + SDL_EVENT_DISPLAY_MOVED
  1863. @@
  1864. @@
  1865. - SDL_DISPLAYEVENT_FIRST
  1866. + SDL_EVENT_DISPLAY_FIRST
  1867. @@
  1868. @@
  1869. - SDL_DISPLAYEVENT_LAST
  1870. + SDL_EVENT_DISPLAY_LAST
  1871. @@
  1872. @@
  1873. - SDL_SYSWMEVENT
  1874. + SDL_EVENT_SYSWM
  1875. @@
  1876. @@
  1877. - SDL_WINDOWEVENT_SHOWN
  1878. + SDL_EVENT_WINDOW_SHOWN
  1879. @@
  1880. @@
  1881. - SDL_WINDOWEVENT_HIDDEN
  1882. + SDL_EVENT_WINDOW_HIDDEN
  1883. @@
  1884. @@
  1885. - SDL_WINDOWEVENT_EXPOSED
  1886. + SDL_EVENT_WINDOW_EXPOSED
  1887. @@
  1888. @@
  1889. - SDL_WINDOWEVENT_MOVED
  1890. + SDL_EVENT_WINDOW_MOVED
  1891. @@
  1892. @@
  1893. - SDL_WINDOWEVENT_RESIZED
  1894. + SDL_EVENT_WINDOW_RESIZED
  1895. @@
  1896. @@
  1897. - SDL_WINDOWEVENT_SIZE_CHANGED
  1898. + SDL_EVENT_WINDOW_SIZE_CHANGED
  1899. @@
  1900. @@
  1901. - SDL_WINDOWEVENT_MINIMIZED
  1902. + SDL_EVENT_WINDOW_MINIMIZED
  1903. @@
  1904. @@
  1905. - SDL_WINDOWEVENT_MAXIMIZED
  1906. + SDL_EVENT_WINDOW_MAXIMIZED
  1907. @@
  1908. @@
  1909. - SDL_WINDOWEVENT_RESTORED
  1910. + SDL_EVENT_WINDOW_RESTORED
  1911. @@
  1912. @@
  1913. - SDL_WINDOWEVENT_ENTER
  1914. + SDL_EVENT_WINDOW_MOUSE_ENTER
  1915. @@
  1916. @@
  1917. - SDL_WINDOWEVENT_LEAVE
  1918. + SDL_EVENT_WINDOW_MOUSE_LEAVE
  1919. @@
  1920. @@
  1921. - SDL_WINDOWEVENT_FOCUS_GAINED
  1922. + SDL_EVENT_WINDOW_FOCUS_GAINED
  1923. @@
  1924. @@
  1925. - SDL_WINDOWEVENT_FOCUS_LOST
  1926. + SDL_EVENT_WINDOW_FOCUS_LOST
  1927. @@
  1928. @@
  1929. - SDL_WINDOWEVENT_CLOSE
  1930. + SDL_EVENT_WINDOW_CLOSE_REQUESTED
  1931. @@
  1932. @@
  1933. - SDL_WINDOWEVENT_TAKE_FOCUS
  1934. + SDL_EVENT_WINDOW_TAKE_FOCUS
  1935. @@
  1936. @@
  1937. - SDL_WINDOWEVENT_HIT_TEST
  1938. + SDL_EVENT_WINDOW_HIT_TEST
  1939. @@
  1940. @@
  1941. - SDL_WINDOWEVENT_ICCPROF_CHANGED
  1942. + SDL_EVENT_WINDOW_ICCPROF_CHANGED
  1943. @@
  1944. @@
  1945. - SDL_WINDOWEVENT_DISPLAY_CHANGED
  1946. + SDL_EVENT_WINDOW_DISPLAY_CHANGED
  1947. @@
  1948. @@
  1949. - SDL_WINDOWEVENT_FIRST
  1950. + SDL_EVENT_WINDOW_FIRST
  1951. @@
  1952. @@
  1953. - SDL_WINDOWEVENT_LAST
  1954. + SDL_EVENT_WINDOW_LAST
  1955. @@
  1956. @@
  1957. - SDL_KEYDOWN
  1958. + SDL_EVENT_KEY_DOWN
  1959. @@
  1960. @@
  1961. - SDL_KEYUP
  1962. + SDL_EVENT_KEY_UP
  1963. @@
  1964. @@
  1965. - SDL_TEXTEDITING
  1966. + SDL_EVENT_TEXT_EDITING
  1967. @@
  1968. @@
  1969. - SDL_TEXTINPUT
  1970. + SDL_EVENT_TEXT_INPUT
  1971. @@
  1972. @@
  1973. - SDL_KEYMAPCHANGED
  1974. + SDL_EVENT_KEYMAP_CHANGED
  1975. @@
  1976. @@
  1977. - SDL_TEXTEDITING_EXT
  1978. + SDL_EVENT_TEXTEDITING_EXT
  1979. @@
  1980. @@
  1981. - SDL_MOUSEMOTION
  1982. + SDL_EVENT_MOUSE_MOTION
  1983. @@
  1984. @@
  1985. - SDL_MOUSEBUTTONDOWN
  1986. + SDL_EVENT_MOUSE_BUTTONDOWN
  1987. @@
  1988. @@
  1989. - SDL_MOUSEBUTTONUP
  1990. + SDL_EVENT_MOUSE_BUTTONUP
  1991. @@
  1992. @@
  1993. - SDL_MOUSEWHEEL
  1994. + SDL_EVENT_MOUSE_WHEEL
  1995. @@
  1996. @@
  1997. - SDL_JOYAXISMOTION
  1998. + SDL_EVENT_JOYSTICK_AXIS_MOTION
  1999. @@
  2000. @@
  2001. - SDL_JOYHATMOTION
  2002. + SDL_EVENT_JOYSTICK_HAT_MOTION
  2003. @@
  2004. @@
  2005. - SDL_JOYBUTTONDOWN
  2006. + SDL_EVENT_JOYSTICK_BUTTON_DOWN
  2007. @@
  2008. @@
  2009. - SDL_JOYBUTTONUP
  2010. + SDL_EVENT_JOYSTICK_BUTTON_UP
  2011. @@
  2012. @@
  2013. - SDL_JOYDEVICEADDED
  2014. + SDL_EVENT_JOYSTICK_ADDED
  2015. @@
  2016. @@
  2017. - SDL_JOYDEVICEREMOVED
  2018. + SDL_EVENT_JOYSTICK_REMOVED
  2019. @@
  2020. @@
  2021. - SDL_JOYBATTERYUPDATED
  2022. + SDL_EVENT_JOYSTICK_BATTERY_UPDATED
  2023. @@
  2024. @@
  2025. - SDL_GAMEPADAXISMOTION
  2026. + SDL_EVENT_GAMEPAD_AXIS_MOTION
  2027. @@
  2028. @@
  2029. - SDL_GAMEPADBUTTONDOWN
  2030. + SDL_EVENT_GAMEPAD_BUTTON_DOWN
  2031. @@
  2032. @@
  2033. - SDL_GAMEPADBUTTONUP
  2034. + SDL_EVENT_GAMEPAD_BUTTON_UP
  2035. @@
  2036. @@
  2037. - SDL_GAMEPADADDED
  2038. + SDL_EVENT_GAMEPAD_ADDED
  2039. @@
  2040. @@
  2041. - SDL_GAMEPADREMOVED
  2042. + SDL_EVENT_GAMEPAD_REMOVED
  2043. @@
  2044. @@
  2045. - SDL_GAMEPADREMAPPED
  2046. + SDL_EVENT_GAMEPAD_REMAPPED
  2047. @@
  2048. @@
  2049. - SDL_GAMEPADTOUCHPADDOWN
  2050. + SDL_EVENT_GAMEPAD_TOUCHPAD_DOWN
  2051. @@
  2052. @@
  2053. - SDL_GAMEPADTOUCHPADMOTION
  2054. + SDL_EVENT_GAMEPAD_TOUCHPAD_MOTION
  2055. @@
  2056. @@
  2057. - SDL_GAMEPADTOUCHPADUP
  2058. + SDL_EVENT_GAMEPAD_TOUCHPAD_UP
  2059. @@
  2060. @@
  2061. - SDL_GAMEPADSENSORUPDATE
  2062. + SDL_EVENT_GAMEPAD_SENSOR_UPDATE
  2063. @@
  2064. @@
  2065. - SDL_FINGERDOWN
  2066. + SDL_EVENT_FINGER_DOWN
  2067. @@
  2068. @@
  2069. - SDL_FINGERUP
  2070. + SDL_EVENT_FINGER_UP
  2071. @@
  2072. @@
  2073. - SDL_FINGERMOTION
  2074. + SDL_EVENT_FINGER_MOTION
  2075. @@
  2076. @@
  2077. - SDL_CLIPBOARDUPDATE
  2078. + SDL_EVENT_CLIPBOARD_UPDATE
  2079. @@
  2080. @@
  2081. - SDL_DROPFILE
  2082. + SDL_EVENT_DROP_FILE
  2083. @@
  2084. @@
  2085. - SDL_DROPTEXT
  2086. + SDL_EVENT_DROP_TEXT
  2087. @@
  2088. @@
  2089. - SDL_DROPBEGIN
  2090. + SDL_EVENT_DROP_BEGIN
  2091. @@
  2092. @@
  2093. - SDL_DROPCOMPLETE
  2094. + SDL_EVENT_DROP_COMPLETE
  2095. @@
  2096. @@
  2097. - SDL_AUDIODEVICEADDED
  2098. + SDL_EVENT_AUDIO_DEVICE_ADDED
  2099. @@
  2100. @@
  2101. - SDL_AUDIODEVICEREMOVED
  2102. + SDL_EVENT_AUDIO_DEVICE_REMOVED
  2103. @@
  2104. @@
  2105. - SDL_SENSORUPDATE
  2106. + SDL_EVENT_SENSOR_UPDATE
  2107. @@
  2108. @@
  2109. - SDL_RENDER_TARGETS_RESET
  2110. + SDL_EVENT_RENDER_TARGETS_RESET
  2111. @@
  2112. @@
  2113. - SDL_RENDER_DEVICE_RESET
  2114. + SDL_EVENT_RENDER_DEVICE_RESET
  2115. @@
  2116. @@
  2117. - SDL_POLLSENTINEL
  2118. + SDL_EVENT_POLL_SENTINEL
  2119. @@
  2120. @@
  2121. - SDL_USEREVENT
  2122. + SDL_EVENT_USER
  2123. @@
  2124. @@
  2125. - SDL_LASTEVENT
  2126. + SDL_EVENT_LAST
  2127. @@
  2128. @@
  2129. - SDL_GetDisplayDPI
  2130. + SDL_GetDisplayPhysicalDPI
  2131. (...)
  2132. @@
  2133. @@
  2134. - SDL_WINDOW_FULLSCREEN
  2135. + SDL_WINDOW_FULLSCREEN_EXCLUSIVE
  2136. @@
  2137. @@
  2138. - SDL_WINDOW_INPUT_GRABBED
  2139. + SDL_WINDOW_MOUSE_GRABBED