sdl3-sys 0.6.3+SDL-3.4.4

Low level Rust bindings for SDL 3
Documentation
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
//! Metadata for items in the `crate::gamepad` module

use super::*;

pub const METADATA_SDL_PROP_GAMEPAD_CAP_MONO_LED_BOOLEAN: Property = Property {
    module: "gamepad",
    name: "SDL_PROP_GAMEPAD_CAP_MONO_LED_BOOLEAN",
    short_name: "GAMEPAD_CAP_MONO_LED_BOOLEAN",
    value: crate::gamepad::SDL_PROP_GAMEPAD_CAP_MONO_LED_BOOLEAN,
    ty: PropertyType::BOOLEAN,
    doc: None,
    available_since: None,
};
pub const METADATA_SDL_PROP_GAMEPAD_CAP_RGB_LED_BOOLEAN: Property = Property {
    module: "gamepad",
    name: "SDL_PROP_GAMEPAD_CAP_RGB_LED_BOOLEAN",
    short_name: "GAMEPAD_CAP_RGB_LED_BOOLEAN",
    value: crate::gamepad::SDL_PROP_GAMEPAD_CAP_RGB_LED_BOOLEAN,
    ty: PropertyType::BOOLEAN,
    doc: None,
    available_since: None,
};
pub const METADATA_SDL_PROP_GAMEPAD_CAP_PLAYER_LED_BOOLEAN: Property = Property {
    module: "gamepad",
    name: "SDL_PROP_GAMEPAD_CAP_PLAYER_LED_BOOLEAN",
    short_name: "GAMEPAD_CAP_PLAYER_LED_BOOLEAN",
    value: crate::gamepad::SDL_PROP_GAMEPAD_CAP_PLAYER_LED_BOOLEAN,
    ty: PropertyType::BOOLEAN,
    doc: None,
    available_since: None,
};
pub const METADATA_SDL_PROP_GAMEPAD_CAP_RUMBLE_BOOLEAN: Property = Property {
    module: "gamepad",
    name: "SDL_PROP_GAMEPAD_CAP_RUMBLE_BOOLEAN",
    short_name: "GAMEPAD_CAP_RUMBLE_BOOLEAN",
    value: crate::gamepad::SDL_PROP_GAMEPAD_CAP_RUMBLE_BOOLEAN,
    ty: PropertyType::BOOLEAN,
    doc: None,
    available_since: None,
};
pub const METADATA_SDL_PROP_GAMEPAD_CAP_TRIGGER_RUMBLE_BOOLEAN: Property = Property {
    module: "gamepad",
    name: "SDL_PROP_GAMEPAD_CAP_TRIGGER_RUMBLE_BOOLEAN",
    short_name: "GAMEPAD_CAP_TRIGGER_RUMBLE_BOOLEAN",
    value: crate::gamepad::SDL_PROP_GAMEPAD_CAP_TRIGGER_RUMBLE_BOOLEAN,
    ty: PropertyType::BOOLEAN,
    doc: None,
    available_since: None,
};
pub const METADATA_SDL_GamepadType: Group = Group {
    module: "gamepad",
    kind: GroupKind::Enum,
    name: "SDL_GamepadType",
    short_name: "GamepadType",
    doc: Some(
        "Standard gamepad types.\n\nThis type does not necessarily map to first-party controllers from\nMicrosoft/Sony/Nintendo; in many cases, third-party controllers can report\nas these, either because they were designed for a specific console, or they\nsimply most closely match that console's controllers (does it have A/B/X/Y\nbuttons or X/O/Square/Triangle? Does it have a touchpad? etc).\n",
    ),
    available_since: None,
    values: &[
        GroupValue {
            name: "SDL_GAMEPAD_TYPE_UNKNOWN",
            short_name: "UNKNOWN",
            doc: None,
            available_since: None,
        },
        GroupValue {
            name: "SDL_GAMEPAD_TYPE_STANDARD",
            short_name: "STANDARD",
            doc: None,
            available_since: None,
        },
        GroupValue {
            name: "SDL_GAMEPAD_TYPE_XBOX360",
            short_name: "XBOX360",
            doc: None,
            available_since: None,
        },
        GroupValue {
            name: "SDL_GAMEPAD_TYPE_XBOXONE",
            short_name: "XBOXONE",
            doc: None,
            available_since: None,
        },
        GroupValue {
            name: "SDL_GAMEPAD_TYPE_PS3",
            short_name: "PS3",
            doc: None,
            available_since: None,
        },
        GroupValue {
            name: "SDL_GAMEPAD_TYPE_PS4",
            short_name: "PS4",
            doc: None,
            available_since: None,
        },
        GroupValue {
            name: "SDL_GAMEPAD_TYPE_PS5",
            short_name: "PS5",
            doc: None,
            available_since: None,
        },
        GroupValue {
            name: "SDL_GAMEPAD_TYPE_NINTENDO_SWITCH_PRO",
            short_name: "NINTENDO_SWITCH_PRO",
            doc: None,
            available_since: None,
        },
        GroupValue {
            name: "SDL_GAMEPAD_TYPE_NINTENDO_SWITCH_JOYCON_LEFT",
            short_name: "NINTENDO_SWITCH_JOYCON_LEFT",
            doc: None,
            available_since: None,
        },
        GroupValue {
            name: "SDL_GAMEPAD_TYPE_NINTENDO_SWITCH_JOYCON_RIGHT",
            short_name: "NINTENDO_SWITCH_JOYCON_RIGHT",
            doc: None,
            available_since: None,
        },
        GroupValue {
            name: "SDL_GAMEPAD_TYPE_NINTENDO_SWITCH_JOYCON_PAIR",
            short_name: "NINTENDO_SWITCH_JOYCON_PAIR",
            doc: None,
            available_since: None,
        },
        GroupValue {
            name: "SDL_GAMEPAD_TYPE_GAMECUBE",
            short_name: "GAMECUBE",
            doc: None,
            available_since: None,
        },
        GroupValue {
            name: "SDL_GAMEPAD_TYPE_COUNT",
            short_name: "COUNT",
            doc: None,
            available_since: None,
        },
    ],
};
pub const METADATA_SDL_GamepadButton: Group = Group {
    module: "gamepad",
    kind: GroupKind::Enum,
    name: "SDL_GamepadButton",
    short_name: "GamepadButton",
    doc: Some(
        "The list of buttons available on a gamepad\n\nFor controllers that use a diamond pattern for the face buttons, the\nsouth/east/west/north buttons below correspond to the locations in the\ndiamond pattern. For Xbox controllers, this would be A/B/X/Y, for Nintendo\nSwitch controllers, this would be B/A/Y/X, for GameCube controllers this\nwould be A/X/B/Y, for PlayStation controllers this would be\nCross/Circle/Square/Triangle.\n\nFor controllers that don't use a diamond pattern for the face buttons, the\nsouth/east/west/north buttons indicate the buttons labeled A, B, C, D, or\n1, 2, 3, 4, or for controllers that aren't labeled, they are the primary,\nsecondary, etc. buttons.\n\nThe activate action is often the south button and the cancel action is\noften the east button, but in some regions this is reversed, so your game\nshould allow remapping actions based on user preferences.\n\nYou can query the labels for the face buttons using\n[`SDL_GetGamepadButtonLabel()`]\n\n## Availability\nThis enum is available since SDL 3.2.0.\n",
    ),
    available_since: Some(SDL_VERSIONNUM(3, 2, 0)),
    values: &[
        GroupValue {
            name: "SDL_GAMEPAD_BUTTON_INVALID",
            short_name: "INVALID",
            doc: None,
            available_since: None,
        },
        GroupValue {
            name: "SDL_GAMEPAD_BUTTON_SOUTH",
            short_name: "SOUTH",
            doc: Some("Bottom face button (e.g. Xbox A button)\n"),
            available_since: None,
        },
        GroupValue {
            name: "SDL_GAMEPAD_BUTTON_EAST",
            short_name: "EAST",
            doc: Some("Right face button (e.g. Xbox B button)\n"),
            available_since: None,
        },
        GroupValue {
            name: "SDL_GAMEPAD_BUTTON_WEST",
            short_name: "WEST",
            doc: Some("Left face button (e.g. Xbox X button)\n"),
            available_since: None,
        },
        GroupValue {
            name: "SDL_GAMEPAD_BUTTON_NORTH",
            short_name: "NORTH",
            doc: Some("Top face button (e.g. Xbox Y button)\n"),
            available_since: None,
        },
        GroupValue {
            name: "SDL_GAMEPAD_BUTTON_BACK",
            short_name: "BACK",
            doc: None,
            available_since: None,
        },
        GroupValue {
            name: "SDL_GAMEPAD_BUTTON_GUIDE",
            short_name: "GUIDE",
            doc: None,
            available_since: None,
        },
        GroupValue {
            name: "SDL_GAMEPAD_BUTTON_START",
            short_name: "START",
            doc: None,
            available_since: None,
        },
        GroupValue {
            name: "SDL_GAMEPAD_BUTTON_LEFT_STICK",
            short_name: "LEFT_STICK",
            doc: None,
            available_since: None,
        },
        GroupValue {
            name: "SDL_GAMEPAD_BUTTON_RIGHT_STICK",
            short_name: "RIGHT_STICK",
            doc: None,
            available_since: None,
        },
        GroupValue {
            name: "SDL_GAMEPAD_BUTTON_LEFT_SHOULDER",
            short_name: "LEFT_SHOULDER",
            doc: None,
            available_since: None,
        },
        GroupValue {
            name: "SDL_GAMEPAD_BUTTON_RIGHT_SHOULDER",
            short_name: "RIGHT_SHOULDER",
            doc: None,
            available_since: None,
        },
        GroupValue {
            name: "SDL_GAMEPAD_BUTTON_DPAD_UP",
            short_name: "DPAD_UP",
            doc: None,
            available_since: None,
        },
        GroupValue {
            name: "SDL_GAMEPAD_BUTTON_DPAD_DOWN",
            short_name: "DPAD_DOWN",
            doc: None,
            available_since: None,
        },
        GroupValue {
            name: "SDL_GAMEPAD_BUTTON_DPAD_LEFT",
            short_name: "DPAD_LEFT",
            doc: None,
            available_since: None,
        },
        GroupValue {
            name: "SDL_GAMEPAD_BUTTON_DPAD_RIGHT",
            short_name: "DPAD_RIGHT",
            doc: None,
            available_since: None,
        },
        GroupValue {
            name: "SDL_GAMEPAD_BUTTON_MISC1",
            short_name: "MISC1",
            doc: Some(
                "Additional button (e.g. Xbox Series X share button, PS5 microphone button, Nintendo Switch Pro capture button, Amazon Luna microphone button, Google Stadia capture button)\n",
            ),
            available_since: None,
        },
        GroupValue {
            name: "SDL_GAMEPAD_BUTTON_RIGHT_PADDLE1",
            short_name: "RIGHT_PADDLE1",
            doc: Some(
                "Upper or primary paddle, under your right hand (e.g. Xbox Elite paddle P1, DualSense Edge RB button, Right Joy-Con SR button)\n",
            ),
            available_since: None,
        },
        GroupValue {
            name: "SDL_GAMEPAD_BUTTON_LEFT_PADDLE1",
            short_name: "LEFT_PADDLE1",
            doc: Some(
                "Upper or primary paddle, under your left hand (e.g. Xbox Elite paddle P3, DualSense Edge LB button, Left Joy-Con SL button)\n",
            ),
            available_since: None,
        },
        GroupValue {
            name: "SDL_GAMEPAD_BUTTON_RIGHT_PADDLE2",
            short_name: "RIGHT_PADDLE2",
            doc: Some(
                "Lower or secondary paddle, under your right hand (e.g. Xbox Elite paddle P2, DualSense Edge right Fn button, Right Joy-Con SL button)\n",
            ),
            available_since: None,
        },
        GroupValue {
            name: "SDL_GAMEPAD_BUTTON_LEFT_PADDLE2",
            short_name: "LEFT_PADDLE2",
            doc: Some(
                "Lower or secondary paddle, under your left hand (e.g. Xbox Elite paddle P4, DualSense Edge left Fn button, Left Joy-Con SR button)\n",
            ),
            available_since: None,
        },
        GroupValue {
            name: "SDL_GAMEPAD_BUTTON_TOUCHPAD",
            short_name: "TOUCHPAD",
            doc: Some("PS4/PS5 touchpad button\n"),
            available_since: None,
        },
        GroupValue {
            name: "SDL_GAMEPAD_BUTTON_MISC2",
            short_name: "MISC2",
            doc: Some("Additional button\n"),
            available_since: None,
        },
        GroupValue {
            name: "SDL_GAMEPAD_BUTTON_MISC3",
            short_name: "MISC3",
            doc: Some("Additional button (e.g. Nintendo GameCube left trigger click)\n"),
            available_since: None,
        },
        GroupValue {
            name: "SDL_GAMEPAD_BUTTON_MISC4",
            short_name: "MISC4",
            doc: Some("Additional button (e.g. Nintendo GameCube right trigger click)\n"),
            available_since: None,
        },
        GroupValue {
            name: "SDL_GAMEPAD_BUTTON_MISC5",
            short_name: "MISC5",
            doc: Some("Additional button\n"),
            available_since: None,
        },
        GroupValue {
            name: "SDL_GAMEPAD_BUTTON_MISC6",
            short_name: "MISC6",
            doc: Some("Additional button\n"),
            available_since: None,
        },
        GroupValue {
            name: "SDL_GAMEPAD_BUTTON_COUNT",
            short_name: "COUNT",
            doc: None,
            available_since: None,
        },
    ],
};
pub const METADATA_SDL_GamepadButtonLabel: Group = Group {
    module: "gamepad",
    kind: GroupKind::Enum,
    name: "SDL_GamepadButtonLabel",
    short_name: "GamepadButtonLabel",
    doc: Some(
        "The set of gamepad button labels\n\nThis isn't a complete set, just the face buttons to make it easy to show\nbutton prompts.\n\nFor a complete set, you should look at the button and gamepad type and have\na set of symbols that work well with your art style.\n\n## Availability\nThis enum is available since SDL 3.2.0.\n",
    ),
    available_since: Some(SDL_VERSIONNUM(3, 2, 0)),
    values: &[
        GroupValue {
            name: "SDL_GAMEPAD_BUTTON_LABEL_UNKNOWN",
            short_name: "UNKNOWN",
            doc: None,
            available_since: None,
        },
        GroupValue {
            name: "SDL_GAMEPAD_BUTTON_LABEL_A",
            short_name: "A",
            doc: None,
            available_since: None,
        },
        GroupValue {
            name: "SDL_GAMEPAD_BUTTON_LABEL_B",
            short_name: "B",
            doc: None,
            available_since: None,
        },
        GroupValue {
            name: "SDL_GAMEPAD_BUTTON_LABEL_X",
            short_name: "X",
            doc: None,
            available_since: None,
        },
        GroupValue {
            name: "SDL_GAMEPAD_BUTTON_LABEL_Y",
            short_name: "Y",
            doc: None,
            available_since: None,
        },
        GroupValue {
            name: "SDL_GAMEPAD_BUTTON_LABEL_CROSS",
            short_name: "CROSS",
            doc: None,
            available_since: None,
        },
        GroupValue {
            name: "SDL_GAMEPAD_BUTTON_LABEL_CIRCLE",
            short_name: "CIRCLE",
            doc: None,
            available_since: None,
        },
        GroupValue {
            name: "SDL_GAMEPAD_BUTTON_LABEL_SQUARE",
            short_name: "SQUARE",
            doc: None,
            available_since: None,
        },
        GroupValue {
            name: "SDL_GAMEPAD_BUTTON_LABEL_TRIANGLE",
            short_name: "TRIANGLE",
            doc: None,
            available_since: None,
        },
    ],
};
pub const METADATA_SDL_GamepadAxis: Group = Group {
    module: "gamepad",
    kind: GroupKind::Enum,
    name: "SDL_GamepadAxis",
    short_name: "GamepadAxis",
    doc: Some(
        "The list of axes available on a gamepad\n\nThumbstick axis values range from [`SDL_JOYSTICK_AXIS_MIN`] to\n[`SDL_JOYSTICK_AXIS_MAX`], and are centered within ~8000 of zero, though\nadvanced UI will allow users to set or autodetect the dead zone, which\nvaries between gamepads.\n\nTrigger axis values range from 0 (released) to [`SDL_JOYSTICK_AXIS_MAX`] (fully\npressed) when reported by [`SDL_GetGamepadAxis()`]. Note that this is not the\nsame range that will be reported by the lower-level [`SDL_GetJoystickAxis()`].\n\n## Availability\nThis enum is available since SDL 3.2.0.\n",
    ),
    available_since: Some(SDL_VERSIONNUM(3, 2, 0)),
    values: &[
        GroupValue {
            name: "SDL_GAMEPAD_AXIS_INVALID",
            short_name: "INVALID",
            doc: None,
            available_since: None,
        },
        GroupValue {
            name: "SDL_GAMEPAD_AXIS_LEFTX",
            short_name: "LEFTX",
            doc: None,
            available_since: None,
        },
        GroupValue {
            name: "SDL_GAMEPAD_AXIS_LEFTY",
            short_name: "LEFTY",
            doc: None,
            available_since: None,
        },
        GroupValue {
            name: "SDL_GAMEPAD_AXIS_RIGHTX",
            short_name: "RIGHTX",
            doc: None,
            available_since: None,
        },
        GroupValue {
            name: "SDL_GAMEPAD_AXIS_RIGHTY",
            short_name: "RIGHTY",
            doc: None,
            available_since: None,
        },
        GroupValue {
            name: "SDL_GAMEPAD_AXIS_LEFT_TRIGGER",
            short_name: "LEFT_TRIGGER",
            doc: None,
            available_since: None,
        },
        GroupValue {
            name: "SDL_GAMEPAD_AXIS_RIGHT_TRIGGER",
            short_name: "RIGHT_TRIGGER",
            doc: None,
            available_since: None,
        },
        GroupValue {
            name: "SDL_GAMEPAD_AXIS_COUNT",
            short_name: "COUNT",
            doc: None,
            available_since: None,
        },
    ],
};
pub const METADATA_SDL_GamepadBindingType: Group = Group {
    module: "gamepad",
    kind: GroupKind::Enum,
    name: "SDL_GamepadBindingType",
    short_name: "GamepadBindingType",
    doc: Some(
        "Types of gamepad control bindings.\n\nA gamepad is a collection of bindings that map arbitrary joystick buttons,\naxes and hat switches to specific positions on a generic console-style\ngamepad. This enum is used as part of [`SDL_GamepadBinding`] to specify those\nmappings.\n\n## Availability\nThis enum is available since SDL 3.2.0.\n",
    ),
    available_since: Some(SDL_VERSIONNUM(3, 2, 0)),
    values: &[
        GroupValue {
            name: "SDL_GAMEPAD_BINDTYPE_NONE",
            short_name: "NONE",
            doc: None,
            available_since: None,
        },
        GroupValue {
            name: "SDL_GAMEPAD_BINDTYPE_BUTTON",
            short_name: "BUTTON",
            doc: None,
            available_since: None,
        },
        GroupValue {
            name: "SDL_GAMEPAD_BINDTYPE_AXIS",
            short_name: "AXIS",
            doc: None,
            available_since: None,
        },
        GroupValue {
            name: "SDL_GAMEPAD_BINDTYPE_HAT",
            short_name: "HAT",
            doc: None,
            available_since: None,
        },
    ],
};
pub const METADATA_SDL_GamepadBinding__AnonUnion1__AnonStruct1: Struct = Struct {
    module: "gamepad",
    kind: StructKind::Struct,
    name: "SDL_GamepadBinding__AnonUnion1__AnonStruct1",
    doc: None,
    available_since: None,
    fields: &[
        Field {
            name: "axis",
            doc: None,
            available_since: None,
            ty: "::core::ffi::c_int",
        },
        Field {
            name: "axis_min",
            doc: None,
            available_since: None,
            ty: "::core::ffi::c_int",
        },
        Field {
            name: "axis_max",
            doc: None,
            available_since: None,
            ty: "::core::ffi::c_int",
        },
    ],
};
pub const METADATA_SDL_GamepadBinding__AnonUnion1__AnonStruct2: Struct = Struct {
    module: "gamepad",
    kind: StructKind::Struct,
    name: "SDL_GamepadBinding__AnonUnion1__AnonStruct2",
    doc: None,
    available_since: None,
    fields: &[
        Field {
            name: "hat",
            doc: None,
            available_since: None,
            ty: "::core::ffi::c_int",
        },
        Field {
            name: "hat_mask",
            doc: None,
            available_since: None,
            ty: "::core::ffi::c_int",
        },
    ],
};
pub const METADATA_SDL_GamepadBinding__AnonUnion1: Struct = Struct {
    module: "gamepad",
    kind: StructKind::Union,
    name: "SDL_GamepadBinding__AnonUnion1",
    doc: None,
    available_since: None,
    fields: &[
        Field {
            name: "button",
            doc: None,
            available_since: None,
            ty: "::core::ffi::c_int",
        },
        Field {
            name: "axis",
            doc: None,
            available_since: None,
            ty: "SDL_GamepadBinding__AnonUnion1__AnonStruct1",
        },
        Field {
            name: "hat",
            doc: None,
            available_since: None,
            ty: "SDL_GamepadBinding__AnonUnion1__AnonStruct2",
        },
    ],
};
pub const METADATA_SDL_GamepadBinding__AnonUnion2__AnonStruct1: Struct = Struct {
    module: "gamepad",
    kind: StructKind::Struct,
    name: "SDL_GamepadBinding__AnonUnion2__AnonStruct1",
    doc: None,
    available_since: None,
    fields: &[
        Field {
            name: "axis",
            doc: None,
            available_since: None,
            ty: "SDL_GamepadAxis",
        },
        Field {
            name: "axis_min",
            doc: None,
            available_since: None,
            ty: "::core::ffi::c_int",
        },
        Field {
            name: "axis_max",
            doc: None,
            available_since: None,
            ty: "::core::ffi::c_int",
        },
    ],
};
pub const METADATA_SDL_GamepadBinding__AnonUnion2: Struct = Struct {
    module: "gamepad",
    kind: StructKind::Union,
    name: "SDL_GamepadBinding__AnonUnion2",
    doc: None,
    available_since: None,
    fields: &[
        Field {
            name: "button",
            doc: None,
            available_since: None,
            ty: "SDL_GamepadButton",
        },
        Field {
            name: "axis",
            doc: None,
            available_since: None,
            ty: "SDL_GamepadBinding__AnonUnion2__AnonStruct1",
        },
    ],
};
pub const METADATA_SDL_GamepadBinding: Struct = Struct {
    module: "gamepad",
    kind: StructKind::Struct,
    name: "SDL_GamepadBinding",
    doc: Some(
        "A mapping between one joystick input to a gamepad control.\n\nA gamepad has a collection of several bindings, to say, for example, when\njoystick button number 5 is pressed, that should be treated like the\ngamepad's \"start\" button.\n\nSDL has these bindings built-in for many popular controllers, and can add\nmore with a simple text string. Those strings are parsed into a collection\nof these structs to make it easier to operate on the data.\n\n## Availability\nThis struct is available since SDL 3.2.0.\n\n## See also\n- [`SDL_GetGamepadBindings`]\n",
    ),
    available_since: Some(SDL_VERSIONNUM(3, 2, 0)),
    fields: &[
        Field {
            name: "input_type",
            doc: None,
            available_since: None,
            ty: "SDL_GamepadBindingType",
        },
        Field {
            name: "input",
            doc: None,
            available_since: None,
            ty: "SDL_GamepadBinding__AnonUnion1",
        },
        Field {
            name: "output_type",
            doc: None,
            available_since: None,
            ty: "SDL_GamepadBindingType",
        },
        Field {
            name: "output",
            doc: None,
            available_since: None,
            ty: "SDL_GamepadBinding__AnonUnion2",
        },
    ],
};