Skip to content

Commit 908d23c

Browse files
committedApr 27, 2025·
Site changes [skip-ci]
1 parent 3f8b6ea commit 908d23c

File tree

1 file changed

+121
-0
lines changed

1 file changed

+121
-0
lines changed
 

‎_data/ref/alpha/dmHid.json

Lines changed: 121 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -444,6 +444,127 @@
444444
"tparams": [],
445445
"type": "FUNCTION"
446446
},
447+
{
448+
"brief": "Convenience function to retrieve the state of a ga...",
449+
"description": "Convenience function to retrieve the state of a gamepad button from a gamepad packet.",
450+
"error": "",
451+
"examples": "",
452+
"language": "",
453+
"members": [],
454+
"name": "GetGamepadButton",
455+
"notes": [],
456+
"parameters": [
457+
{
458+
"doc": "Gamepad packet",
459+
"name": "packet",
460+
"types": [
461+
"dmHID::GamepadPacket"
462+
]
463+
},
464+
{
465+
"doc": "The requested button",
466+
"name": "button",
467+
"types": [
468+
"uint32_t"
469+
]
470+
}
471+
],
472+
"replaces": "",
473+
"returnvalues": [
474+
{
475+
"doc": "True if the button is currently pressed down.",
476+
"name": "success",
477+
"types": [
478+
"bool"
479+
]
480+
}
481+
],
482+
"tparams": [],
483+
"type": "FUNCTION"
484+
},
485+
{
486+
"brief": "Convenience function to retrieve the state of a ga...",
487+
"description": "Convenience function to retrieve the state of a gamepad hat from a gamepad packet.",
488+
"error": "",
489+
"examples": "",
490+
"language": "",
491+
"members": [],
492+
"name": "GetGamepadHat",
493+
"notes": [],
494+
"parameters": [
495+
{
496+
"doc": "Gamepad packet",
497+
"name": "packet",
498+
"types": [
499+
"dmHID::GamepadPacket"
500+
]
501+
},
502+
{
503+
"doc": "The requested hat index",
504+
"name": "hat",
505+
"types": [
506+
"uint32_t"
507+
]
508+
},
509+
{
510+
"doc": "Hat value out argument",
511+
"name": "out_hat_value",
512+
"types": [
513+
"uint8_t"
514+
]
515+
}
516+
],
517+
"replaces": "",
518+
"returnvalues": [
519+
{
520+
"doc": "True if the hat has data.",
521+
"name": "success",
522+
"types": [
523+
"bool"
524+
]
525+
}
526+
],
527+
"tparams": [],
528+
"type": "FUNCTION"
529+
},
530+
{
531+
"brief": "Obtain a gamepad packet reflecting the current inp...",
532+
"description": "Obtain a gamepad packet reflecting the current input state of the gamepad in a HID context.",
533+
"error": "",
534+
"examples": "",
535+
"language": "",
536+
"members": [],
537+
"name": "GetGamepadPacket",
538+
"notes": [],
539+
"parameters": [
540+
{
541+
"doc": "gamepad handle",
542+
"name": "gamepad",
543+
"types": [
544+
"dmHID::HGamepad"
545+
]
546+
},
547+
{
548+
"doc": "Gamepad packet out argument",
549+
"name": "out_packet",
550+
"types": [
551+
"dmHID::GamepadPacket"
552+
]
553+
}
554+
],
555+
"replaces": "",
556+
"returnvalues": [
557+
{
558+
"doc": "True if the packet was successfully updated.",
559+
"name": "success",
560+
"types": [
561+
"bool"
562+
]
563+
}
564+
],
565+
"tparams": [],
566+
"type": "FUNCTION"
567+
},
447568
{
448569
"brief": "gets a keyboard handle",
449570
"description": "gets a keyboard handle",

0 commit comments

Comments
 (0)
Please sign in to comment.