int len, const ValLoc vallocs[]);
+/*----- "hats", ie hatswitches -----*/
+
+typedef struct {
+ int x, y;
+} HatPosn;
+
+typedef struct {
+ const char *str; /* base; reporter will append "X" and "Y" to this */
+ int pos, rshift, max; /* mask is applied before rshift */
+ uint8_t mask;
+ const HatPosn *posns;
+} HatLoc;
+
+void reporthats(const uint8_t msg[], const uint8_t last[],
+ int len, const HatLoc hatlocs[]);
+
#endif /*HIDRAWCONV_H*/