mirror of
https://github.com/glfw/glfw.git
synced 2024-11-25 22:14:34 +00:00
Cleanup
This commit is contained in:
parent
6634c47e57
commit
ea6c50d9e2
@ -196,11 +196,10 @@ static void matchCallback(void* context,
|
|||||||
}
|
}
|
||||||
|
|
||||||
CFMutableArrayRef target = NULL;
|
CFMutableArrayRef target = NULL;
|
||||||
const uint32_t usage = IOHIDElementGetUsage(native);
|
|
||||||
|
|
||||||
switch (IOHIDElementGetUsagePage(native))
|
const uint32_t usage = IOHIDElementGetUsage(native);
|
||||||
{
|
const uint32_t page = IOHIDElementGetUsagePage(native);
|
||||||
case kHIDPage_GenericDesktop:
|
if (page == kHIDPage_GenericDesktop)
|
||||||
{
|
{
|
||||||
switch (usage)
|
switch (usage)
|
||||||
{
|
{
|
||||||
@ -219,16 +218,9 @@ static void matchCallback(void* context,
|
|||||||
target = hats;
|
target = hats;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
else if (page == kHIDPage_Button)
|
||||||
case kHIDPage_Button:
|
|
||||||
target = buttons;
|
target = buttons;
|
||||||
break;
|
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (target)
|
if (target)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user