printf("%s %d\n", loc->str, loc->sign * (int8_t)mb);
}
}
-
+
+void reporthat(const uint8_t msg[], const uint8_t last[], int len,
+
+
static void events(void) {
uint8_t msg[MAXREPORTLEN];
for (;;) {
uint8_t mask, zero;
} ValLoc;
+typedef struct {
+ int x, y;
+} HatPosn;
+
+typedef struct {
+ const char *base;
+ int pos, rshift, max; /* mask is applied before rshift */
+ uint8_t mask;
+ const HatPosn[
+} HatLoc;
+
void reportbits(const uint8_t msg[], const uint8_t last[],
int len, const KeyBit bits[]);