microsoft / hidtools

Human Interface Device (HID) Tools for Windows and Devices
MIT License
156 stars 20 forks source link

Member name control #15

Closed reinderien closed 11 months ago

reinderien commented 1 year ago

We should introduce a [[settings]] entry to drop implied suffixes to struct members like Button. For backwards compatibility this could not be enabled by default, but would produce more sensible output for the many dozens of HID fields that are one-bit and do not in fact represent buttons.

matwilli commented 11 months ago

It's a pattern in Windows (Win32 APIs), that single bit values are referred to as Buttons. This pattern is maintained in the tool