From 639b43d9de8619f778ffe0fa4b19323c3085d791 Mon Sep 17 00:00:00 2001 From: Stephen Gowen Date: Fri, 17 Nov 2017 10:02:28 -0500 Subject: [PATCH] Hmmm.. --- src/input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/input.c b/src/input.c index 0285e2552..b20e9e687 100644 --- a/src/input.c +++ b/src/input.c @@ -138,7 +138,7 @@ static GLFWbool parseMapping(_GLFWmapping* mapping, const char* string) { const unsigned long hat = strtoul(c + 1, (char**) &c, 10); const unsigned long bit = strtoul(c + 1, (char**) &c, 10); - fields[i].element->value = (uint8_t) (hat << 4) | bit; + fields[i].element->value = (uint8_t) ((hat << 4) | bit); } else fields[i].element->value = (uint8_t) strtoul(c + 1, (char**) &c, 10);