Fixed whitespace
authorSam Lantinga <slouken@libsdl.org>
Wed, 29 Aug 2018 20:23:36 -0700
changeset 1216203a4f7b4ec77
parent 12161 12a877a0ccb5
child 12163 dd056c76593a
Fixed whitespace
src/joystick/hidapi/SDL_hidapi_switch.c
src/joystick/hidapi/SDL_hidapi_xboxone.c
src/joystick/hidapi/SDL_hidapijoystick.c
     1.1 --- a/src/joystick/hidapi/SDL_hidapi_switch.c	Wed Aug 29 18:56:54 2018 -0700
     1.2 +++ b/src/joystick/hidapi/SDL_hidapi_switch.c	Wed Aug 29 20:23:36 2018 -0700
     1.3 @@ -850,7 +850,7 @@
     1.4  HIDAPI_DriverSwitch_Update(SDL_Joystick *joystick, hid_device *dev, void *context)
     1.5  {
     1.6      SDL_DriverSwitch_Context *ctx = (SDL_DriverSwitch_Context *)context;
     1.7 -	int size;
     1.8 +    int size;
     1.9  
    1.10      while ((size = ReadInput(ctx)) > 0) {
    1.11          switch (ctx->m_rgucReadBuffer[0]) {
    1.12 @@ -872,7 +872,7 @@
    1.13          }
    1.14      }
    1.15  
    1.16 -	return (size >= 0);
    1.17 +    return (size >= 0);
    1.18  }
    1.19  
    1.20  static void
     2.1 --- a/src/joystick/hidapi/SDL_hidapi_xboxone.c	Wed Aug 29 18:56:54 2018 -0700
     2.2 +++ b/src/joystick/hidapi/SDL_hidapi_xboxone.c	Wed Aug 29 20:23:36 2018 -0700
     2.3 @@ -296,7 +296,7 @@
     2.4          }
     2.5      }
     2.6  
     2.7 -	return (size >= 0);
     2.8 +    return (size >= 0);
     2.9  }
    2.10  
    2.11  static void
     3.1 --- a/src/joystick/hidapi/SDL_hidapijoystick.c	Wed Aug 29 18:56:54 2018 -0700
     3.2 +++ b/src/joystick/hidapi/SDL_hidapijoystick.c	Wed Aug 29 20:23:36 2018 -0700
     3.3 @@ -64,7 +64,7 @@
     3.4      char *path;
     3.5      Uint16 vendor_id;
     3.6      Uint16 product_id;
     3.7 -	Uint16 version;
     3.8 +    Uint16 version;
     3.9      SDL_JoystickGUID guid;
    3.10      int interface_number;   /* Available on Windows and Linux */
    3.11      Uint16 usage_page;      /* Available on Windows and Mac OS X */
    3.12 @@ -143,7 +143,7 @@
    3.13  
    3.14  typedef struct  _DEV_BROADCAST_HDR      DEV_BROADCAST_HDR;
    3.15  #define DBT_DEVICEARRIVAL               0x8000  /* system detected a new device */
    3.16 -#define DBT_DEVICEREMOVECOMPLETE		0x8004  /* device was removed from the system */
    3.17 +#define DBT_DEVICEREMOVECOMPLETE        0x8004  /* device was removed from the system */
    3.18  #define DBT_DEVTYP_DEVICEINTERFACE      0x00000005  /* device interface class */
    3.19  #define DBT_DEVNODES_CHANGED            0x0007
    3.20  #define DBT_CONFIGCHANGED               0x0018
    3.21 @@ -159,7 +159,7 @@
    3.22      case WM_DEVICECHANGE:
    3.23          switch (wParam) {
    3.24          case DBT_DEVICEARRIVAL:
    3.25 -		case DBT_DEVICEREMOVECOMPLETE:
    3.26 +        case DBT_DEVICEREMOVECOMPLETE:
    3.27              if (((DEV_BROADCAST_HDR*)lParam)->dbch_devicetype == DBT_DEVTYP_DEVICEINTERFACE) {
    3.28                  SDL_HIDAPI_discovery.m_bHaveDevicesChanged = SDL_TRUE;
    3.29              }
    3.30 @@ -700,7 +700,7 @@
    3.31      device->seen = SDL_TRUE;
    3.32      device->vendor_id = info->vendor_id;
    3.33      device->product_id = info->product_id;
    3.34 -	device->version = info->release_number;
    3.35 +    device->version = info->release_number;
    3.36      device->interface_number = info->interface_number;
    3.37      device->usage_page = info->usage_page;
    3.38      device->usage = info->usage;
    3.39 @@ -958,14 +958,14 @@
    3.40      struct joystick_hwdata *hwdata = joystick->hwdata;
    3.41      SDL_HIDAPI_DeviceDriver *driver = hwdata->driver;
    3.42      if (!driver->Update(joystick, hwdata->dev, hwdata->context)) {
    3.43 -		SDL_HIDAPI_Device *device;
    3.44 -		for (device = SDL_HIDAPI_devices; device; device = device->next) {
    3.45 -			if (device->instance_id == joystick->instance_id) {
    3.46 -				HIDAPI_DelDevice(device, SDL_TRUE);
    3.47 -				break;
    3.48 -			}
    3.49 -		}
    3.50 -	}
    3.51 +        SDL_HIDAPI_Device *device;
    3.52 +        for (device = SDL_HIDAPI_devices; device; device = device->next) {
    3.53 +            if (device->instance_id == joystick->instance_id) {
    3.54 +                HIDAPI_DelDevice(device, SDL_TRUE);
    3.55 +                break;
    3.56 +            }
    3.57 +        }
    3.58 +    }
    3.59  }
    3.60  
    3.61  static void