Formatting.

master
Camilla Berglund ago%!(EXTRA string=14 years)
parent 32f186e82d
commit 0cb77a31b6
  1. 10
      src/cocoa_joystick.m

@ -208,7 +208,9 @@ static long getElementValue(_glfwJoystick* joystick, _glfwJoystickElement* eleme
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)
{
/* record min and max for auto calibration */
@ -331,8 +333,10 @@ void _glfwInitJoysticks(void)
if (kIOReturnSuccess != result || !hidMatchDictionary)
return;
result = IOServiceGetMatchingServices(masterPort, hidMatchDictionary, &objectIterator);
if (kIOReturnSuccess != result)
result = IOServiceGetMatchingServices(masterPort,
hidMatchDictionary,
&objectIterator);
if (result != kIOReturnSuccess)
return;
if (!objectIterator) /* there are no joysticks */

Loading…
Cancel
Save