microsoft/hidtools

Member name control

Closed this issue · 1 comments

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.

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