mirror of
https://github.com/glfw/glfw.git
synced 2025-10-05 06:06:36 +00:00
Hmmm..
This commit is contained in:
parent
5e64465300
commit
639b43d9de
@ -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 hat = strtoul(c + 1, (char**) &c, 10);
|
||||||
const unsigned long bit = 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
|
else
|
||||||
fields[i].element->value = (uint8_t) strtoul(c + 1, (char**) &c, 10);
|
fields[i].element->value = (uint8_t) strtoul(c + 1, (char**) &c, 10);
|
||||||
|
Loading…
Reference in New Issue
Block a user