Source

pysdl-cffi / sdl / _sdl.py

Full commit
   1
   2
   3
   4
   5
   6
   7
   8
   9
  10
  11
  12
  13
  14
  15
  16
  17
  18
  19
  20
  21
  22
  23
  24
  25
  26
  27
  28
  29
  30
  31
  32
  33
  34
  35
  36
  37
  38
  39
  40
  41
  42
  43
  44
  45
  46
  47
  48
  49
  50
  51
  52
  53
  54
  55
  56
  57
  58
  59
  60
  61
  62
  63
  64
  65
  66
  67
  68
  69
  70
  71
  72
  73
  74
  75
  76
  77
  78
  79
  80
  81
  82
  83
  84
  85
  86
  87
  88
  89
  90
  91
  92
  93
  94
  95
  96
  97
  98
  99
 100
 101
 102
 103
 104
 105
 106
 107
 108
 109
 110
 111
 112
 113
 114
 115
 116
 117
 118
 119
 120
 121
 122
 123
 124
 125
 126
 127
 128
 129
 130
 131
 132
 133
 134
 135
 136
 137
 138
 139
 140
 141
 142
 143
 144
 145
 146
 147
 148
 149
 150
 151
 152
 153
 154
 155
 156
 157
 158
 159
 160
 161
 162
 163
 164
 165
 166
 167
 168
 169
 170
 171
 172
 173
 174
 175
 176
 177
 178
 179
 180
 181
 182
 183
 184
 185
 186
 187
 188
 189
 190
 191
 192
 193
 194
 195
 196
 197
 198
 199
 200
 201
 202
 203
 204
 205
 206
 207
 208
 209
 210
 211
 212
 213
 214
 215
 216
 217
 218
 219
 220
 221
 222
 223
 224
 225
 226
 227
 228
 229
 230
 231
 232
 233
 234
 235
 236
 237
 238
 239
 240
 241
 242
 243
 244
 245
 246
 247
 248
 249
 250
 251
 252
 253
 254
 255
 256
 257
 258
 259
 260
 261
 262
 263
 264
 265
 266
 267
 268
 269
 270
 271
 272
 273
 274
 275
 276
 277
 278
 279
 280
 281
 282
 283
 284
 285
 286
 287
 288
 289
 290
 291
 292
 293
 294
 295
 296
 297
 298
 299
 300
 301
 302
 303
 304
 305
 306
 307
 308
 309
 310
 311
 312
 313
 314
 315
 316
 317
 318
 319
 320
 321
 322
 323
 324
 325
 326
 327
 328
 329
 330
 331
 332
 333
 334
 335
 336
 337
 338
 339
 340
 341
 342
 343
 344
 345
 346
 347
 348
 349
 350
 351
 352
 353
 354
 355
 356
 357
 358
 359
 360
 361
 362
 363
 364
 365
 366
 367
 368
 369
 370
 371
 372
 373
 374
 375
 376
 377
 378
 379
 380
 381
 382
 383
 384
 385
 386
 387
 388
 389
 390
 391
 392
 393
 394
 395
 396
 397
 398
 399
 400
 401
 402
 403
 404
 405
 406
 407
 408
 409
 410
 411
 412
 413
 414
 415
 416
 417
 418
 419
 420
 421
 422
 423
 424
 425
 426
 427
 428
 429
 430
 431
 432
 433
 434
 435
 436
 437
 438
 439
 440
 441
 442
 443
 444
 445
 446
 447
 448
 449
 450
 451
 452
 453
 454
 455
 456
 457
 458
 459
 460
 461
 462
 463
 464
 465
 466
 467
 468
 469
 470
 471
 472
 473
 474
 475
 476
 477
 478
 479
 480
 481
 482
 483
 484
 485
 486
 487
 488
 489
 490
 491
 492
 493
 494
 495
 496
 497
 498
 499
 500
 501
 502
 503
 504
 505
 506
 507
 508
 509
 510
 511
 512
 513
 514
 515
 516
 517
 518
 519
 520
 521
 522
 523
 524
 525
 526
 527
 528
 529
 530
 531
 532
 533
 534
 535
 536
 537
 538
 539
 540
 541
 542
 543
 544
 545
 546
 547
 548
 549
 550
 551
 552
 553
 554
 555
 556
 557
 558
 559
 560
 561
 562
 563
 564
 565
 566
 567
 568
 569
 570
 571
 572
 573
 574
 575
 576
 577
 578
 579
 580
 581
 582
 583
 584
 585
 586
 587
 588
 589
 590
 591
 592
 593
 594
 595
 596
 597
 598
 599
 600
 601
 602
 603
 604
 605
 606
 607
 608
 609
 610
 611
 612
 613
 614
 615
 616
 617
 618
 619
 620
 621
 622
 623
 624
 625
 626
 627
 628
 629
 630
 631
 632
 633
 634
 635
 636
 637
 638
 639
 640
 641
 642
 643
 644
 645
 646
 647
 648
 649
 650
 651
 652
 653
 654
 655
 656
 657
 658
 659
 660
 661
 662
 663
 664
 665
 666
 667
 668
 669
 670
 671
 672
 673
 674
 675
 676
 677
 678
 679
 680
 681
 682
 683
 684
 685
 686
 687
 688
 689
 690
 691
 692
 693
 694
 695
 696
 697
 698
 699
 700
 701
 702
 703
 704
 705
 706
 707
 708
 709
 710
 711
 712
 713
 714
 715
 716
 717
 718
 719
 720
 721
 722
 723
 724
 725
 726
 727
 728
 729
 730
 731
 732
 733
 734
 735
 736
 737
 738
 739
 740
 741
 742
 743
 744
 745
 746
 747
 748
 749
 750
 751
 752
 753
 754
 755
 756
 757
 758
 759
 760
 761
 762
 763
 764
 765
 766
 767
 768
 769
 770
 771
 772
 773
 774
 775
 776
 777
 778
 779
 780
 781
 782
 783
 784
 785
 786
 787
 788
 789
 790
 791
 792
 793
 794
 795
 796
 797
 798
 799
 800
 801
 802
 803
 804
 805
 806
 807
 808
 809
 810
 811
 812
 813
 814
 815
 816
 817
 818
 819
 820
 821
 822
 823
 824
 825
 826
 827
 828
 829
 830
 831
 832
 833
 834
 835
 836
 837
 838
 839
 840
 841
 842
 843
 844
 845
 846
 847
 848
 849
 850
 851
 852
 853
 854
 855
 856
 857
 858
 859
 860
 861
 862
 863
 864
 865
 866
 867
 868
 869
 870
 871
 872
 873
 874
 875
 876
 877
 878
 879
 880
 881
 882
 883
 884
 885
 886
 887
 888
 889
 890
 891
 892
 893
 894
 895
 896
 897
 898
 899
 900
 901
 902
 903
 904
 905
 906
 907
 908
 909
 910
 911
 912
 913
 914
 915
 916
 917
 918
 919
 920
 921
 922
 923
 924
 925
 926
 927
 928
 929
 930
 931
 932
 933
 934
 935
 936
 937
 938
 939
 940
 941
 942
 943
 944
 945
 946
 947
 948
 949
 950
 951
 952
 953
 954
 955
 956
 957
 958
 959
 960
 961
 962
 963
 964
 965
 966
 967
 968
 969
 970
 971
 972
 973
 974
 975
 976
 977
 978
 979
 980
 981
 982
 983
 984
 985
 986
 987
 988
 989
 990
 991
 992
 993
 994
 995
 996
 997
 998
 999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718

# this file is auto-generated. do not edit.
from __future__ import (print_function, division, absolute_import)

from cffi import FFI

UNMANGLED_EXPORTS = [
"_SDL_GetMouseState",
"_SDL_GetError",
"_SDL_Init",
"_SDL_PollEvent",
"_SDL_GetWindowSize",

]

