From 0cb77a31b697bb023b86ff04603d8e49c02320d0 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Sun, 29 Jan 2012 17:08:22 +0100 Subject: [PATCH] Formatting. --- src/cocoa_joystick.m | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/cocoa_joystick.m b/src/cocoa_joystick.m index 3100e210..5e3a6bf8 100644 --- a/src/cocoa_joystick.m +++ b/src/cocoa_joystick.m @@ -208,14 +208,16 @@ 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 */ if (hidEvent.value < element->minReport) - element->minReport = hidEvent.value; + element->minReport = hidEvent.value; if (hidEvent.value > element->maxReport) - element->maxReport = hidEvent.value; + element->maxReport = hidEvent.value; } } @@ -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 */