The Kicad LOADUSR symbol puts its text directly into a HAL loadusr command:

Putting the same text in the LoadUsr field of a Kicad component may be tidier when there’s only one:

The gamepad symbol in a schematic:

Which produces this loadusr command in the HAL file:
loadusr -W hal_input -KA Dual # input.0.0
You can edit the text after placing the Kicad component, so the symbol can contain placeholder text.
Comments
One response to “Kicad-to-HAL: LoadUsr”
[…] LoadUsr components: https://softsolder.com/2021/04/01/kicad-to-hal-loadusr/ […]