EXPORTS = [
"SDL_JoystickGetAxis",
"SDL_SetWindowTitle",
"SDL_SetSurfaceRLE",
"KMOD_LALT",
"SDL_WINDOWEVENT_NONE",
"SDL_HAT_CENTERED",
"SDL_UnionRect",
"SDL_JoystickNumBalls",
"SDL_SCANCODE_KP_PERCENT",
"SDL_KEYDOWN",
"SDL_ShowCursor",
"SDL_SCANCODE_RETURN2",
"SDL_GL_SHARE_WITH_CURRENT_CONTEXT",
"SDL_ClearError",
"SDL_SCANCODE_KP_6",
"SDL_SCANCODE_KP_HASH",
"SDL_GL_GetSwapInterval",
"SDL_JOYAXISMOTION",
"SDL_GetMouseFocus",
"SDL_GetCurrentVideoDriver",
"SDL_SCANCODE_COPY",
"SDL_SCANCODE_GRAVE",
"SDL_CreateCursor",
"SDL_SCANCODE_CAPSLOCK",
"SDL_SCANCODE_PAGEDOWN",
"SDL_GL_CreateContext",
"SDL_GetScancodeFromKey",
"SDL_INIT_VIDEO",
"SDL_SCANCODE_KP_DECIMAL",
"SDL_SetTextInputRect",
"SDL_CLIPBOARDUPDATE",
"SDL_INPUTWHEEL",
"SDL_SCANCODE_PAGEUP",
"SDL_SCANCODE_STOP",
"SDL_SetSurfaceBlendMode",
"SDL_GL_MULTISAMPLEBUFFERS",
"SDL_SCANCODE_THOUSANDSSEPARATOR",
"SDL_BUTTON_X1",
"SDL_BUTTON_X2",
"SDL_IGNORE",
"SDL_WINDOWEVENT_MAXIMIZED",
"SDL_JoystickIndex",
"SDL_HideWindow",
"SDL_SCANCODE_KP_LEFTPAREN",
"SDL_UNSUPPORTED",
"SDL_HAT_RIGHT",
"SDL_QUERY",
"SDL_SetWindowSize",
"SDL_QUIT",
"SDL_GetWindowTitle",
"SDL_GL_CONTEXT_FLAGS",
"SDL_FillRect",
"SDL_WINDOWEVENT",
"SDL_SCANCODE_EJECT",
"SDL_GetWindowGammaRamp",
"SDL_DISABLE",
"SDL_SCANCODE_9",
"SDL_SCANCODE_8",
"SDL_HideScreenKeyboard",
"SDL_SCANCODE_5",
"SDL_SCANCODE_4",
"SDL_INPUTPROXIMITYOUT",
"SDL_SCANCODE_6",
"SDL_SCANCODE_1",
"SDL_SCANCODE_0",
"SDL_SCANCODE_3",
"SDL_SCANCODE_2",
"SDL_SCANCODE_M",
"SDL_SCANCODE_L",
"SDL_GL_ACCUM_GREEN_SIZE",
"SDL_SCANCODE_N",
"SDL_SCANCODE_I",
"SDL_SCANCODE_H",
"SDL_SCANCODE_K",
"SDL_SCANCODE_J",
"SDL_ShowScreenKeyboard",
"SDL_SCANCODE_D",
"SDL_SCANCODE_G",
"SDL_SCANCODE_F",
"SDL_SCANCODE_A",
"SDL_WINDOW_MOUSE_FOCUS",
"SDL_SCANCODE_C",
"SDL_SCANCODE_B",
"SDL_SCANCODE_Y",
"SDL_SetWindowDisplayMode",
"SDL_MOUSEWHEEL",
"SDL_SCANCODE_Z",
"SDL_SCANCODE_U",
"SDL_SCANCODE_T",
"SDL_SCANCODE_W",
"SDL_SCANCODE_V",
"SDL_SCANCODE_Q",
"SDL_SCANCODE_P",
"SDL_SCANCODE_S",
"SDL_AddEventWatch",
"SDL_GL_RED_SIZE",
"SDL_Error",
"SDL_SCANCODE_AUDIOPLAY",
"SDL_SCANCODE_PASTE",
"SDL_GetWindowDisplayMode",
"SDL_FreeRW",
"SDL_BUTTON_RIGHT",
"SDL_ConvertSurface",
"SDL_ReadLE32",
"SDL_WINDOW_INPUT_GRABBED",
"SDL_GetPixelFormatName",
"SDL_CreateRGBSurfaceFrom",
"SDL_SCANCODE_COMMA",
"SDL_StartTextInput",
"SDL_LockSurface",
"SDL_SCANCODE_NUMLOCKCLEAR",
"SDL_JOYBUTTONDOWN",
"SDL_SCANCODE_MINUS",
"SDL_BUTTON_RMASK",
"SDL_JoystickGetBall",
"SDL_ENOMEM",
"SDL_GetScancodeName",
"SDL_GetColorKey",
"SDL_UpperBlitScaled",
"SDL_SetWindowGrab",
"SDL_SCANCODE_KP_SPACE",
"SDL_EFSEEK",
"SDL_EnableScreenSaver",
"SDL_GetNumVideoDisplays",
"SDL_SCANCODE_KP_MEMCLEAR",
"SDL_WINDOW_RESIZABLE",
"SDL_GetKeyboardFocus",
"SDL_WINDOWPOS_CENTERED",
"SDL_SCANCODE_AC_STOP",
"SDL_LoadBMP_RW",
"SDL_SCANCODE_KP_VERTICALBAR",
"SDL_SCANCODE_KP_PERIOD",
"SDL_TEXTEDITINGEVENT_TEXT_SIZE",
"SDL_HasEvents",
"SDL_GetScancodeFromName",
"SDL_FALSE",
"SDL_WINDOW_MINIMIZED",
"SDL_SoftStretch",
"SDL_WINDOW_FOREIGN",
"SDL_MOUSEBUTTONUP",
"SDL_SCANCODE_R",
"SDL_UpperBlit",
"SDL_SCANCODE_AC_FORWARD",
"SDL_WriteLE16",
"SDL_RLEACCEL",
"SDL_SCANCODE_KP_BACKSPACE",
"SDL_GL_CONTEXT_MAJOR_VERSION",
"SDL_SCANCODE_LEFT",
"SDL_IsScreenKeyboardShown",
"SDL_HasScreenKeyboardSupport",
"SDL_ConvertPixels",
"SDL_FreePalette",
"SDL_AllocPalette",
"SDL_SCANCODE_KP_DBLAMPERSAND",
"SDL_INIT_HAPTIC",
"SDL_SCANCODE_PERIOD",
"SDL_SCANCODE_LEFTBRACKET",
"SDL_SCANCODE_AGAIN",
"SDL_SCANCODE_PRINTSCREEN",
"SDL_EFWRITE",
"SDL_SCANCODE_KP_MEMRECALL",
"SDL_SCANCODE_COMPUTER",
"SDL_HAT_RIGHTUP",
"SDL_RWFromMem",
"SDL_LowerBlitScaled",
"SDL_WINDOW_MAXIMIZED",
"SDL_JOYBALLMOTION",
"SDL_JoystickNumHats",
"SDL_JoystickOpened",
"SDL_SCANCODE_AC_REFRESH",
"SDL_JoystickOpen",
"SDL_MasksToPixelFormatEnum",
"SDL_PumpEvents",
"SDL_GETEVENT",
"SDL_SCANCODE_CALCULATOR",
"SDL_SetPixelFormatPalette",
"SDL_GetWindowData",
"SDL_SCANCODE_KP_COLON",
"KMOD_CAPS",
"SDL_GL_STEREO",
"SDL_WINDOW_INPUT_FOCUS",
"SDL_SCANCODE_KP_HEXADECIMAL",
"SDL_HAT_DOWN",
"SDL_BLENDMODE_BLEND",
"SDL_SCANCODE_RCTRL",
"SDL_ReadLE64",
"SDL_GL_SetAttribute",
"SDL_WINDOWEVENT_SIZE_CHANGED",
"SDL_PEEKEVENT",
"SDL_SCANCODE_F24",
"SDL_SCANCODE_F23",
"SDL_SCANCODE_F22",
"SDL_SCANCODE_F21",
"SDL_SCANCODE_F20",
"SDL_SCANCODE_LALT",
"SDL_SCANCODE_HELP",
"SDL_FreeCursor",
"SDL_INPUTPROXIMITYIN",
"SDL_SCANCODE_ESCAPE",
"SDL_HasEvent",
"SDL_SCANCODE_RETURN",
"SDL_BLENDMODE_MOD",
"SDL_FreeFormat",
"SDL_GetTouch",
"SDL_SCANCODE_FIND",
"SDL_SetColorKey",
"SDL_GL_ACCUM_ALPHA_SIZE",
"SDL_RWFromFile",
"SDL_SCANCODE_NONUSBACKSLASH",
"SDL_GetRelativeMouseState",
"SDL_SetModState",
"SDL_GetKeyboardState",
"SDL_GetWindowID",
"KMOD_NUM",
"SDL_SCANCODE_KP_4",
"SDL_SCANCODE_KP_5",
"SDL_SetEventFilter",
"SDL_SCANCODE_KP_7",
"SDL_SCANCODE_KP_0",
"SDL_SCANCODE_KP_1",
"SDL_SCANCODE_KP_2",
"SDL_SCANCODE_KP_3",
"SDL_VideoQuit",
"SDL_SCANCODE_KP_8",
"SDL_SCANCODE_KP_9",
"SDL_SCANCODE_SLASH",
"SDL_SCANCODE_KP_D",
"SDL_SCANCODE_KP_E",
"SDL_SCANCODE_KP_F",
"SDL_SCANCODE_KP_A",
"SDL_SCANCODE_KP_B",
"SDL_SCANCODE_KP_C",
"KMOD_SHIFT",
"SDL_GL_CONTEXT_PROFILE_MASK",
"SDL_INPUTMOTION",
"SDL_SCANCODE_SELECT",
"SDL_GL_CONTEXT_PROFILE_COMPATIBILITY",
"SDL_GL_GREEN_SIZE",
"SDL_WINDOWEVENT_CLOSE",
"SDL_ShowWindow",
"SDL_GL_CONTEXT_EGL",
"KMOD_RESERVED",
"SDL_GetClipRect",
"SDL_SCANCODE_SPACE",
"SDL_WriteBE16",
"SDL_SCANCODE_KP_MEMADD",
"RW_SEEK_SET",
"SDL_INIT_TIMER",
"SDL_ReadBE16",
"SDL_GetNumVideoDrivers",
"SDL_SetSurfacePalette",
"SDL_WINDOWEVENT_FOCUS_LOST",
"SDL_GetWindowBrightness",
"SDL_SCANCODE_KP_00",
"SDL_PREALLOC",
"SDL_EventState",
"SDL_GetNumDisplayModes",
"SDL_MULTIGESTURE",
"KMOD_ALT",
"SDL_SCANCODE_KP_ENTER",
"SDL_SaveDollarTemplate",
"SDL_SCANCODE_KP_CLEARENTRY",
"SDL_GetRelativeMouseMode",
"SDL_ALPHA_OPAQUE",
"KMOD_NONE",
"SDL_SCANCODE_SEPARATOR",
"SDL_GetSurfaceBlendMode",
"SDL_MinimizeWindow",
"SDL_SetWindowPosition",
"SDL_GL_SetSwapInterval",
"KMOD_RSHIFT",
"SDL_SCANCODE_TAB",
"SDL_GetSurfaceColorMod",
"SDL_CreateWindowFrom",
"SDL_WINDOW_HIDDEN",
"SDL_RecordGesture",
"SDL_PushEvent",
"SDL_Quit",
"SDL_INIT_EVERYTHING",
"SDL_MapRGB",
"SDL_GetWindowGrab",
"SDL_SCANCODE_RALT",
"SDL_IntersectRectAndLine",
"SDL_SCANCODE_F12",
"SDL_GetKeyName",
"SDL_SCANCODE_MEDIASELECT",
"SDL_WINDOWEVENT_FOCUS_GAINED",
"KMOD_LGUI",
"SDL_SCANCODE_F11",
"SDL_ConvertSurfaceFormat",
"SDL_RWFromFP",
"SDL_DisableScreenSaver",
"SDL_SCANCODE_CURRENCYSUBUNIT",
"KMOD_GUI",
"SDL_WINDOWEVENT_RESTORED",
"SDL_GetModState",
"SDL_SCANCODE_PAUSE",
"SDL_CreateRGBSurface",
"SDL_MOUSEMOTION",
"SDL_GL_DeleteContext",
"SDL_GL_BUFFER_SIZE",
"SDL_WINDOW_SHOWN",
"SDL_PixelFormatEnumToMasks",
"SDL_GetVideoDriver",
"SDL_SetRelativeMouseMode",
"SDL_SCANCODE_AC_SEARCH",
"SDL_TOUCHBUTTONUP",
"SDL_GetDesktopDisplayMode",
"SDL_GL_DEPTH_SIZE",
"KMOD_MODE",
"SDL_FINGERUP",
"SDL_FreeSurface",
"SDL_SCANCODE_KP_XOR",
"SDL_GetDisplayMode",
"SDL_GL_ACCUM_BLUE_SIZE",
"SDL_JoystickUpdate",
"SDL_SCANCODE_BACKSPACE",
"SDL_SCANCODE_HOME",
"SDL_WaitEvent",
"SDL_TEXTEDITING",
"SDL_FillRects",
"SDL_ReadBE32",
"SDL_JoystickGetButton",
"SDL_SCANCODE_KP_MEMSUBTRACT",
"KMOD_RALT",
"SDL_WarpMouseInWindow",
"SDL_GL_DOUBLEBUFFER",
"SDL_SCANCODE_KP_MULTIPLY",
"SDL_GL_GetProcAddress",
"KMOD_LCTRL",
"SDL_FIRSTEVENT",
"SDL_SCANCODE_KP_MEMDIVIDE",
"SDL_SCANCODE_MAIL",
"SDL_GL_MakeCurrent",
"RW_SEEK_CUR",
"SDL_BUTTON_X2MASK",
"SDL_GL_BLUE_SIZE",
"SDL_SetWindowData",
"SDL_GetWindowDisplay",
"SDL_NumJoysticks",
"SDL_WINDOWEVENT_HIDDEN",
"SDL_GL_CONTEXT_ROBUST_ACCESS_FLAG",
"SDL_SCANCODE_AC_BACK",
"SDL_GetWindowFromID",
"SDL_SCANCODE_BRIGHTNESSUP",
"SDL_SCANCODE_AC_HOME",
"SDL_HAT_UP",
"SDL_SCANCODE_7",
"SDL_RegisterEvents",
"SDL_AllocFormat",
"SDL_SCANCODE_MUTE",
"SDL_SaveAllDollarTemplates",
"SDL_BUTTON_LMASK",
"SDL_GetWindowPixelFormat",
"SDL_RWFromConstMem",
"SDL_RestoreWindow",
"SDL_SCANCODE_KP_BINARY",
"SDL_ReadLE16",
"SDL_INIT_NOPARACHUTE",
"SDL_JoystickClose",
"SDL_SCANCODE_F18",
"SDL_SCANCODE_CURRENCYUNIT",
"SDL_SCANCODE_UP",
"SDL_SetCursor",
"SDL_SCANCODE_KP_TAB",
"SDL_SCANCODE_VOLUMEDOWN",
"SDL_SCANCODE_F13",
"SDL_SCANCODE_F10",
"SDL_PRESSED",
"SDL_SCANCODE_F16",
"SDL_SCANCODE_F17",
"SDL_SCANCODE_F14",
"SDL_SCANCODE_F15",
"SDL_SCANCODE_DECIMALSEPARATOR",
"SDL_GetWindowFlags",
"SDL_ENABLE",
"SDL_SCANCODE_E",
"SDL_GL_CONTEXT_MINOR_VERSION",
"SDL_WriteLE32",
"SDL_SCANCODE_PRIOR",
"SDL_LowerBlit",
"SDL_SCANCODE_KP_RIGHTPAREN",
"SDL_WINDOWPOS_UNDEFINED_MASK",
"SDL_SCANCODE_UNKNOWN",
"SDL_SWSURFACE",
"SDL_SCANCODE_LGUI",
"SDL_SCANCODE_LANG9",
"SDL_SCANCODE_LANG8",
"SDL_GetWindowPosition",
"SDL_SCANCODE_CANCEL",
"SDL_JoystickGetHat",
"SDL_SCANCODE_BRIGHTNESSDOWN",
"SDL_SCANCODE_LANG1",
"SDL_GetRGB",
"SDL_SCANCODE_LANG3",
"SDL_SCANCODE_LANG2",
"SDL_SCANCODE_LANG5",
"SDL_WINDOW_OPENGL",
"SDL_SCANCODE_LANG7",
"SDL_SCANCODE_LANG6",
"SDL_SCANCODE_EXSEL",
"SDL_SCANCODE_SEMICOLON",
"SDL_SCANCODE_X",
"SDL_INPUTBUTTONUP",
"SDL_SCANCODE_APPLICATION",
"SDL_GL_GetAttribute",
"SDL_SetWindowGammaRamp",
"SDL_SetWindowIcon",
"SDL_GetKeyFromScancode",
"SDL_GetRGBA",
"SDL_UnlockSurface",
"SDL_FlushEvents",
"SDL_BlitSurface",
"SDL_SCANCODE_KP_RIGHTBRACE",
"SDL_BLENDMODE_NONE",
"SDL_SetWindowFullscreen",
"SDL_SCANCODE_KP_MEMMULTIPLY",
"SDL_WINDOWEVENT_MINIMIZED",
"SDL_SCANCODE_CUT",
"SDL_HAT_LEFT",
"KMOD_RGUI",
"SDL_SCANCODE_INSERT",
"SDL_SCANCODE_LCTRL",
"SDL_SCANCODE_VOLUMEUP",
"SDL_SCANCODE_BACKSLASH",
"SDL_ReadBE64",
"SDL_DONTFREE",
"SDL_SCANCODE_CLEARAGAIN",
"SDL_SCANCODE_AUDIOMUTE",
"SDL_LoadDollarTemplates",
"SDL_GetCursor",
"SDL_SCANCODE_DISPLAYSWITCH",
"SDL_SCANCODE_KP_DIVIDE",
"SDL_SaveBMP_RW",
"SDL_SCANCODE_RSHIFT",
"SDL_TOUCHBUTTONDOWN",
"SDL_QuitSubSystem",
"SDL_WINDOWPOS_UNDEFINED",
"SDL_VideoInit",
"SDL_SCANCODE_KP_LESS",
"SDL_SCANCODE_LANG4",
"SDL_DOLLARGESTURE",
"SDL_NUM_SCANCODES",
"SDL_GetDisplayBounds",
"SDL_SCANCODE_DOWN",
"SDL_SCANCODE_OUT",
"SDL_BUTTON_MMASK",
"SDL_DOLLARRECORD",
"SDL_BUTTON_X1MASK",
"SDL_USEREVENT",
"SDL_SCANCODE_SCROLLLOCK",
"SDL_SCANCODE_F1",
"SDL_SCANCODE_F2",
"SDL_SCANCODE_F3",
"SDL_SCANCODE_F4",
"SDL_SCANCODE_F5",
"SDL_SCANCODE_F6",
"SDL_SCANCODE_F7",
"SDL_SCANCODE_F8",
"SDL_SCANCODE_F9",
"SDL_INPUTBUTTONDOWN",
"SDL_RELEASED",
"KMOD_LSHIFT",
"SDL_HAT_LEFTUP",
"SDL_FilterEvents",
"SDL_ALPHA_TRANSPARENT",
"SDL_BUTTON_MIDDLE",
"SDL_DelEventWatch",
"SDL_SCANCODE_KP_OCTAL",
"SDL_SetSurfaceAlphaMod",
"SDL_SCANCODE_AUDIONEXT",
"SDL_BLENDMODE_ADD",
"SDL_SCANCODE_KP_EXCLAM",
"SDL_MOUSEBUTTONDOWN",
"SDL_SCANCODE_MODE",
"SDL_KEYUP",
"SDL_SCANCODE_WWW",
"SDL_SCANCODE_KP_MINUS",
"SDL_SCANCODE_KBDILLUMTOGGLE",
"SDL_WaitEventTimeout",
"SDL_SetWindowBrightness",
"SDL_SCANCODE_EQUALS",
"SDL_WINDOWEVENT_MOVED",
"SDL_SCANCODE_KP_PLUSMINUS",
"SDL_TEXTINPUTEVENT_TEXT_SIZE",
"SDL_HAT_RIGHTDOWN",
"SDL_UpdateWindowSurface",
"SDL_SCANCODE_EXECUTE",
"SDL_GL_MULTISAMPLESAMPLES",
"SDLK_SCANCODE_MASK",
"SDL_WriteBE64",
"SDL_SetSurfaceColorMod",
"SDL_SCANCODE_DELETE",
"SDL_WasInit",
"SDL_SCANCODE_O",
"SDL_EFREAD",
"SDL_SCANCODE_KP_PLUS",
"SDL_SCANCODE_RIGHTBRACKET",
"SDL_SetClipRect",
"SDL_SetError",
"SDL_IsScreenSaverEnabled",
"SDL_SYSWMEVENT",
"SDL_RaiseWindow",
"RW_SEEK_END",
"SDL_WINDOWEVENT_RESIZED",
"SDL_JoystickName",
"SDL_GetWindowSurface",
"SDL_SCANCODE_OPER",
"SDL_FINGERMOTION",
"SDL_SCANCODE_POWER",
"SDL_ToggleScreenKeyboard",
"SDL_GL_ACCUM_RED_SIZE",
"SDL_IntersectRect",
"SDL_JoystickNumAxes",
"SDL_DestroyWindow",
"SDL_UpdateWindowSurfaceRects",
"SDL_WINDOWEVENT_ENTER",
"SDL_SCANCODE_CLEAR",
"SDL_SCANCODE_AUDIOPREV",
"SDL_FINGERDOWN",
"SDL_INIT_JOYSTICK",
"SDL_EnclosePoints",
"SDL_PeepEvents",
"SDL_SCANCODE_KP_AMPERSAND",
"SDL_SCANCODE_UNDO",
"SDL_BlitScaled",
"SDL_SCANCODE_SLEEP",
"SDL_SCANCODE_CRSEL",
"SDL_LASTEVENT",
"SDL_SCANCODE_KP_GREATER",
"SDL_SCANCODE_KBDILLUMUP",
"SDL_HAT_LEFTDOWN",
"SDL_SCANCODE_KP_COMMA",
"SDL_GetEventFilter",
"SDL_SCANCODE_KP_DBLVERTICALBAR",
"SDL_SCANCODE_RIGHT",
"SDL_LASTERROR",
"SDL_GL_STENCIL_SIZE",
"SDL_SCANCODE_KP_LEFTBRACE",
"SDL_SCANCODE_APOSTROPHE",
"SDL_GL_ExtensionSupported",
"SDL_SCANCODE_AC_BOOKMARKS",
"SDL_GL_RETAINED_BACKING",
"SDL_JoystickEventState",
"SDL_JOYHATMOTION",
"SDL_GL_UnloadLibrary",
"SDL_JOYBUTTONUP",
"SDL_SCANCODE_INTERNATIONAL5",
"SDL_JoystickNumButtons",
"SDL_SetPaletteColors",
"SDL_SCANCODE_RGUI",
"SDL_INIT_AUDIO",
"SDL_SCANCODE_MENU",
"SDL_TEXTINPUT",
"SDL_GL_LoadLibrary",
"SDL_SCANCODE_KBDILLUMDOWN",
"SDL_SCANCODE_KP_EQUALS",
"SDL_GL_CONTEXT_FORWARD_COMPATIBLE_FLAG",
"SDL_GetClosestDisplayMode",
"SDL_InitSubSystem",
"KMOD_CTRL",
"SDL_CreateColorCursor",
"SDL_SCANCODE_KP_000",
"SDL_GetSurfaceAlphaMod",
"SDL_SCANCODE_KP_MEMSTORE",
"SDL_WINDOWEVENT_SHOWN",
"SDL_StopTextInput",
"SDL_BUTTON_LEFT",
"SDL_SCANCODE_LSHIFT",
"SDL_GL_ACCELERATED_VISUAL",
"SDL_DROPFILE",
"SDL_GetCurrentDisplayMode",
"SDL_WINDOW_FULLSCREEN",
"SDL_SCANCODE_KP_AT",
"SDL_SCANCODE_NONUSHASH",
"SDL_SCANCODE_KP_CLEAR",
"SDL_HasIntersection",
"SDL_GL_ALPHA_SIZE",
"SDL_GetKeyFromName",
"SDL_SCANCODE_END",
"SDL_SCANCODE_SYSREQ",
"SDL_WriteBE32",
"SDL_WINDOWEVENT_EXPOSED",
"SDL_CalculateGammaRamp",
"SDL_GL_SwapWindow",
"SDL_SCANCODE_KP_POWER",
"SDL_GetFinger",
"KMOD_RCTRL",
"SDL_ADDEVENT",
"SDL_GL_CONTEXT_PROFILE_CORE",
"SDL_SCANCODE_AUDIOSTOP",
"SDL_GL_CONTEXT_DEBUG_FLAG",
"SDL_WINDOWEVENT_LEAVE",
"SDL_MapRGBA",
"SDL_SCANCODE_ALTERASE",
"SDL_FlushEvent",
"SDL_WINDOW_BORDERLESS",
"SDL_GL_CONTEXT_RESET_ISOLATION_FLAG",
"SDL_WINDOWPOS_CENTERED_MASK",
"SDL_AllocRW",
"SDL_SCANCODE_INTERNATIONAL2",
"SDL_SCANCODE_INTERNATIONAL3",
"SDL_SCANCODE_INTERNATIONAL1",
"SDL_SCANCODE_INTERNATIONAL6",
"SDL_SCANCODE_INTERNATIONAL7",
"SDL_SCANCODE_INTERNATIONAL4",
"SDL_CreateWindow",
"SDL_GL_CONTEXT_PROFILE_ES",
"SDL_SCANCODE_INTERNATIONAL8",
"SDL_SCANCODE_INTERNATIONAL9",
"SDL_SCANCODE_F19",
"SDL_MaximizeWindow",
"SDL_TRUE",
"SDL_SCANCODE_KP_EQUALSAS400",
"SDL_WriteLE64",

]

