mirror of
https://github.com/gwm17/glfw.git
synced 2024-11-23 10:48:51 -05:00
Formatting.
This commit is contained in:
parent
32f186e82d
commit
0cb77a31b6
|
@ -208,14 +208,16 @@ static long getElementValue(_glfwJoystick* joystick, _glfwJoystickElement* eleme
|
||||||
|
|
||||||
if (joystick && element && joystick->interface)
|
if (joystick && element && joystick->interface)
|
||||||
{
|
{
|
||||||
result = (*(joystick->interface))->getElementValue(joystick->interface, element->cookie, &hidEvent);
|
result = (*(joystick->interface))->getElementValue(joystick->interface,
|
||||||
|
element->cookie,
|
||||||
|
&hidEvent);
|
||||||
if (kIOReturnSuccess == result)
|
if (kIOReturnSuccess == result)
|
||||||
{
|
{
|
||||||
/* record min and max for auto calibration */
|
/* record min and max for auto calibration */
|
||||||
if (hidEvent.value < element->minReport)
|
if (hidEvent.value < element->minReport)
|
||||||
element->minReport = hidEvent.value;
|
element->minReport = hidEvent.value;
|
||||||
if (hidEvent.value > element->maxReport)
|
if (hidEvent.value > element->maxReport)
|
||||||
element->maxReport = hidEvent.value;
|
element->maxReport = hidEvent.value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -331,8 +333,10 @@ void _glfwInitJoysticks(void)
|
||||||
if (kIOReturnSuccess != result || !hidMatchDictionary)
|
if (kIOReturnSuccess != result || !hidMatchDictionary)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
result = IOServiceGetMatchingServices(masterPort, hidMatchDictionary, &objectIterator);
|
result = IOServiceGetMatchingServices(masterPort,
|
||||||
if (kIOReturnSuccess != result)
|
hidMatchDictionary,
|
||||||
|
&objectIterator);
|
||||||
|
if (result != kIOReturnSuccess)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (!objectIterator) /* there are no joysticks */
|
if (!objectIterator) /* there are no joysticks */
|
||||||
|
|
Loading…
Reference in New Issue
Block a user