INTERNAL_EXPORTS = [
'_ffi',
'EXPORTS',
'UNMANGLED_EXPORTS',
]

__all__ = EXPORTS + UNMANGLED_EXPORTS + INTERNAL_EXPORTS

from .internal import *

_LIB = load_lib("""
typedef enum
{
SDL_FALSE = 0,
SDL_TRUE = 1
} SDL_bool;
typedef int8_t Sint8;
typedef uint8_t Uint8;
typedef int16_t Sint16;
typedef uint16_t Uint16;
typedef int32_t Sint32;
typedef uint32_t Uint32;
typedef int64_t Sint64;
typedef uint64_t Uint64;
typedef enum SDL_BlendMode
{
SDL_BLENDMODE_NONE = 0x00000000,
SDL_BLENDMODE_BLEND = 0x00000001,
SDL_BLENDMODE_ADD = 0x00000002,
SDL_BLENDMODE_MOD = 0x00000004
} SDL_BlendMode;
typedef enum
{
SDL_SCANCODE_UNKNOWN = 0,
SDL_SCANCODE_A = 4,
SDL_SCANCODE_B = 5,
SDL_SCANCODE_C = 6,
SDL_SCANCODE_D = 7,
SDL_SCANCODE_E = 8,
SDL_SCANCODE_F = 9,
SDL_SCANCODE_G = 10,
SDL_SCANCODE_H = 11,
SDL_SCANCODE_I = 12,
SDL_SCANCODE_J = 13,
SDL_SCANCODE_K = 14,
SDL_SCANCODE_L = 15,
SDL_SCANCODE_M = 16,
SDL_SCANCODE_N = 17,
SDL_SCANCODE_O = 18,
SDL_SCANCODE_P = 19,
SDL_SCANCODE_Q = 20,
SDL_SCANCODE_R = 21,
SDL_SCANCODE_S = 22,
SDL_SCANCODE_T = 23,
SDL_SCANCODE_U = 24,
SDL_SCANCODE_V = 25,
SDL_SCANCODE_W = 26,
SDL_SCANCODE_X = 27,
SDL_SCANCODE_Y = 28,
SDL_SCANCODE_Z = 29,
SDL_SCANCODE_1 = 30,
SDL_SCANCODE_2 = 31,
SDL_SCANCODE_3 = 32,
SDL_SCANCODE_4 = 33,
SDL_SCANCODE_5 = 34,
SDL_SCANCODE_6 = 35,
SDL_SCANCODE_7 = 36,
SDL_SCANCODE_8 = 37,
SDL_SCANCODE_9 = 38,
SDL_SCANCODE_0 = 39,
SDL_SCANCODE_RETURN = 40,
SDL_SCANCODE_ESCAPE = 41,
SDL_SCANCODE_BACKSPACE = 42,
SDL_SCANCODE_TAB = 43,
SDL_SCANCODE_SPACE = 44,
SDL_SCANCODE_MINUS = 45,
SDL_SCANCODE_EQUALS = 46,
SDL_SCANCODE_LEFTBRACKET = 47,
SDL_SCANCODE_RIGHTBRACKET = 48,
SDL_SCANCODE_BACKSLASH = 49,
SDL_SCANCODE_NONUSHASH = 50,
SDL_SCANCODE_SEMICOLON = 51,
SDL_SCANCODE_APOSTROPHE = 52,
SDL_SCANCODE_GRAVE = 53,
SDL_SCANCODE_COMMA = 54,
SDL_SCANCODE_PERIOD = 55,
SDL_SCANCODE_SLASH = 56,
SDL_SCANCODE_CAPSLOCK = 57,
SDL_SCANCODE_F1 = 58,
SDL_SCANCODE_F2 = 59,
SDL_SCANCODE_F3 = 60,
SDL_SCANCODE_F4 = 61,
SDL_SCANCODE_F5 = 62,
SDL_SCANCODE_F6 = 63,
SDL_SCANCODE_F7 = 64,
SDL_SCANCODE_F8 = 65,
SDL_SCANCODE_F9 = 66,
SDL_SCANCODE_F10 = 67,
SDL_SCANCODE_F11 = 68,
SDL_SCANCODE_F12 = 69,
SDL_SCANCODE_PRINTSCREEN = 70,
SDL_SCANCODE_SCROLLLOCK = 71,
SDL_SCANCODE_PAUSE = 72,
SDL_SCANCODE_INSERT = 73,
SDL_SCANCODE_HOME = 74,
SDL_SCANCODE_PAGEUP = 75,
SDL_SCANCODE_DELETE = 76,
SDL_SCANCODE_END = 77,
SDL_SCANCODE_PAGEDOWN = 78,
SDL_SCANCODE_RIGHT = 79,
SDL_SCANCODE_LEFT = 80,
SDL_SCANCODE_DOWN = 81,
SDL_SCANCODE_UP = 82,
SDL_SCANCODE_NUMLOCKCLEAR = 83,
SDL_SCANCODE_KP_DIVIDE = 84,
SDL_SCANCODE_KP_MULTIPLY = 85,
SDL_SCANCODE_KP_MINUS = 86,
SDL_SCANCODE_KP_PLUS = 87,
SDL_SCANCODE_KP_ENTER = 88,
SDL_SCANCODE_KP_1 = 89,
SDL_SCANCODE_KP_2 = 90,
SDL_SCANCODE_KP_3 = 91,
SDL_SCANCODE_KP_4 = 92,
SDL_SCANCODE_KP_5 = 93,
SDL_SCANCODE_KP_6 = 94,
SDL_SCANCODE_KP_7 = 95,
SDL_SCANCODE_KP_8 = 96,
SDL_SCANCODE_KP_9 = 97,
SDL_SCANCODE_KP_0 = 98,
SDL_SCANCODE_KP_PERIOD = 99,
SDL_SCANCODE_NONUSBACKSLASH = 100,
SDL_SCANCODE_APPLICATION = 101,
SDL_SCANCODE_POWER = 102,
SDL_SCANCODE_KP_EQUALS = 103,
SDL_SCANCODE_F13 = 104,
SDL_SCANCODE_F14 = 105,
SDL_SCANCODE_F15 = 106,
SDL_SCANCODE_F16 = 107,
SDL_SCANCODE_F17 = 108,
SDL_SCANCODE_F18 = 109,
SDL_SCANCODE_F19 = 110,
SDL_SCANCODE_F20 = 111,
SDL_SCANCODE_F21 = 112,
SDL_SCANCODE_F22 = 113,
SDL_SCANCODE_F23 = 114,
SDL_SCANCODE_F24 = 115,
SDL_SCANCODE_EXECUTE = 116,
SDL_SCANCODE_HELP = 117,
SDL_SCANCODE_MENU = 118,
SDL_SCANCODE_SELECT = 119,
SDL_SCANCODE_STOP = 120,
SDL_SCANCODE_AGAIN = 121,
SDL_SCANCODE_UNDO = 122,
SDL_SCANCODE_CUT = 123,
SDL_SCANCODE_COPY = 124,
SDL_SCANCODE_PASTE = 125,
SDL_SCANCODE_FIND = 126,
SDL_SCANCODE_MUTE = 127,
SDL_SCANCODE_VOLUMEUP = 128,
SDL_SCANCODE_VOLUMEDOWN = 129,
SDL_SCANCODE_KP_COMMA = 133,
SDL_SCANCODE_KP_EQUALSAS400 = 134,
SDL_SCANCODE_INTERNATIONAL1 = 135,
SDL_SCANCODE_INTERNATIONAL2 = 136,
SDL_SCANCODE_INTERNATIONAL3 = 137,
SDL_SCANCODE_INTERNATIONAL4 = 138,
SDL_SCANCODE_INTERNATIONAL5 = 139,
SDL_SCANCODE_INTERNATIONAL6 = 140,
SDL_SCANCODE_INTERNATIONAL7 = 141,
SDL_SCANCODE_INTERNATIONAL8 = 142,
SDL_SCANCODE_INTERNATIONAL9 = 143,
SDL_SCANCODE_LANG1 = 144,
SDL_SCANCODE_LANG2 = 145,
SDL_SCANCODE_LANG3 = 146,
SDL_SCANCODE_LANG4 = 147,
SDL_SCANCODE_LANG5 = 148,
SDL_SCANCODE_LANG6 = 149,
SDL_SCANCODE_LANG7 = 150,
SDL_SCANCODE_LANG8 = 151,
SDL_SCANCODE_LANG9 = 152,
SDL_SCANCODE_ALTERASE = 153,
SDL_SCANCODE_SYSREQ = 154,
SDL_SCANCODE_CANCEL = 155,
SDL_SCANCODE_CLEAR = 156,
SDL_SCANCODE_PRIOR = 157,
SDL_SCANCODE_RETURN2 = 158,
SDL_SCANCODE_SEPARATOR = 159,
SDL_SCANCODE_OUT = 160,
SDL_SCANCODE_OPER = 161,
SDL_SCANCODE_CLEARAGAIN = 162,
SDL_SCANCODE_CRSEL = 163,
SDL_SCANCODE_EXSEL = 164,
SDL_SCANCODE_KP_00 = 176,
SDL_SCANCODE_KP_000 = 177,
SDL_SCANCODE_THOUSANDSSEPARATOR = 178,
SDL_SCANCODE_DECIMALSEPARATOR = 179,
SDL_SCANCODE_CURRENCYUNIT = 180,
SDL_SCANCODE_CURRENCYSUBUNIT = 181,
SDL_SCANCODE_KP_LEFTPAREN = 182,
SDL_SCANCODE_KP_RIGHTPAREN = 183,
SDL_SCANCODE_KP_LEFTBRACE = 184,
SDL_SCANCODE_KP_RIGHTBRACE = 185,
SDL_SCANCODE_KP_TAB = 186,
SDL_SCANCODE_KP_BACKSPACE = 187,
SDL_SCANCODE_KP_A = 188,
SDL_SCANCODE_KP_B = 189,
SDL_SCANCODE_KP_C = 190,
SDL_SCANCODE_KP_D = 191,
SDL_SCANCODE_KP_E = 192,
SDL_SCANCODE_KP_F = 193,
SDL_SCANCODE_KP_XOR = 194,
SDL_SCANCODE_KP_POWER = 195,
SDL_SCANCODE_KP_PERCENT = 196,
SDL_SCANCODE_KP_LESS = 197,
SDL_SCANCODE_KP_GREATER = 198,
SDL_SCANCODE_KP_AMPERSAND = 199,
SDL_SCANCODE_KP_DBLAMPERSAND = 200,
SDL_SCANCODE_KP_VERTICALBAR = 201,
SDL_SCANCODE_KP_DBLVERTICALBAR = 202,
SDL_SCANCODE_KP_COLON = 203,
SDL_SCANCODE_KP_HASH = 204,
SDL_SCANCODE_KP_SPACE = 205,
SDL_SCANCODE_KP_AT = 206,
SDL_SCANCODE_KP_EXCLAM = 207,
SDL_SCANCODE_KP_MEMSTORE = 208,
SDL_SCANCODE_KP_MEMRECALL = 209,
SDL_SCANCODE_KP_MEMCLEAR = 210,
SDL_SCANCODE_KP_MEMADD = 211,
SDL_SCANCODE_KP_MEMSUBTRACT = 212,
SDL_SCANCODE_KP_MEMMULTIPLY = 213,
SDL_SCANCODE_KP_MEMDIVIDE = 214,
SDL_SCANCODE_KP_PLUSMINUS = 215,
SDL_SCANCODE_KP_CLEAR = 216,
SDL_SCANCODE_KP_CLEARENTRY = 217,
SDL_SCANCODE_KP_BINARY = 218,
SDL_SCANCODE_KP_OCTAL = 219,
SDL_SCANCODE_KP_DECIMAL = 220,
SDL_SCANCODE_KP_HEXADECIMAL = 221,
SDL_SCANCODE_LCTRL = 224,
SDL_SCANCODE_LSHIFT = 225,
SDL_SCANCODE_LALT = 226,
SDL_SCANCODE_LGUI = 227,
SDL_SCANCODE_RCTRL = 228,
SDL_SCANCODE_RSHIFT = 229,
SDL_SCANCODE_RALT = 230,
SDL_SCANCODE_RGUI = 231,
SDL_SCANCODE_MODE = 257,
SDL_SCANCODE_AUDIONEXT = 258,
SDL_SCANCODE_AUDIOPREV = 259,
SDL_SCANCODE_AUDIOSTOP = 260,
SDL_SCANCODE_AUDIOPLAY = 261,
SDL_SCANCODE_AUDIOMUTE = 262,
SDL_SCANCODE_MEDIASELECT = 263,
SDL_SCANCODE_WWW = 264,
SDL_SCANCODE_MAIL = 265,
SDL_SCANCODE_CALCULATOR = 266,
SDL_SCANCODE_COMPUTER = 267,
SDL_SCANCODE_AC_SEARCH = 268,
SDL_SCANCODE_AC_HOME = 269,
SDL_SCANCODE_AC_BACK = 270,
SDL_SCANCODE_AC_FORWARD = 271,
SDL_SCANCODE_AC_STOP = 272,
SDL_SCANCODE_AC_REFRESH = 273,
SDL_SCANCODE_AC_BOOKMARKS = 274,
SDL_SCANCODE_BRIGHTNESSDOWN = 275,
SDL_SCANCODE_BRIGHTNESSUP = 276,
SDL_SCANCODE_DISPLAYSWITCH = 277,
SDL_SCANCODE_KBDILLUMTOGGLE = 278,
SDL_SCANCODE_KBDILLUMDOWN = 279,
SDL_SCANCODE_KBDILLUMUP = 280,
SDL_SCANCODE_EJECT = 281,
SDL_SCANCODE_SLEEP = 282,
SDL_NUM_SCANCODES = 512
} SDL_Scancode;
#define SDL_ALPHA_OPAQUE ...
#define SDL_ALPHA_TRANSPARENT ...
enum
{
SDL_PIXELTYPE_UNKNOWN,
SDL_PIXELTYPE_INDEX1,
SDL_PIXELTYPE_INDEX4,
SDL_PIXELTYPE_INDEX8,
SDL_PIXELTYPE_PACKED8,
SDL_PIXELTYPE_PACKED16,
SDL_PIXELTYPE_PACKED32,
SDL_PIXELTYPE_ARRAYU8,
SDL_PIXELTYPE_ARRAYU16,
SDL_PIXELTYPE_ARRAYU32,
SDL_PIXELTYPE_ARRAYF16,
SDL_PIXELTYPE_ARRAYF32
};
enum
{
SDL_BITMAPORDER_NONE,
SDL_BITMAPORDER_4321,
SDL_BITMAPORDER_1234
};
enum
{
SDL_PACKEDORDER_NONE,
SDL_PACKEDORDER_XRGB,
SDL_PACKEDORDER_RGBX,
SDL_PACKEDORDER_ARGB,
SDL_PACKEDORDER_RGBA,
SDL_PACKEDORDER_XBGR,
SDL_PACKEDORDER_BGRX,
SDL_PACKEDORDER_ABGR,
SDL_PACKEDORDER_BGRA
};
enum
{
SDL_ARRAYORDER_NONE,
SDL_ARRAYORDER_RGB,
SDL_ARRAYORDER_RGBA,
SDL_ARRAYORDER_ARGB,
SDL_ARRAYORDER_BGR,
SDL_ARRAYORDER_BGRA,
SDL_ARRAYORDER_ABGR
};
enum
{
SDL_PACKEDLAYOUT_NONE,
SDL_PACKEDLAYOUT_332,
SDL_PACKEDLAYOUT_4444,
SDL_PACKEDLAYOUT_1555,
SDL_PACKEDLAYOUT_5551,
SDL_PACKEDLAYOUT_565,
SDL_PACKEDLAYOUT_8888,
SDL_PACKEDLAYOUT_2101010,
SDL_PACKEDLAYOUT_1010102
};
typedef struct SDL_Color
{
Uint8 r;
Uint8 g;
Uint8 b;
Uint8 unused;
} SDL_Color;
typedef struct SDL_Palette
{
int ncolors;
SDL_Color *colors;
Uint32 version;
int refcount;
} SDL_Palette;
typedef struct SDL_PixelFormat
{
Uint32 format;
SDL_Palette *palette;
Uint8 BitsPerPixel;
Uint8 BytesPerPixel;
Uint8 padding[2];
Uint32 Rmask;
Uint32 Gmask;
Uint32 Bmask;
Uint32 Amask;
Uint8 Rloss;
Uint8 Gloss;
Uint8 Bloss;
Uint8 Aloss;
Uint8 Rshift;
Uint8 Gshift;
Uint8 Bshift;
Uint8 Ashift;
int refcount;
struct SDL_PixelFormat *next;
} SDL_PixelFormat;
extern const char* SDL_GetPixelFormatName(Uint32 format);
extern SDL_bool SDL_PixelFormatEnumToMasks(Uint32 format,
int *bpp,
Uint32 * Rmask,
Uint32 * Gmask,
Uint32 * Bmask,
Uint32 * Amask);
extern Uint32 SDL_MasksToPixelFormatEnum(int bpp,
Uint32 Rmask,
Uint32 Gmask,
Uint32 Bmask,
Uint32 Amask);
extern SDL_PixelFormat * SDL_AllocFormat(Uint32 pixel_format);
extern void SDL_FreeFormat(SDL_PixelFormat *format);
extern SDL_Palette * SDL_AllocPalette(int ncolors);
extern int SDL_SetPixelFormatPalette(SDL_PixelFormat * format,
SDL_Palette *palette);
extern int SDL_SetPaletteColors(SDL_Palette * palette,
const SDL_Color * colors,
int firstcolor, int ncolors);
extern void SDL_FreePalette(SDL_Palette * palette);
extern Uint32 SDL_MapRGB(const SDL_PixelFormat * format,
Uint8 r, Uint8 g, Uint8 b);
extern Uint32 SDL_MapRGBA(const SDL_PixelFormat * format,
Uint8 r, Uint8 g, Uint8 b,
Uint8 a);
extern void SDL_GetRGB(Uint32 pixel,
const SDL_PixelFormat * format,
Uint8 * r, Uint8 * g, Uint8 * b);
extern void SDL_GetRGBA(Uint32 pixel,
const SDL_PixelFormat * format,
Uint8 * r, Uint8 * g, Uint8 * b,
Uint8 * a);
extern void SDL_CalculateGammaRamp(float gamma, Uint16 * ramp);
typedef struct
{
int x;
int y;
} SDL_Point;
typedef struct SDL_Rect
{
int x, y;
int w, h;
} SDL_Rect;
extern SDL_bool SDL_HasIntersection(const SDL_Rect * A,
const SDL_Rect * B);
extern SDL_bool SDL_IntersectRect(const SDL_Rect * A,
const SDL_Rect * B,
SDL_Rect * result);
extern void SDL_UnionRect(const SDL_Rect * A,
const SDL_Rect * B,
SDL_Rect * result);
extern SDL_bool SDL_EnclosePoints(const SDL_Point * points,
int count,
const SDL_Rect * clip,
SDL_Rect * result);
extern SDL_bool SDL_IntersectRectAndLine(const SDL_Rect *
rect, int *X1,
int *Y1, int *X2,
int *Y2);
typedef struct file_p FILE;
typedef struct SDL_RWops
{
long ( * seek) (struct SDL_RWops * context, long offset,
int whence);
size_t( * read) (struct SDL_RWops * context, void *ptr,
size_t size, size_t maxnum);
size_t( * write) (struct SDL_RWops * context, const void *ptr,
size_t size, size_t num);
int ( * close) (struct SDL_RWops * context);
Uint32 type;
union
{
struct
{
SDL_bool autoclose;
FILE *fp;
} stdio;
struct
{
Uint8 *base;
Uint8 *here;
Uint8 *stop;
} mem;
struct
{
void *data1;
} unknown;
} hidden;
} SDL_RWops;
extern SDL_RWops * SDL_RWFromFile(const char *file,
const char *mode);
extern SDL_RWops * SDL_RWFromFP(FILE * fp,
SDL_bool autoclose);
extern SDL_RWops * SDL_RWFromMem(void *mem, int size);
extern SDL_RWops * SDL_RWFromConstMem(const void *mem,
int size);
extern SDL_RWops * SDL_AllocRW(void);
extern void SDL_FreeRW(SDL_RWops * area);
#define RW_SEEK_SET ...
#define RW_SEEK_CUR ...
#define RW_SEEK_END ...
extern Uint16 SDL_ReadLE16(SDL_RWops * src);
extern Uint16 SDL_ReadBE16(SDL_RWops * src);
extern Uint32 SDL_ReadLE32(SDL_RWops * src);
extern Uint32 SDL_ReadBE32(SDL_RWops * src);
extern Uint64 SDL_ReadLE64(SDL_RWops * src);
extern Uint64 SDL_ReadBE64(SDL_RWops * src);
extern size_t SDL_WriteLE16(SDL_RWops * dst, Uint16 value);
extern size_t SDL_WriteBE16(SDL_RWops * dst, Uint16 value);
extern size_t SDL_WriteLE32(SDL_RWops * dst, Uint32 value);
extern size_t SDL_WriteBE32(SDL_RWops * dst, Uint32 value);
extern size_t SDL_WriteLE64(SDL_RWops * dst, Uint64 value);
extern size_t SDL_WriteBE64(SDL_RWops * dst, Uint64 value);
#define SDL_SWSURFACE ...
#define SDL_PREALLOC ...
#define SDL_RLEACCEL ...
#define SDL_DONTFREE ...
typedef struct SDL_Surface
{
Uint32 flags;
SDL_PixelFormat *format;
int w, h;
int pitch;
void *pixels;
void *userdata;
int locked;
void *lock_data;
SDL_Rect clip_rect;
struct SDL_BlitMap *map;
int refcount;
} SDL_Surface;
typedef int (*SDL_blit) (struct SDL_Surface * src, SDL_Rect * srcrect,
struct SDL_Surface * dst, SDL_Rect * dstrect);
extern SDL_Surface * SDL_CreateRGBSurface
(Uint32 flags, int width, int height, int depth,
Uint32 Rmask, Uint32 Gmask, Uint32 Bmask, Uint32 Amask);
extern SDL_Surface * SDL_CreateRGBSurfaceFrom(void *pixels,
int width,
int height,
int depth,
int pitch,
Uint32 Rmask,
Uint32 Gmask,
Uint32 Bmask,
Uint32 Amask);
extern void SDL_FreeSurface(SDL_Surface * surface);
extern int SDL_SetSurfacePalette(SDL_Surface * surface,
SDL_Palette * palette);
extern int SDL_LockSurface(SDL_Surface * surface);
extern void SDL_UnlockSurface(SDL_Surface * surface);
extern SDL_Surface * SDL_LoadBMP_RW(SDL_RWops * src,
int freesrc);
extern int SDL_SaveBMP_RW
(SDL_Surface * surface, SDL_RWops * dst, int freedst);
extern int SDL_SetSurfaceRLE(SDL_Surface * surface,
int flag);
extern int SDL_SetColorKey(SDL_Surface * surface,
int flag, Uint32 key);
extern int SDL_GetColorKey(SDL_Surface * surface,
Uint32 * key);
extern int SDL_SetSurfaceColorMod(SDL_Surface * surface,
Uint8 r, Uint8 g, Uint8 b);
extern int SDL_GetSurfaceColorMod(SDL_Surface * surface,
Uint8 * r, Uint8 * g,
Uint8 * b);
extern int SDL_SetSurfaceAlphaMod(SDL_Surface * surface,
Uint8 alpha);
extern int SDL_GetSurfaceAlphaMod(SDL_Surface * surface,
Uint8 * alpha);
extern int SDL_SetSurfaceBlendMode(SDL_Surface * surface,
SDL_BlendMode blendMode);
extern int SDL_GetSurfaceBlendMode(SDL_Surface * surface,
SDL_BlendMode *blendMode);
extern SDL_bool SDL_SetClipRect(SDL_Surface * surface,
const SDL_Rect * rect);
extern void SDL_GetClipRect(SDL_Surface * surface,
SDL_Rect * rect);
extern SDL_Surface * SDL_ConvertSurface
(SDL_Surface * src, SDL_PixelFormat * fmt, Uint32 flags);
extern SDL_Surface * SDL_ConvertSurfaceFormat
(SDL_Surface * src, Uint32 pixel_format, Uint32 flags);
extern int SDL_ConvertPixels(int width, int height,
Uint32 src_format,
const void * src, int src_pitch,
Uint32 dst_format,
void * dst, int dst_pitch);
extern int SDL_FillRect
(SDL_Surface * dst, const SDL_Rect * rect, Uint32 color);
extern int SDL_FillRects
(SDL_Surface * dst, const SDL_Rect * rects, int count, Uint32 color);
#define SDL_BlitSurface ...
extern int SDL_UpperBlit
(SDL_Surface * src, const SDL_Rect * srcrect,
SDL_Surface * dst, SDL_Rect * dstrect);
extern int SDL_LowerBlit
(SDL_Surface * src, SDL_Rect * srcrect,
SDL_Surface * dst, SDL_Rect * dstrect);
extern int SDL_SoftStretch(SDL_Surface * src,
const SDL_Rect * srcrect,
SDL_Surface * dst,
const SDL_Rect * dstrect);
#define SDL_BlitScaled ...
extern int SDL_UpperBlitScaled
(SDL_Surface * src, const SDL_Rect * srcrect,
SDL_Surface * dst, SDL_Rect * dstrect);
extern int SDL_LowerBlitScaled
(SDL_Surface * src, SDL_Rect * srcrect,
SDL_Surface * dst, SDL_Rect * dstrect);
typedef Sint32 SDL_Keycode;
#define SDLK_SCANCODE_MASK ...
enum
{
SDLK_UNKNOWN,
SDLK_RETURN,
SDLK_ESCAPE,
SDLK_BACKSPACE,
SDLK_TAB,
SDLK_SPACE,
SDLK_EXCLAIM,
SDLK_QUOTEDBL,
SDLK_HASH,
SDLK_PERCENT,
SDLK_DOLLAR,
SDLK_AMPERSAND,
SDLK_QUOTE,
SDLK_LEFTPAREN,
SDLK_RIGHTPAREN,
SDLK_ASTERISK,
SDLK_PLUS,
SDLK_COMMA,
SDLK_MINUS,
SDLK_PERIOD,
SDLK_SLASH,
SDLK_0,
SDLK_1,
SDLK_2,
SDLK_3,
SDLK_4,
SDLK_5,
SDLK_6,
SDLK_7,
SDLK_8,
SDLK_9,
SDLK_COLON,
SDLK_SEMICOLON,
SDLK_LESS,
SDLK_EQUALS,
SDLK_GREATER,
SDLK_QUESTION,
SDLK_AT,
SDLK_LEFTBRACKET,
SDLK_BACKSLASH,
SDLK_RIGHTBRACKET,
SDLK_CARET,
SDLK_UNDERSCORE,
SDLK_BACKQUOTE,
SDLK_a,
SDLK_b,
SDLK_c,
SDLK_d,
SDLK_e,
SDLK_f,
SDLK_g,
SDLK_h,
SDLK_i,
SDLK_j,
SDLK_k,
SDLK_l,
SDLK_m,
SDLK_n,
SDLK_o,
SDLK_p,
SDLK_q,
SDLK_r,
SDLK_s,
SDLK_t,
SDLK_u,
SDLK_v,
SDLK_w,
SDLK_x,
SDLK_y,
SDLK_z,
SDLK_CAPSLOCK,
SDLK_F1,
SDLK_F2,
SDLK_F3,
SDLK_F4,
SDLK_F5,
SDLK_F6,
SDLK_F7,
SDLK_F8,
SDLK_F9,
SDLK_F10,
SDLK_F11,
SDLK_F12,
SDLK_PRINTSCREEN,
SDLK_SCROLLLOCK,
SDLK_PAUSE,
SDLK_INSERT,
SDLK_HOME,
SDLK_PAGEUP,
SDLK_DELETE,
SDLK_END,
SDLK_PAGEDOWN,
SDLK_RIGHT,
SDLK_LEFT,
SDLK_DOWN,
SDLK_UP,
SDLK_NUMLOCKCLEAR,
SDLK_KP_DIVIDE,
SDLK_KP_MULTIPLY,
SDLK_KP_MINUS,
SDLK_KP_PLUS,
SDLK_KP_ENTER,
SDLK_KP_1,
SDLK_KP_2,
SDLK_KP_3,
SDLK_KP_4,
SDLK_KP_5,
SDLK_KP_6,
SDLK_KP_7,
SDLK_KP_8,
SDLK_KP_9,
SDLK_KP_0,
SDLK_KP_PERIOD,
SDLK_APPLICATION,
SDLK_POWER,
SDLK_KP_EQUALS,
SDLK_F13,
SDLK_F14,
SDLK_F15,
SDLK_F16,
SDLK_F17,
SDLK_F18,
SDLK_F19,
SDLK_F20,
SDLK_F21,
SDLK_F22,
SDLK_F23,
SDLK_F24,
SDLK_EXECUTE,
SDLK_HELP,
SDLK_MENU,
SDLK_SELECT,
SDLK_STOP,
SDLK_AGAIN,
SDLK_UNDO,
SDLK_CUT,
SDLK_COPY,
SDLK_PASTE,
SDLK_FIND,
SDLK_MUTE,
SDLK_VOLUMEUP,
SDLK_VOLUMEDOWN,
SDLK_KP_COMMA,
SDLK_KP_EQUALSAS400,
SDLK_ALTERASE,
SDLK_SYSREQ,
SDLK_CANCEL,
SDLK_CLEAR,
SDLK_PRIOR,
SDLK_RETURN2,
SDLK_SEPARATOR,
SDLK_OUT,
SDLK_OPER,
SDLK_CLEARAGAIN,
SDLK_CRSEL,
SDLK_EXSEL,
SDLK_KP_00,
SDLK_KP_000,
SDLK_THOUSANDSSEPARATOR,
SDLK_DECIMALSEPARATOR,
SDLK_CURRENCYUNIT,
SDLK_CURRENCYSUBUNIT,
SDLK_KP_LEFTPAREN,
SDLK_KP_RIGHTPAREN,
SDLK_KP_LEFTBRACE,
SDLK_KP_RIGHTBRACE,
SDLK_KP_TAB,
SDLK_KP_BACKSPACE,
SDLK_KP_A,
SDLK_KP_B,
SDLK_KP_C,
SDLK_KP_D,
SDLK_KP_E,
SDLK_KP_F,
SDLK_KP_XOR,
SDLK_KP_POWER,
SDLK_KP_PERCENT,
SDLK_KP_LESS,
SDLK_KP_GREATER,
SDLK_KP_AMPERSAND,
SDLK_KP_DBLAMPERSAND,
SDLK_KP_VERTICALBAR,
SDLK_KP_DBLVERTICALBAR,
SDLK_KP_COLON,
SDLK_KP_HASH,
SDLK_KP_SPACE,
SDLK_KP_AT,
SDLK_KP_EXCLAM,
SDLK_KP_MEMSTORE,
SDLK_KP_MEMRECALL,
SDLK_KP_MEMCLEAR,
SDLK_KP_MEMADD,
SDLK_KP_MEMSUBTRACT,
SDLK_KP_MEMMULTIPLY,
SDLK_KP_MEMDIVIDE,
SDLK_KP_PLUSMINUS,
SDLK_KP_CLEAR,
SDLK_KP_CLEARENTRY,
SDLK_KP_BINARY,
SDLK_KP_OCTAL,
SDLK_KP_DECIMAL,
SDLK_KP_HEXADECIMAL,
SDLK_LCTRL,
SDLK_LSHIFT,
SDLK_LALT,
SDLK_LGUI,
SDLK_RCTRL,
SDLK_RSHIFT,
SDLK_RALT,
SDLK_RGUI,
SDLK_MODE,
SDLK_AUDIONEXT,
SDLK_AUDIOPREV,
SDLK_AUDIOSTOP,
SDLK_AUDIOPLAY,
SDLK_AUDIOMUTE,
SDLK_MEDIASELECT,
SDLK_WWW,
SDLK_MAIL,
SDLK_CALCULATOR,
SDLK_COMPUTER,
SDLK_AC_SEARCH,
SDLK_AC_HOME,
SDLK_AC_BACK,
SDLK_AC_FORWARD,
SDLK_AC_STOP,
SDLK_AC_REFRESH,
SDLK_AC_BOOKMARKS,
SDLK_BRIGHTNESSDOWN,
SDLK_BRIGHTNESSUP,
SDLK_DISPLAYSWITCH,
SDLK_KBDILLUMTOGGLE,
SDLK_KBDILLUMDOWN,
SDLK_KBDILLUMUP,
SDLK_EJECT,
SDLK_SLEEP,
...
};
typedef enum
{
KMOD_NONE = 0x0000,
KMOD_LSHIFT = 0x0001,
KMOD_RSHIFT = 0x0002,
KMOD_LCTRL = 0x0040,
KMOD_RCTRL = 0x0080,
KMOD_LALT = 0x0100,
KMOD_RALT = 0x0200,
KMOD_LGUI = 0x0400,
KMOD_RGUI = 0x0800,
KMOD_NUM = 0x1000,
KMOD_CAPS = 0x2000,
KMOD_MODE = 0x4000,
KMOD_RESERVED = 0x8000
} SDL_Keymod;
#define KMOD_CTRL ...
#define KMOD_SHIFT ...
#define KMOD_ALT ...
#define KMOD_GUI ...
extern void SDL_SetError(const char *fmt, ...);
extern const char * SDL_GetError(void);
extern void SDL_ClearError(void);
typedef enum
{
SDL_ENOMEM,
SDL_EFREAD,
SDL_EFWRITE,
SDL_EFSEEK,
SDL_UNSUPPORTED,
SDL_LASTERROR
} SDL_errorcode;
extern void SDL_Error(SDL_errorcode code);
typedef struct
{
Uint32 format;
int w;
int h;
int refresh_rate;
void *driverdata;
} SDL_DisplayMode;
typedef struct SDL_Window SDL_Window;
typedef enum SDL_WindowFlags
{
SDL_WINDOW_FULLSCREEN = 0x00000001,
SDL_WINDOW_OPENGL = 0x00000002,
SDL_WINDOW_SHOWN = 0x00000004,
SDL_WINDOW_HIDDEN = 0x00000008,
SDL_WINDOW_BORDERLESS = 0x00000010,
SDL_WINDOW_RESIZABLE = 0x00000020,
SDL_WINDOW_MINIMIZED = 0x00000040,
SDL_WINDOW_MAXIMIZED = 0x00000080,
SDL_WINDOW_INPUT_GRABBED = 0x00000100,
SDL_WINDOW_INPUT_FOCUS = 0x00000200,
SDL_WINDOW_MOUSE_FOCUS = 0x00000400,
SDL_WINDOW_FOREIGN = 0x00000800
} SDL_WindowFlags;
#define SDL_WINDOWPOS_UNDEFINED_MASK ...
#define SDL_WINDOWPOS_UNDEFINED ...
#define SDL_WINDOWPOS_CENTERED_MASK ...
#define SDL_WINDOWPOS_CENTERED ...
typedef enum SDL_WindowEventID
{
SDL_WINDOWEVENT_NONE,
SDL_WINDOWEVENT_SHOWN,
SDL_WINDOWEVENT_HIDDEN,
SDL_WINDOWEVENT_EXPOSED,
SDL_WINDOWEVENT_MOVED,
SDL_WINDOWEVENT_RESIZED,
SDL_WINDOWEVENT_SIZE_CHANGED,
SDL_WINDOWEVENT_MINIMIZED,
SDL_WINDOWEVENT_MAXIMIZED,
SDL_WINDOWEVENT_RESTORED,
SDL_WINDOWEVENT_ENTER,
SDL_WINDOWEVENT_LEAVE,
SDL_WINDOWEVENT_FOCUS_GAINED,
SDL_WINDOWEVENT_FOCUS_LOST,
SDL_WINDOWEVENT_CLOSE
} SDL_WindowEventID;
typedef void *SDL_GLContext;
typedef enum SDL_GLattr
{
SDL_GL_RED_SIZE,
SDL_GL_GREEN_SIZE,
SDL_GL_BLUE_SIZE,
SDL_GL_ALPHA_SIZE,
SDL_GL_BUFFER_SIZE,
SDL_GL_DOUBLEBUFFER,
SDL_GL_DEPTH_SIZE,
SDL_GL_STENCIL_SIZE,
SDL_GL_ACCUM_RED_SIZE,
SDL_GL_ACCUM_GREEN_SIZE,
SDL_GL_ACCUM_BLUE_SIZE,
SDL_GL_ACCUM_ALPHA_SIZE,
SDL_GL_STEREO,
SDL_GL_MULTISAMPLEBUFFERS,
SDL_GL_MULTISAMPLESAMPLES,
SDL_GL_ACCELERATED_VISUAL,
SDL_GL_RETAINED_BACKING,
SDL_GL_CONTEXT_MAJOR_VERSION,
SDL_GL_CONTEXT_MINOR_VERSION,
SDL_GL_CONTEXT_EGL,
SDL_GL_CONTEXT_FLAGS,
SDL_GL_CONTEXT_PROFILE_MASK,
SDL_GL_SHARE_WITH_CURRENT_CONTEXT
} SDL_GLattr;
typedef enum SDL_GLprofile
{
SDL_GL_CONTEXT_PROFILE_CORE = 0x0001,
SDL_GL_CONTEXT_PROFILE_COMPATIBILITY = 0x0002,
SDL_GL_CONTEXT_PROFILE_ES = 0x0004
} SDL_GLprofile;
typedef enum SDL_GLcontextFlag
{
SDL_GL_CONTEXT_DEBUG_FLAG = 0x0001,
SDL_GL_CONTEXT_FORWARD_COMPATIBLE_FLAG = 0x0002,
SDL_GL_CONTEXT_ROBUST_ACCESS_FLAG = 0x0004,
SDL_GL_CONTEXT_RESET_ISOLATION_FLAG = 0x0008
} SDL_GLcontextFlag;
extern int SDL_GetNumVideoDrivers(void);
extern const char * SDL_GetVideoDriver(int index);
extern int SDL_VideoInit(const char *driver_name);
extern void SDL_VideoQuit(void);
extern const char * SDL_GetCurrentVideoDriver(void);
extern int SDL_GetNumVideoDisplays(void);
extern int SDL_GetDisplayBounds(int displayIndex, SDL_Rect * rect);
extern int SDL_GetNumDisplayModes(int displayIndex);
extern int SDL_GetDisplayMode(int displayIndex, int modeIndex,
SDL_DisplayMode * mode);
extern int SDL_GetDesktopDisplayMode(int displayIndex, SDL_DisplayMode * mode);
extern int SDL_GetCurrentDisplayMode(int displayIndex, SDL_DisplayMode * mode);
extern SDL_DisplayMode * SDL_GetClosestDisplayMode(int displayIndex, const SDL_DisplayMode * mode, SDL_DisplayMode * closest);
extern int SDL_GetWindowDisplay(SDL_Window * window);
extern int SDL_SetWindowDisplayMode(SDL_Window * window,
const SDL_DisplayMode
* mode);
extern int SDL_GetWindowDisplayMode(SDL_Window * window,
SDL_DisplayMode * mode);
extern Uint32 SDL_GetWindowPixelFormat(SDL_Window * window);
extern SDL_Window * SDL_CreateWindow(const char *title,
int x, int y, int w,
int h, Uint32 flags);
extern SDL_Window * SDL_CreateWindowFrom(const void *data);
extern Uint32 SDL_GetWindowID(SDL_Window * window);
extern SDL_Window * SDL_GetWindowFromID(Uint32 id);
extern Uint32 SDL_GetWindowFlags(SDL_Window * window);
extern void SDL_SetWindowTitle(SDL_Window * window,
const char *title);
extern const char * SDL_GetWindowTitle(SDL_Window * window);
extern void SDL_SetWindowIcon(SDL_Window * window,
SDL_Surface * icon);
extern void* SDL_SetWindowData(SDL_Window * window,
const char *name,
void *userdata);
extern void * SDL_GetWindowData(SDL_Window * window,
const char *name);
extern void SDL_SetWindowPosition(SDL_Window * window,
int x, int y);
extern void SDL_GetWindowPosition(SDL_Window * window,
int *x, int *y);
extern void SDL_SetWindowSize(SDL_Window * window, int w,
int h);
extern void SDL_GetWindowSize(SDL_Window * window, int *w,
int *h);
extern void SDL_ShowWindow(SDL_Window * window);
extern void SDL_HideWindow(SDL_Window * window);
extern void SDL_RaiseWindow(SDL_Window * window);
extern void SDL_MaximizeWindow(SDL_Window * window);
extern void SDL_MinimizeWindow(SDL_Window * window);
extern void SDL_RestoreWindow(SDL_Window * window);
extern int SDL_SetWindowFullscreen(SDL_Window * window,
SDL_bool fullscreen);
extern SDL_Surface * SDL_GetWindowSurface(SDL_Window * window);
extern int SDL_UpdateWindowSurface(SDL_Window * window);
extern int SDL_UpdateWindowSurfaceRects(SDL_Window * window,
SDL_Rect * rects,
int numrects);
extern void SDL_SetWindowGrab(SDL_Window * window,
SDL_bool grabbed);
extern SDL_bool SDL_GetWindowGrab(SDL_Window * window);
extern int SDL_SetWindowBrightness(SDL_Window * window, float brightness);
extern float SDL_GetWindowBrightness(SDL_Window * window);
extern int SDL_SetWindowGammaRamp(SDL_Window * window,
const Uint16 * red,
const Uint16 * green,
const Uint16 * blue);
extern int SDL_GetWindowGammaRamp(SDL_Window * window,
Uint16 * red,
Uint16 * green,
Uint16 * blue);
extern void SDL_DestroyWindow(SDL_Window * window);
extern SDL_bool SDL_IsScreenSaverEnabled(void);
extern void SDL_EnableScreenSaver(void);
extern void SDL_DisableScreenSaver(void);
extern int SDL_GL_LoadLibrary(const char *path);
extern void * SDL_GL_GetProcAddress(const char *proc);
extern void SDL_GL_UnloadLibrary(void);
extern SDL_bool SDL_GL_ExtensionSupported(const char
*extension);
extern int SDL_GL_SetAttribute(SDL_GLattr attr, int value);
extern int SDL_GL_GetAttribute(SDL_GLattr attr, int *value);
extern SDL_GLContext SDL_GL_CreateContext(SDL_Window *
window);
extern int SDL_GL_MakeCurrent(SDL_Window * window,
SDL_GLContext context);
extern int SDL_GL_SetSwapInterval(int interval);
extern int SDL_GL_GetSwapInterval(void);
extern void SDL_GL_SwapWindow(SDL_Window * window);
extern void SDL_GL_DeleteContext(SDL_GLContext context);
typedef struct SDL_Keysym
{
SDL_Scancode scancode;
SDL_Keycode sym;
Uint16 mod;
Uint32 unicode;
} SDL_Keysym;
extern SDL_Window * SDL_GetKeyboardFocus(void);
extern Uint8 * SDL_GetKeyboardState(int *numkeys);
extern SDL_Keymod SDL_GetModState(void);
extern void SDL_SetModState(SDL_Keymod modstate);
extern SDL_Keycode SDL_GetKeyFromScancode(SDL_Scancode scancode);
extern SDL_Scancode SDL_GetScancodeFromKey(SDL_Keycode key);
extern const char * SDL_GetScancodeName(SDL_Scancode scancode);
extern SDL_Scancode SDL_GetScancodeFromName(const char *name);
extern const char * SDL_GetKeyName(SDL_Keycode key);
extern SDL_Keycode SDL_GetKeyFromName(const char *name);
extern void SDL_StartTextInput(void);
extern void SDL_StopTextInput(void);
extern void SDL_SetTextInputRect(SDL_Rect *rect);
extern SDL_bool SDL_HasScreenKeyboardSupport(SDL_Window *window);
extern int SDL_ShowScreenKeyboard(SDL_Window *window);
extern int SDL_HideScreenKeyboard(SDL_Window *window);
extern int SDL_ToggleScreenKeyboard(SDL_Window * window);
extern SDL_bool SDL_IsScreenKeyboardShown(SDL_Window *window);
typedef struct SDL_Cursor SDL_Cursor;
extern SDL_Window * SDL_GetMouseFocus(void);
extern Uint8 SDL_GetMouseState(int *x, int *y);
extern Uint8 SDL_GetRelativeMouseState(int *x, int *y);
extern void SDL_WarpMouseInWindow(SDL_Window * window,
int x, int y);
extern int SDL_SetRelativeMouseMode(SDL_bool enabled);
extern SDL_bool SDL_GetRelativeMouseMode(void);
extern SDL_Cursor * SDL_CreateCursor(const Uint8 * data,
const Uint8 * mask,
int w, int h, int hot_x,
int hot_y);
extern SDL_Cursor * SDL_CreateColorCursor(SDL_Surface *surface,
int hot_x,
int hot_y);
extern void SDL_SetCursor(SDL_Cursor * cursor);
extern SDL_Cursor * SDL_GetCursor(void);
extern void SDL_FreeCursor(SDL_Cursor * cursor);
extern int SDL_ShowCursor(int toggle);
#define SDL_BUTTON_LEFT ...
#define SDL_BUTTON_MIDDLE ...
#define SDL_BUTTON_RIGHT ...
#define SDL_BUTTON_X1 ...
#define SDL_BUTTON_X2 ...
#define SDL_BUTTON_LMASK ...
#define SDL_BUTTON_MMASK ...
#define SDL_BUTTON_RMASK ...
#define SDL_BUTTON_X1MASK ...
#define SDL_BUTTON_X2MASK ...
struct _SDL_Joystick;
typedef struct _SDL_Joystick SDL_Joystick;
extern int SDL_NumJoysticks(void);
extern const char * SDL_JoystickName(int device_index);
extern SDL_Joystick * SDL_JoystickOpen(int device_index);
extern int SDL_JoystickOpened(int device_index);
extern int SDL_JoystickIndex(SDL_Joystick * joystick);
extern int SDL_JoystickNumAxes(SDL_Joystick * joystick);
extern int SDL_JoystickNumBalls(SDL_Joystick * joystick);
extern int SDL_JoystickNumHats(SDL_Joystick * joystick);
extern int SDL_JoystickNumButtons(SDL_Joystick * joystick);
extern void SDL_JoystickUpdate(void);
extern int SDL_JoystickEventState(int state);
extern Sint16 SDL_JoystickGetAxis(SDL_Joystick * joystick,
int axis);
#define SDL_HAT_CENTERED ...
#define SDL_HAT_UP ...
#define SDL_HAT_RIGHT ...
#define SDL_HAT_DOWN ...
#define SDL_HAT_LEFT ...
#define SDL_HAT_RIGHTUP ...
#define SDL_HAT_RIGHTDOWN ...
#define SDL_HAT_LEFTUP ...
#define SDL_HAT_LEFTDOWN ...
extern Uint8 SDL_JoystickGetHat(SDL_Joystick * joystick,
int hat);
extern int SDL_JoystickGetBall(SDL_Joystick * joystick,
int ball, int *dx, int *dy);
extern Uint8 SDL_JoystickGetButton(SDL_Joystick * joystick,
int button);
extern void SDL_JoystickClose(SDL_Joystick * joystick);
typedef Sint64 SDL_TouchID;
typedef Sint64 SDL_FingerID;
struct SDL_Finger {
SDL_FingerID id;
Uint16 x;
Uint16 y;
Uint16 pressure;
Uint16 xdelta;
Uint16 ydelta;
Uint16 last_x, last_y,last_pressure;
SDL_bool down;
};
typedef struct SDL_Touch SDL_Touch;
typedef struct SDL_Finger SDL_Finger;
struct SDL_Touch {
void (*FreeTouch) (SDL_Touch * touch);
float pressure_max, pressure_min;
float x_max,x_min;
float y_max,y_min;
Uint16 xres,yres,pressureres;
float native_xres,native_yres,native_pressureres;
float tilt_x;
float tilt_y;
float rotation;
SDL_TouchID id;
SDL_Window *focus;
char *name;
Uint8 buttonstate;
SDL_bool relative_mode;
SDL_bool flush_motion;
int num_fingers;
int max_fingers;
SDL_Finger** fingers;
void *driverdata;
};
extern SDL_Touch* SDL_GetTouch(SDL_TouchID id);
extern
SDL_Finger* SDL_GetFinger(SDL_Touch *touch, SDL_FingerID id);
typedef Sint64 SDL_GestureID;
extern int SDL_RecordGesture(SDL_TouchID touchId);
extern int SDL_SaveAllDollarTemplates(SDL_RWops *src);
extern int SDL_SaveDollarTemplate(SDL_GestureID gestureId,SDL_RWops *src);
extern int SDL_LoadDollarTemplates(SDL_TouchID touchId, SDL_RWops *src);
#define SDL_RELEASED ...
#define SDL_PRESSED ...
typedef enum
{
SDL_FIRSTEVENT = 0,
SDL_QUIT = 0x100,
SDL_WINDOWEVENT = 0x200,
SDL_SYSWMEVENT,
SDL_KEYDOWN = 0x300,
SDL_KEYUP,
SDL_TEXTEDITING,
SDL_TEXTINPUT,
SDL_MOUSEMOTION = 0x400,
SDL_MOUSEBUTTONDOWN,
SDL_MOUSEBUTTONUP,
SDL_MOUSEWHEEL,
SDL_INPUTMOTION = 0x500,
SDL_INPUTBUTTONDOWN,
SDL_INPUTBUTTONUP,
SDL_INPUTWHEEL,
SDL_INPUTPROXIMITYIN,
SDL_INPUTPROXIMITYOUT,
SDL_JOYAXISMOTION = 0x600,
SDL_JOYBALLMOTION,
SDL_JOYHATMOTION,
SDL_JOYBUTTONDOWN,
SDL_JOYBUTTONUP,
SDL_FINGERDOWN = 0x700,
SDL_FINGERUP,
SDL_FINGERMOTION,
SDL_TOUCHBUTTONDOWN,
SDL_TOUCHBUTTONUP,
SDL_DOLLARGESTURE = 0x800,
SDL_DOLLARRECORD,
SDL_MULTIGESTURE,
SDL_CLIPBOARDUPDATE = 0x900,
SDL_DROPFILE = 0x1000,
SDL_USEREVENT = 0x8000,
SDL_LASTEVENT = 0xFFFF
} SDL_EventType;
typedef struct SDL_WindowEvent
{
Uint32 type;
Uint32 timestamp;
Uint32 windowID;
Uint8 event;
Uint8 padding1;
Uint8 padding2;
Uint8 padding3;
int data1;
int data2;
} SDL_WindowEvent;
typedef struct SDL_KeyboardEvent
{
Uint32 type;
Uint32 timestamp;
Uint32 windowID;
Uint8 state;
Uint8 repeat;
Uint8 padding2;
Uint8 padding3;
SDL_Keysym keysym;
} SDL_KeyboardEvent;
#define SDL_TEXTEDITINGEVENT_TEXT_SIZE ...
typedef struct SDL_TextEditingEvent
{
Uint32 type;
Uint32 timestamp;
Uint32 windowID;
char text[32];
int start;
int length;
} SDL_TextEditingEvent;
#define SDL_TEXTINPUTEVENT_TEXT_SIZE ...
typedef struct SDL_TextInputEvent
{
Uint32 type;
Uint32 timestamp;
Uint32 windowID;
char text[32];
} SDL_TextInputEvent;
typedef struct SDL_MouseMotionEvent
{
Uint32 type;
Uint32 timestamp;
Uint32 windowID;
Uint8 state;
Uint8 padding1;
Uint8 padding2;
Uint8 padding3;
int x;
int y;
int xrel;
int yrel;
} SDL_MouseMotionEvent;
typedef struct SDL_MouseButtonEvent
{
Uint32 type;
Uint32 timestamp;
Uint32 windowID;
Uint8 button;
Uint8 state;
Uint8 padding1;
Uint8 padding2;
int x;
int y;
} SDL_MouseButtonEvent;
typedef struct SDL_MouseWheelEvent
{
Uint32 type;
Uint32 timestamp;
Uint32 windowID;
int x;
int y;
} SDL_MouseWheelEvent;
typedef struct SDL_JoyAxisEvent
{
Uint32 type;
Uint32 timestamp;
Uint8 which;
Uint8 axis;
Uint8 padding1;
Uint8 padding2;
int value;
} SDL_JoyAxisEvent;
typedef struct SDL_JoyBallEvent
{
Uint32 type;
Uint32 timestamp;
Uint8 which;
Uint8 ball;
Uint8 padding1;
Uint8 padding2;
int xrel;
int yrel;
} SDL_JoyBallEvent;
typedef struct SDL_JoyHatEvent
{
Uint32 type;
Uint32 timestamp;
Uint8 which;
Uint8 hat;
Uint8 value;
Uint8 padding1;
} SDL_JoyHatEvent;
typedef struct SDL_JoyButtonEvent
{
Uint32 type;
Uint32 timestamp;
Uint8 which;
Uint8 button;
Uint8 state;
Uint8 padding1;
} SDL_JoyButtonEvent;
typedef struct SDL_TouchFingerEvent
{
Uint32 type;
Uint32 timestamp;
Uint32 windowID;
SDL_TouchID touchId;
SDL_FingerID fingerId;
Uint8 state;
Uint8 padding1;
Uint8 padding2;
Uint8 padding3;
Uint16 x;
Uint16 y;
Sint16 dx;
Sint16 dy;
Uint16 pressure;
} SDL_TouchFingerEvent;
typedef struct SDL_TouchButtonEvent
{
Uint32 type;
Uint32 timestamp;
Uint32 windowID;
SDL_TouchID touchId;
Uint8 state;
Uint8 button;
Uint8 padding1;
Uint8 padding2;
} SDL_TouchButtonEvent;
typedef struct SDL_MultiGestureEvent
{
Uint32 type;
Uint32 timestamp;
Uint32 windowID;
SDL_TouchID touchId;
float dTheta;
float dDist;
float x;
float y;
Uint16 numFingers;
Uint16 padding;
} SDL_MultiGestureEvent;
typedef struct SDL_DollarGestureEvent
{
Uint32 type;
Uint32 timestamp;
Uint32 windowID;
SDL_TouchID touchId;
SDL_GestureID gestureId;
Uint32 numFingers;
float error;
} SDL_DollarGestureEvent;
typedef struct SDL_DropEvent
{
Uint32 type;
Uint32 timestamp;
char *file;
} SDL_DropEvent;
typedef struct SDL_QuitEvent
{
Uint32 type;
Uint32 timestamp;
} SDL_QuitEvent;
typedef struct SDL_UserEvent
{
Uint32 type;
Uint32 timestamp;
Uint32 windowID;
int code;
void *data1;
void *data2;
} SDL_UserEvent;
struct SDL_SysWMmsg;
typedef struct SDL_SysWMmsg SDL_SysWMmsg;
typedef struct SDL_SysWMEvent
{
Uint32 type;
Uint32 timestamp;
SDL_SysWMmsg *msg;
} SDL_SysWMEvent;
typedef union SDL_Event
{
Uint32 type;
SDL_WindowEvent window;
SDL_KeyboardEvent key;
SDL_TextEditingEvent edit;
SDL_TextInputEvent text;
SDL_MouseMotionEvent motion;
SDL_MouseButtonEvent button;
SDL_MouseWheelEvent wheel;
SDL_JoyAxisEvent jaxis;
SDL_JoyBallEvent jball;
SDL_JoyHatEvent jhat;
SDL_JoyButtonEvent jbutton;
SDL_QuitEvent quit;
SDL_UserEvent user;
SDL_SysWMEvent syswm;
SDL_TouchFingerEvent tfinger;
SDL_TouchButtonEvent tbutton;
SDL_MultiGestureEvent mgesture;
SDL_DollarGestureEvent dgesture;
SDL_DropEvent drop;
} SDL_Event;
extern void SDL_PumpEvents(void);
typedef enum
{
SDL_ADDEVENT,
SDL_PEEKEVENT,
SDL_GETEVENT
} SDL_eventaction;
extern int SDL_PeepEvents(SDL_Event * events, int numevents,
SDL_eventaction action,
Uint32 minType, Uint32 maxType);
extern SDL_bool SDL_HasEvent(Uint32 type);
extern SDL_bool SDL_HasEvents(Uint32 minType, Uint32 maxType);
extern void SDL_FlushEvent(Uint32 type);
extern void SDL_FlushEvents(Uint32 minType, Uint32 maxType);
extern int SDL_PollEvent(SDL_Event * event);
extern int SDL_WaitEvent(SDL_Event * event);
extern int SDL_WaitEventTimeout(SDL_Event * event,
int timeout);
extern int SDL_PushEvent(SDL_Event * event);
typedef int ( * SDL_EventFilter) (void *userdata, SDL_Event * event);
extern void SDL_SetEventFilter(SDL_EventFilter filter,
void *userdata);
extern SDL_bool SDL_GetEventFilter(SDL_EventFilter * filter,
void **userdata);
extern void SDL_AddEventWatch(SDL_EventFilter filter,
void *userdata);
extern void SDL_DelEventWatch(SDL_EventFilter filter,
void *userdata);
extern void SDL_FilterEvents(SDL_EventFilter filter,
void *userdata);
#define SDL_QUERY ...
#define SDL_IGNORE ...
#define SDL_DISABLE ...
#define SDL_ENABLE ...
extern Uint8 SDL_EventState(Uint32 type, int state);
extern Uint32 SDL_RegisterEvents(int numevents);
#define SDL_INIT_TIMER ...
#define SDL_INIT_AUDIO ...
#define SDL_INIT_VIDEO ...
#define SDL_INIT_JOYSTICK ...
#define SDL_INIT_HAPTIC ...
#define SDL_INIT_NOPARACHUTE ...
#define SDL_INIT_EVERYTHING ...
extern int SDL_Init(Uint32 flags);
extern int SDL_InitSubSystem(Uint32 flags);
extern void SDL_QuitSubSystem(Uint32 flags);
extern Uint32 SDL_WasInit(Uint32 flags);
extern void SDL_Quit(void);

""")

SDL_JoystickGetAxis = guard(lookup('SDL_JoystickGetAxis'))
SDL_SetWindowTitle = guard(lookup('SDL_SetWindowTitle'))
SDL_SetSurfaceRLE = guard(lookup('SDL_SetSurfaceRLE'))
KMOD_LALT = 256
SDL_WINDOWEVENT_NONE = 0
SDL_HAT_CENTERED = 0
SDL_UnionRect = guard(lookup('SDL_UnionRect'))
SDL_JoystickNumBalls = guard(lookup('SDL_JoystickNumBalls'))
SDL_SCANCODE_KP_PERCENT = 196
_SDL_GetMouseState = guard(lookup('SDL_GetMouseState'))
SDL_KEYDOWN = 768
SDL_ShowCursor = guard(lookup('SDL_ShowCursor'))
SDL_SCANCODE_RETURN2 = 158
SDL_GL_SHARE_WITH_CURRENT_CONTEXT = 22
SDL_ClearError = lookup('SDL_ClearError')
SDL_SCANCODE_KP_6 = 94
SDL_SCANCODE_KP_HASH = 204
SDL_GL_GetSwapInterval = guard(lookup('SDL_GL_GetSwapInterval'))
SDL_JOYAXISMOTION = 1536
SDL_GetMouseFocus = guard(lookup('SDL_GetMouseFocus'))
SDL_GetCurrentVideoDriver = guard(lookup('SDL_GetCurrentVideoDriver'))
SDL_SCANCODE_COPY = 124
SDL_SCANCODE_GRAVE = 53
SDL_CreateCursor = guard(lookup('SDL_CreateCursor'))
SDL_SCANCODE_CAPSLOCK = 57
SDL_SCANCODE_PAGEDOWN = 78
SDL_GL_CreateContext = guard(lookup('SDL_GL_CreateContext'))
SDL_GetScancodeFromKey = guard(lookup('SDL_GetScancodeFromKey'))
SDL_INIT_VIDEO = 32
SDL_SCANCODE_KP_DECIMAL = 220
SDL_SetTextInputRect = guard(lookup('SDL_SetTextInputRect'))
SDL_CLIPBOARDUPDATE = 2304
SDL_INPUTWHEEL = 1283
SDL_SCANCODE_PAGEUP = 75
SDL_SCANCODE_STOP = 120
SDL_SetSurfaceBlendMode = guard(lookup('SDL_SetSurfaceBlendMode'))
SDL_GL_MULTISAMPLEBUFFERS = 13
SDL_SCANCODE_THOUSANDSSEPARATOR = 178
SDL_BUTTON_X1 = 4
SDL_BUTTON_X2 = 5
SDL_IGNORE = 0
SDL_WINDOWEVENT_MAXIMIZED = 8
SDL_JoystickIndex = guard(lookup('SDL_JoystickIndex'))
SDL_HideWindow = guard(lookup('SDL_HideWindow'))
SDL_SCANCODE_KP_LEFTPAREN = 182
SDL_UNSUPPORTED = 4
SDL_HAT_RIGHT = 2
SDL_QUERY = -1
SDL_SetWindowSize = guard(lookup('SDL_SetWindowSize'))
SDL_QUIT = 256
SDL_GetWindowTitle = guard(lookup('SDL_GetWindowTitle'))
SDL_GL_CONTEXT_FLAGS = 20
SDL_FillRect = guard(lookup('SDL_FillRect'))
SDL_WINDOWEVENT = 512
SDL_SCANCODE_EJECT = 281
SDL_GetWindowGammaRamp = guard(lookup('SDL_GetWindowGammaRamp'))
SDL_DISABLE = 0
SDL_SCANCODE_9 = 38
SDL_SCANCODE_8 = 37
SDL_HideScreenKeyboard = guard(lookup('SDL_HideScreenKeyboard'))
SDL_SCANCODE_5 = 34
SDL_SCANCODE_4 = 33
SDL_INPUTPROXIMITYOUT = 1285
SDL_SCANCODE_6 = 35
SDL_SCANCODE_1 = 30
SDL_SCANCODE_0 = 39
SDL_SCANCODE_3 = 32
SDL_SCANCODE_2 = 31
SDL_SCANCODE_M = 16
SDL_SCANCODE_L = 15
SDL_GL_ACCUM_GREEN_SIZE = 9
SDL_SCANCODE_N = 17
SDL_SCANCODE_I = 12
SDL_SCANCODE_H = 11
SDL_SCANCODE_K = 14
SDL_SCANCODE_J = 13
SDL_ShowScreenKeyboard = guard(lookup('SDL_ShowScreenKeyboard'))
SDL_SCANCODE_D = 7
SDL_SCANCODE_G = 10
SDL_SCANCODE_F = 9
SDL_SCANCODE_A = 4
SDL_WINDOW_MOUSE_FOCUS = 1024
SDL_SCANCODE_C = 6
SDL_SCANCODE_B = 5
SDL_SCANCODE_Y = 28
SDL_SetWindowDisplayMode = guard(lookup('SDL_SetWindowDisplayMode'))
SDL_MOUSEWHEEL = 1027
SDL_SCANCODE_Z = 29
SDL_SCANCODE_U = 24
SDL_SCANCODE_T = 23
SDL_SCANCODE_W = 26
SDL_SCANCODE_V = 25
SDL_SCANCODE_Q = 20
SDL_SCANCODE_P = 19
SDL_SCANCODE_S = 22
SDL_AddEventWatch = guard(lookup('SDL_AddEventWatch'))
SDL_GL_RED_SIZE = 0
SDL_Error = guard(lookup('SDL_Error'))
SDL_SCANCODE_AUDIOPLAY = 261
SDL_SCANCODE_PASTE = 125
SDL_GetWindowDisplayMode = guard(lookup('SDL_GetWindowDisplayMode'))
SDL_FreeRW = guard(lookup('SDL_FreeRW'))
SDL_BUTTON_RIGHT = 3
SDL_ConvertSurface = guard(lookup('SDL_ConvertSurface'))
SDL_ReadLE32 = guard(lookup('SDL_ReadLE32'))
SDL_WINDOW_INPUT_GRABBED = 256
SDL_GetPixelFormatName = guard(lookup('SDL_GetPixelFormatName'))
SDL_CreateRGBSurfaceFrom = guard(lookup('SDL_CreateRGBSurfaceFrom'))
SDL_SCANCODE_COMMA = 54
SDL_StartTextInput = guard(lookup('SDL_StartTextInput'))
SDL_LockSurface = guard(lookup('SDL_LockSurface'))
SDL_SCANCODE_NUMLOCKCLEAR = 83
SDL_JOYBUTTONDOWN = 1539
SDL_SCANCODE_MINUS = 45
SDL_BUTTON_RMASK = 4
SDL_JoystickGetBall = guard(lookup('SDL_JoystickGetBall'))
SDL_ENOMEM = 0
SDL_GetScancodeName = guard(lookup('SDL_GetScancodeName'))
SDL_GetColorKey = guard(lookup('SDL_GetColorKey'))
_SDL_GetError = lookup('SDL_GetError')
SDL_UpperBlitScaled = guard(lookup('SDL_UpperBlitScaled'))
SDL_SetWindowGrab = guard(lookup('SDL_SetWindowGrab'))
SDL_SCANCODE_KP_SPACE = 205
SDL_EFSEEK = 3
SDL_EnableScreenSaver = guard(lookup('SDL_EnableScreenSaver'))
SDL_GetNumVideoDisplays = guard(lookup('SDL_GetNumVideoDisplays'))
SDL_SCANCODE_KP_MEMCLEAR = 210
SDL_WINDOW_RESIZABLE = 32
SDL_GetKeyboardFocus = guard(lookup('SDL_GetKeyboardFocus'))
SDL_WINDOWPOS_CENTERED = 805240832
SDL_SCANCODE_AC_STOP = 272
SDL_LoadBMP_RW = guard(lookup('SDL_LoadBMP_RW'))
SDL_SCANCODE_KP_VERTICALBAR = 201
SDL_SCANCODE_KP_PERIOD = 99
SDL_TEXTEDITINGEVENT_TEXT_SIZE = 32
SDL_HasEvents = guard(lookup('SDL_HasEvents'))
SDL_GetScancodeFromName = guard(lookup('SDL_GetScancodeFromName'))
SDL_FALSE = 0
SDL_WINDOW_MINIMIZED = 64
SDL_SoftStretch = guard(lookup('SDL_SoftStretch'))
SDL_WINDOW_FOREIGN = 2048
SDL_MOUSEBUTTONUP = 1026
SDL_SCANCODE_R = 21
SDL_UpperBlit = guard(lookup('SDL_UpperBlit'))
SDL_SCANCODE_AC_FORWARD = 271
SDL_WriteLE16 = guard(lookup('SDL_WriteLE16'))
SDL_RLEACCEL = 2
SDL_SCANCODE_KP_BACKSPACE = 187
SDL_GL_CONTEXT_MAJOR_VERSION = 17
SDL_SCANCODE_LEFT = 80
SDL_IsScreenKeyboardShown = guard(lookup('SDL_IsScreenKeyboardShown'))
SDL_HasScreenKeyboardSupport = guard(lookup('SDL_HasScreenKeyboardSupport'))
SDL_ConvertPixels = guard(lookup('SDL_ConvertPixels'))
SDL_FreePalette = guard(lookup('SDL_FreePalette'))
SDL_AllocPalette = guard(lookup('SDL_AllocPalette'))
SDL_SCANCODE_KP_DBLAMPERSAND = 200
SDL_INIT_HAPTIC = 4096
SDL_SCANCODE_PERIOD = 55
SDL_SCANCODE_LEFTBRACKET = 47
SDL_SCANCODE_AGAIN = 121
SDL_SCANCODE_PRINTSCREEN = 70
SDL_EFWRITE = 2
SDL_SCANCODE_KP_MEMRECALL = 209
SDL_SCANCODE_COMPUTER = 267
SDL_HAT_RIGHTUP = 3
SDL_RWFromMem = guard(lookup('SDL_RWFromMem'))
SDL_LowerBlitScaled = guard(lookup('SDL_LowerBlitScaled'))
SDL_WINDOW_MAXIMIZED = 128
SDL_JOYBALLMOTION = 1537
SDL_JoystickNumHats = guard(lookup('SDL_JoystickNumHats'))
SDL_JoystickOpened = guard(lookup('SDL_JoystickOpened'))
SDL_SCANCODE_AC_REFRESH = 273
SDL_JoystickOpen = guard(lookup('SDL_JoystickOpen'))
SDL_MasksToPixelFormatEnum = guard(lookup('SDL_MasksToPixelFormatEnum'))
SDL_PumpEvents = guard(lookup('SDL_PumpEvents'))
SDL_GETEVENT = 2
SDL_SCANCODE_CALCULATOR = 266
SDL_SetPixelFormatPalette = guard(lookup('SDL_SetPixelFormatPalette'))
SDL_GetWindowData = guard(lookup('SDL_GetWindowData'))
SDL_SCANCODE_KP_COLON = 203
KMOD_CAPS = 8192
SDL_GL_STEREO = 12
SDL_WINDOW_INPUT_FOCUS = 512
SDL_SCANCODE_KP_HEXADECIMAL = 221
SDL_HAT_DOWN = 4
SDL_BLENDMODE_BLEND = 1
SDL_SCANCODE_RCTRL = 228
SDL_ReadLE64 = guard(lookup('SDL_ReadLE64'))
SDL_GL_SetAttribute = guard(lookup('SDL_GL_SetAttribute'))
SDL_WINDOWEVENT_SIZE_CHANGED = 6
SDL_PEEKEVENT = 1
SDL_SCANCODE_F24 = 115
SDL_SCANCODE_F23 = 114
SDL_SCANCODE_F22 = 113
SDL_SCANCODE_F21 = 112
SDL_SCANCODE_F20 = 111
SDL_SCANCODE_LALT = 226
SDL_SCANCODE_HELP = 117
SDL_FreeCursor = guard(lookup('SDL_FreeCursor'))
SDL_INPUTPROXIMITYIN = 1284
SDL_SCANCODE_ESCAPE = 41
SDL_HasEvent = guard(lookup('SDL_HasEvent'))
SDL_SCANCODE_RETURN = 40
SDL_BLENDMODE_MOD = 4
SDL_FreeFormat = guard(lookup('SDL_FreeFormat'))
SDL_GetTouch = guard(lookup('SDL_GetTouch'))
SDL_SCANCODE_FIND = 126
SDL_SetColorKey = guard(lookup('SDL_SetColorKey'))
SDL_GL_ACCUM_ALPHA_SIZE = 11
SDL_RWFromFile = guard(lookup('SDL_RWFromFile'))
SDL_SCANCODE_NONUSBACKSLASH = 100
SDL_GetRelativeMouseState = guard(lookup('SDL_GetRelativeMouseState'))
SDL_SetModState = guard(lookup('SDL_SetModState'))
SDL_GetKeyboardState = guard(lookup('SDL_GetKeyboardState'))
SDL_GetWindowID = guard(lookup('SDL_GetWindowID'))
KMOD_NUM = 4096
SDL_SCANCODE_KP_4 = 92
SDL_SCANCODE_KP_5 = 93
SDL_SetEventFilter = guard(lookup('SDL_SetEventFilter'))
SDL_SCANCODE_KP_7 = 95
SDL_SCANCODE_KP_0 = 98
SDL_SCANCODE_KP_1 = 89
SDL_SCANCODE_KP_2 = 90
SDL_SCANCODE_KP_3 = 91
SDL_VideoQuit = guard(lookup('SDL_VideoQuit'))
SDL_SCANCODE_KP_8 = 96
SDL_SCANCODE_KP_9 = 97
SDL_SCANCODE_SLASH = 56
SDL_SCANCODE_KP_D = 191
SDL_SCANCODE_KP_E = 192
SDL_SCANCODE_KP_F = 193
SDL_SCANCODE_KP_A = 188
SDL_SCANCODE_KP_B = 189
SDL_SCANCODE_KP_C = 190
KMOD_SHIFT = 3
SDL_GL_CONTEXT_PROFILE_MASK = 21
SDL_INPUTMOTION = 1280
SDL_SCANCODE_SELECT = 119
SDL_GL_CONTEXT_PROFILE_COMPATIBILITY = 2
SDL_GL_GREEN_SIZE = 1
SDL_WINDOWEVENT_CLOSE = 14
SDL_ShowWindow = guard(lookup('SDL_ShowWindow'))
SDL_GL_CONTEXT_EGL = 19
KMOD_RESERVED = 32768
SDL_GetClipRect = guard(lookup('SDL_GetClipRect'))
SDL_SCANCODE_SPACE = 44
SDL_WriteBE16 = guard(lookup('SDL_WriteBE16'))
SDL_SCANCODE_KP_MEMADD = 211
RW_SEEK_SET = 0
SDL_INIT_TIMER = 1
SDL_ReadBE16 = guard(lookup('SDL_ReadBE16'))
SDL_GetNumVideoDrivers = guard(lookup('SDL_GetNumVideoDrivers'))
SDL_SetSurfacePalette = guard(lookup('SDL_SetSurfacePalette'))
SDL_WINDOWEVENT_FOCUS_LOST = 13
SDL_GetWindowBrightness = guard(lookup('SDL_GetWindowBrightness'))
SDL_SCANCODE_KP_00 = 176
SDL_PREALLOC = 1
SDL_EventState = guard(lookup('SDL_EventState'))
SDL_GetNumDisplayModes = guard(lookup('SDL_GetNumDisplayModes'))
SDL_MULTIGESTURE = 2050
KMOD_ALT = 768
SDL_SCANCODE_KP_ENTER = 88
SDL_SaveDollarTemplate = guard(lookup('SDL_SaveDollarTemplate'))
SDL_SCANCODE_KP_CLEARENTRY = 217
SDL_GetRelativeMouseMode = guard(lookup('SDL_GetRelativeMouseMode'))
SDL_ALPHA_OPAQUE = 255
KMOD_NONE = 0
SDL_SCANCODE_SEPARATOR = 159
SDL_GetSurfaceBlendMode = guard(lookup('SDL_GetSurfaceBlendMode'))
SDL_MinimizeWindow = guard(lookup('SDL_MinimizeWindow'))
SDL_SetWindowPosition = guard(lookup('SDL_SetWindowPosition'))
SDL_GL_SetSwapInterval = guard(lookup('SDL_GL_SetSwapInterval'))
KMOD_RSHIFT = 2
SDL_SCANCODE_TAB = 43
SDL_GetSurfaceColorMod = guard(lookup('SDL_GetSurfaceColorMod'))
SDL_CreateWindowFrom = guard(lookup('SDL_CreateWindowFrom'))
SDL_WINDOW_HIDDEN = 8
SDL_RecordGesture = guard(lookup('SDL_RecordGesture'))
SDL_PushEvent = guard(lookup('SDL_PushEvent'))
SDL_Quit = lookup('SDL_Quit')
SDL_INIT_EVERYTHING = 65535
SDL_MapRGB = guard(lookup('SDL_MapRGB'))
SDL_GetWindowGrab = guard(lookup('SDL_GetWindowGrab'))
SDL_SCANCODE_RALT = 230
SDL_IntersectRectAndLine = guard(lookup('SDL_IntersectRectAndLine'))
SDL_SCANCODE_F12 = 69
SDL_GetKeyName = guard(lookup('SDL_GetKeyName'))
SDL_SCANCODE_MEDIASELECT = 263
SDL_WINDOWEVENT_FOCUS_GAINED = 12
KMOD_LGUI = 1024
SDL_SCANCODE_F11 = 68
SDL_ConvertSurfaceFormat = guard(lookup('SDL_ConvertSurfaceFormat'))
SDL_RWFromFP = guard(lookup('SDL_RWFromFP'))
SDL_DisableScreenSaver = guard(lookup('SDL_DisableScreenSaver'))
SDL_SCANCODE_CURRENCYSUBUNIT = 181
KMOD_GUI = 3072
SDL_WINDOWEVENT_RESTORED = 9
SDL_GetModState = guard(lookup('SDL_GetModState'))
SDL_SCANCODE_PAUSE = 72
SDL_CreateRGBSurface = guard(lookup('SDL_CreateRGBSurface'))
SDL_MOUSEMOTION = 1024
SDL_GL_DeleteContext = guard(lookup('SDL_GL_DeleteContext'))
SDL_GL_BUFFER_SIZE = 4
SDL_WINDOW_SHOWN = 4
SDL_PixelFormatEnumToMasks = guard(lookup('SDL_PixelFormatEnumToMasks'))
SDL_GetVideoDriver = guard(lookup('SDL_GetVideoDriver'))
SDL_SetRelativeMouseMode = guard(lookup('SDL_SetRelativeMouseMode'))
SDL_SCANCODE_AC_SEARCH = 268
SDL_TOUCHBUTTONUP = 1796
SDL_GetDesktopDisplayMode = guard(lookup('SDL_GetDesktopDisplayMode'))
SDL_GL_DEPTH_SIZE = 6
KMOD_MODE = 16384
SDL_FINGERUP = 1793
SDL_FreeSurface = guard(lookup('SDL_FreeSurface'))
SDL_SCANCODE_KP_XOR = 194
SDL_GetDisplayMode = guard(lookup('SDL_GetDisplayMode'))
SDL_GL_ACCUM_BLUE_SIZE = 10
SDL_JoystickUpdate = guard(lookup('SDL_JoystickUpdate'))
SDL_SCANCODE_BACKSPACE = 42
SDL_SCANCODE_HOME = 74
SDL_WaitEvent = guard(lookup('SDL_WaitEvent'))
SDL_TEXTEDITING = 770
SDL_FillRects = guard(lookup('SDL_FillRects'))
SDL_ReadBE32 = guard(lookup('SDL_ReadBE32'))
SDL_JoystickGetButton = guard(lookup('SDL_JoystickGetButton'))
SDL_SCANCODE_KP_MEMSUBTRACT = 212
KMOD_RALT = 512
SDL_WarpMouseInWindow = guard(lookup('SDL_WarpMouseInWindow'))
SDL_GL_DOUBLEBUFFER = 5
SDL_SCANCODE_KP_MULTIPLY = 85
SDL_GL_GetProcAddress = guard(lookup('SDL_GL_GetProcAddress'))
KMOD_LCTRL = 64
SDL_FIRSTEVENT = 0
SDL_SCANCODE_KP_MEMDIVIDE = 214
SDL_SCANCODE_MAIL = 265
SDL_GL_MakeCurrent = guard(lookup('SDL_GL_MakeCurrent'))
RW_SEEK_CUR = 1
SDL_BUTTON_X2MASK = 16
SDL_GL_BLUE_SIZE = 2
SDL_SetWindowData = guard(lookup('SDL_SetWindowData'))
SDL_GetWindowDisplay = guard(lookup('SDL_GetWindowDisplay'))
SDL_NumJoysticks = guard(lookup('SDL_NumJoysticks'))
SDL_WINDOWEVENT_HIDDEN = 2
SDL_GL_CONTEXT_ROBUST_ACCESS_FLAG = 4
SDL_SCANCODE_AC_BACK = 270
SDL_GetWindowFromID = guard(lookup('SDL_GetWindowFromID'))
SDL_SCANCODE_BRIGHTNESSUP = 276
SDL_SCANCODE_AC_HOME = 269
SDL_HAT_UP = 1
SDL_SCANCODE_7 = 36
SDL_RegisterEvents = guard(lookup('SDL_RegisterEvents'))
SDL_AllocFormat = guard(lookup('SDL_AllocFormat'))
SDL_SCANCODE_MUTE = 127
SDL_SaveAllDollarTemplates = guard(lookup('SDL_SaveAllDollarTemplates'))
SDL_BUTTON_LMASK = 1
SDL_GetWindowPixelFormat = guard(lookup('SDL_GetWindowPixelFormat'))
SDL_RWFromConstMem = guard(lookup('SDL_RWFromConstMem'))
SDL_RestoreWindow = guard(lookup('SDL_RestoreWindow'))
SDL_SCANCODE_KP_BINARY = 218
SDL_ReadLE16 = guard(lookup('SDL_ReadLE16'))
SDL_INIT_NOPARACHUTE = 1048576
SDL_JoystickClose = guard(lookup('SDL_JoystickClose'))
SDL_SCANCODE_F18 = 109
SDL_SCANCODE_CURRENCYUNIT = 180
SDL_SCANCODE_UP = 82
SDL_SetCursor = guard(lookup('SDL_SetCursor'))
SDL_SCANCODE_KP_TAB = 186
SDL_SCANCODE_VOLUMEDOWN = 129
SDL_SCANCODE_F13 = 104
SDL_SCANCODE_F10 = 67
SDL_PRESSED = 1
SDL_SCANCODE_F16 = 107
SDL_SCANCODE_F17 = 108
SDL_SCANCODE_F14 = 105
SDL_SCANCODE_F15 = 106
SDL_SCANCODE_DECIMALSEPARATOR = 179
SDL_GetWindowFlags = guard(lookup('SDL_GetWindowFlags'))
SDL_ENABLE = 1
SDL_SCANCODE_E = 8
SDL_GL_CONTEXT_MINOR_VERSION = 18
SDL_WriteLE32 = guard(lookup('SDL_WriteLE32'))
SDL_SCANCODE_PRIOR = 157
SDL_LowerBlit = guard(lookup('SDL_LowerBlit'))
SDL_SCANCODE_KP_RIGHTPAREN = 183
SDL_WINDOWPOS_UNDEFINED_MASK = 536805376
SDL_SCANCODE_UNKNOWN = 0
SDL_SWSURFACE = 0
SDL_SCANCODE_LGUI = 227
SDL_SCANCODE_LANG9 = 152
SDL_SCANCODE_LANG8 = 151
SDL_GetWindowPosition = guard(lookup('SDL_GetWindowPosition'))
SDL_SCANCODE_CANCEL = 155
SDL_JoystickGetHat = guard(lookup('SDL_JoystickGetHat'))
SDL_SCANCODE_BRIGHTNESSDOWN = 275
SDL_SCANCODE_LANG1 = 144
SDL_GetRGB = guard(lookup('SDL_GetRGB'))
SDL_SCANCODE_LANG3 = 146
SDL_SCANCODE_LANG2 = 145
SDL_SCANCODE_LANG5 = 148
SDL_WINDOW_OPENGL = 2
SDL_SCANCODE_LANG7 = 150
SDL_SCANCODE_LANG6 = 149
SDL_SCANCODE_EXSEL = 164
SDL_SCANCODE_SEMICOLON = 51
SDL_SCANCODE_X = 27
SDL_INPUTBUTTONUP = 1282
SDL_SCANCODE_APPLICATION = 101
SDL_GL_GetAttribute = guard(lookup('SDL_GL_GetAttribute'))
SDL_SetWindowGammaRamp = guard(lookup('SDL_SetWindowGammaRamp'))
SDL_SetWindowIcon = guard(lookup('SDL_SetWindowIcon'))
SDL_GetKeyFromScancode = guard(lookup('SDL_GetKeyFromScancode'))
SDL_GetRGBA = guard(lookup('SDL_GetRGBA'))
SDL_UnlockSurface = guard(lookup('SDL_UnlockSurface'))
SDL_FlushEvents = guard(lookup('SDL_FlushEvents'))
SDL_BlitSurface = 140232686646512
SDL_SCANCODE_KP_RIGHTBRACE = 185
SDL_BLENDMODE_NONE = 0
SDL_SetWindowFullscreen = guard(lookup('SDL_SetWindowFullscreen'))
SDL_SCANCODE_KP_MEMMULTIPLY = 213
SDL_WINDOWEVENT_MINIMIZED = 7
SDL_SCANCODE_CUT = 123
SDL_HAT_LEFT = 8
KMOD_RGUI = 2048
SDL_SCANCODE_INSERT = 73
SDL_SCANCODE_LCTRL = 224
SDL_SCANCODE_VOLUMEUP = 128
SDL_SCANCODE_BACKSLASH = 49
SDL_ReadBE64 = guard(lookup('SDL_ReadBE64'))
SDL_DONTFREE = 4
SDL_SCANCODE_CLEARAGAIN = 162
SDL_SCANCODE_AUDIOMUTE = 262
SDL_LoadDollarTemplates = guard(lookup('SDL_LoadDollarTemplates'))
SDL_GetCursor = guard(lookup('SDL_GetCursor'))
SDL_SCANCODE_DISPLAYSWITCH = 277
SDL_SCANCODE_KP_DIVIDE = 84
SDL_SaveBMP_RW = guard(lookup('SDL_SaveBMP_RW'))
SDL_SCANCODE_RSHIFT = 229
SDL_TOUCHBUTTONDOWN = 1795
SDL_QuitSubSystem = guard(lookup('SDL_QuitSubSystem'))
SDL_WINDOWPOS_UNDEFINED = 536805376
SDL_VideoInit = guard(lookup('SDL_VideoInit'))
SDL_SCANCODE_KP_LESS = 197
SDL_SCANCODE_LANG4 = 147
SDL_DOLLARGESTURE = 2048
SDL_NUM_SCANCODES = 512
SDL_GetDisplayBounds = guard(lookup('SDL_GetDisplayBounds'))
SDL_SCANCODE_DOWN = 81
SDL_SCANCODE_OUT = 160
SDL_BUTTON_MMASK = 2
SDL_DOLLARRECORD = 2049
SDL_BUTTON_X1MASK = 8
SDL_USEREVENT = 32768
SDL_SCANCODE_SCROLLLOCK = 71
SDL_SCANCODE_F1 = 58
SDL_SCANCODE_F2 = 59
SDL_SCANCODE_F3 = 60
SDL_SCANCODE_F4 = 61
SDL_SCANCODE_F5 = 62
SDL_SCANCODE_F6 = 63
SDL_SCANCODE_F7 = 64
SDL_SCANCODE_F8 = 65
SDL_SCANCODE_F9 = 66
SDL_INPUTBUTTONDOWN = 1281
SDL_RELEASED = 0
KMOD_LSHIFT = 1
SDL_HAT_LEFTUP = 9
SDL_FilterEvents = guard(lookup('SDL_FilterEvents'))
SDL_ALPHA_TRANSPARENT = 0
SDL_BUTTON_MIDDLE = 2
SDL_DelEventWatch = guard(lookup('SDL_DelEventWatch'))
SDL_SCANCODE_KP_OCTAL = 219
SDL_SetSurfaceAlphaMod = guard(lookup('SDL_SetSurfaceAlphaMod'))
SDL_SCANCODE_AUDIONEXT = 258
SDL_BLENDMODE_ADD = 2
SDL_SCANCODE_KP_EXCLAM = 207
SDL_MOUSEBUTTONDOWN = 1025
SDL_SCANCODE_MODE = 257
SDL_KEYUP = 769
SDL_SCANCODE_WWW = 264
SDL_SCANCODE_KP_MINUS = 86
SDL_SCANCODE_KBDILLUMTOGGLE = 278
SDL_WaitEventTimeout = guard(lookup('SDL_WaitEventTimeout'))
SDL_SetWindowBrightness = guard(lookup('SDL_SetWindowBrightness'))
SDL_SCANCODE_EQUALS = 46
SDL_WINDOWEVENT_MOVED = 4
SDL_SCANCODE_KP_PLUSMINUS = 215
SDL_TEXTINPUTEVENT_TEXT_SIZE = 32
SDL_HAT_RIGHTDOWN = 6
SDL_UpdateWindowSurface = guard(lookup('SDL_UpdateWindowSurface'))
SDL_SCANCODE_EXECUTE = 116
SDL_GL_MULTISAMPLESAMPLES = 14
SDLK_SCANCODE_MASK = 1073741824
SDL_WriteBE64 = guard(lookup('SDL_WriteBE64'))
SDL_SetSurfaceColorMod = guard(lookup('SDL_SetSurfaceColorMod'))
SDL_SCANCODE_DELETE = 76
SDL_WasInit = guard(lookup('SDL_WasInit'))
SDL_SCANCODE_O = 18
SDL_EFREAD = 1
SDL_SCANCODE_KP_PLUS = 87
SDL_SCANCODE_RIGHTBRACKET = 48
SDL_SetClipRect = guard(lookup('SDL_SetClipRect'))
SDL_SetError = guard(lookup('SDL_SetError'))
SDL_IsScreenSaverEnabled = guard(lookup('SDL_IsScreenSaverEnabled'))
SDL_SYSWMEVENT = 513
SDL_RaiseWindow = guard(lookup('SDL_RaiseWindow'))
RW_SEEK_END = 2
SDL_WINDOWEVENT_RESIZED = 5
SDL_JoystickName = guard(lookup('SDL_JoystickName'))
SDL_GetWindowSurface = guard(lookup('SDL_GetWindowSurface'))
SDL_SCANCODE_OPER = 161
SDL_FINGERMOTION = 1794
SDL_SCANCODE_POWER = 102
SDL_ToggleScreenKeyboard = guard(lookup('SDL_ToggleScreenKeyboard'))
SDL_GL_ACCUM_RED_SIZE = 8
SDL_IntersectRect = guard(lookup('SDL_IntersectRect'))
SDL_JoystickNumAxes = guard(lookup('SDL_JoystickNumAxes'))
SDL_DestroyWindow = guard(lookup('SDL_DestroyWindow'))
SDL_UpdateWindowSurfaceRects = guard(lookup('SDL_UpdateWindowSurfaceRects'))
SDL_WINDOWEVENT_ENTER = 10
SDL_SCANCODE_CLEAR = 156
SDL_SCANCODE_AUDIOPREV = 259
SDL_FINGERDOWN = 1792
SDL_INIT_JOYSTICK = 512
SDL_EnclosePoints = guard(lookup('SDL_EnclosePoints'))
SDL_PeepEvents = guard(lookup('SDL_PeepEvents'))
SDL_SCANCODE_KP_AMPERSAND = 199
SDL_SCANCODE_UNDO = 122
SDL_BlitScaled = 140232686647280
SDL_SCANCODE_SLEEP = 282
SDL_SCANCODE_CRSEL = 163
SDL_LASTEVENT = 65535
SDL_SCANCODE_KP_GREATER = 198
SDL_SCANCODE_KBDILLUMUP = 280
SDL_HAT_LEFTDOWN = 12
SDL_SCANCODE_KP_COMMA = 133
SDL_GetEventFilter = guard(lookup('SDL_GetEventFilter'))
SDL_SCANCODE_KP_DBLVERTICALBAR = 202
SDL_SCANCODE_RIGHT = 79
SDL_LASTERROR = 5
_SDL_Init = lookup('SDL_Init')
SDL_GL_STENCIL_SIZE = 7
SDL_SCANCODE_KP_LEFTBRACE = 184
SDL_SCANCODE_APOSTROPHE = 52
SDL_GL_ExtensionSupported = guard(lookup('SDL_GL_ExtensionSupported'))
SDL_SCANCODE_AC_BOOKMARKS = 274
SDL_GL_RETAINED_BACKING = 16
SDL_JoystickEventState = guard(lookup('SDL_JoystickEventState'))
SDL_JOYHATMOTION = 1538
SDL_GL_UnloadLibrary = guard(lookup('SDL_GL_UnloadLibrary'))
SDL_JOYBUTTONUP = 1540
SDL_SCANCODE_INTERNATIONAL5 = 139
SDL_JoystickNumButtons = guard(lookup('SDL_JoystickNumButtons'))
SDL_SetPaletteColors = guard(lookup('SDL_SetPaletteColors'))
SDL_SCANCODE_RGUI = 231
SDL_INIT_AUDIO = 16
SDL_SCANCODE_MENU = 118
SDL_TEXTINPUT = 771
SDL_GL_LoadLibrary = guard(lookup('SDL_GL_LoadLibrary'))
_SDL_PollEvent = guard(lookup('SDL_PollEvent'))
SDL_SCANCODE_KBDILLUMDOWN = 279
SDL_SCANCODE_KP_EQUALS = 103
SDL_GL_CONTEXT_FORWARD_COMPATIBLE_FLAG = 2
SDL_GetClosestDisplayMode = guard(lookup('SDL_GetClosestDisplayMode'))
SDL_InitSubSystem = guard(lookup('SDL_InitSubSystem'))
KMOD_CTRL = 192
SDL_CreateColorCursor = guard(lookup('SDL_CreateColorCursor'))
SDL_SCANCODE_KP_000 = 177
SDL_GetSurfaceAlphaMod = guard(lookup('SDL_GetSurfaceAlphaMod'))
_SDL_GetWindowSize = guard(lookup('SDL_GetWindowSize'))
SDL_SCANCODE_KP_MEMSTORE = 208
SDL_WINDOWEVENT_SHOWN = 1
SDL_StopTextInput = guard(lookup('SDL_StopTextInput'))
SDL_BUTTON_LEFT = 1
SDL_SCANCODE_LSHIFT = 225
SDL_GL_ACCELERATED_VISUAL = 15
SDL_DROPFILE = 4096
SDL_GetCurrentDisplayMode = guard(lookup('SDL_GetCurrentDisplayMode'))
SDL_WINDOW_FULLSCREEN = 1
SDL_SCANCODE_KP_AT = 206
SDL_SCANCODE_NONUSHASH = 50
SDL_SCANCODE_KP_CLEAR = 216
SDL_HasIntersection = guard(lookup('SDL_HasIntersection'))
SDL_GL_ALPHA_SIZE = 3
SDL_GetKeyFromName = guard(lookup('SDL_GetKeyFromName'))
SDL_SCANCODE_END = 77
SDL_SCANCODE_SYSREQ = 154
SDL_WriteBE32 = guard(lookup('SDL_WriteBE32'))
SDL_WINDOWEVENT_EXPOSED = 3
SDL_CalculateGammaRamp = guard(lookup('SDL_CalculateGammaRamp'))
SDL_GL_SwapWindow = guard(lookup('SDL_GL_SwapWindow'))
SDL_SCANCODE_KP_POWER = 195
SDL_GetFinger = guard(lookup('SDL_GetFinger'))
KMOD_RCTRL = 128
SDL_ADDEVENT = 0
SDL_GL_CONTEXT_PROFILE_CORE = 1
SDL_SCANCODE_AUDIOSTOP = 260
SDL_GL_CONTEXT_DEBUG_FLAG = 1
SDL_WINDOWEVENT_LEAVE = 11
SDL_MapRGBA = guard(lookup('SDL_MapRGBA'))
SDL_SCANCODE_ALTERASE = 153
SDL_FlushEvent = guard(lookup('SDL_FlushEvent'))
SDL_WINDOW_BORDERLESS = 16
SDL_GL_CONTEXT_RESET_ISOLATION_FLAG = 8
SDL_WINDOWPOS_CENTERED_MASK = 805240832
SDL_AllocRW = guard(lookup('SDL_AllocRW'))
SDL_SCANCODE_INTERNATIONAL2 = 136
SDL_SCANCODE_INTERNATIONAL3 = 137
SDL_SCANCODE_INTERNATIONAL1 = 135
SDL_SCANCODE_INTERNATIONAL6 = 140
SDL_SCANCODE_INTERNATIONAL7 = 141
SDL_SCANCODE_INTERNATIONAL4 = 138
SDL_CreateWindow = guard(lookup('SDL_CreateWindow'))
SDL_GL_CONTEXT_PROFILE_ES = 4
SDL_SCANCODE_INTERNATIONAL8 = 142
SDL_SCANCODE_INTERNATIONAL9 = 143
SDL_SCANCODE_F19 = 110
SDL_MaximizeWindow = guard(lookup('SDL_MaximizeWindow'))
SDL_TRUE = 1
SDL_SCANCODE_KP_EQUALSAS400 = 134
SDL_WriteLE64 = guard(lookup('SDL_WriteLE64'))