Corrected spelling in C source files.
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Wed, 01 May 2013 11:59:54 +0200
changeset 713387d4cb9bb66c
parent 7132 1415923c2eab
child 7134 09ee216e6a25
Corrected spelling in C source files.
src/joystick/SDL_gamecontroller.c
src/joystick/darwin/SDL_sysjoystick.c
src/joystick/darwin/SDL_sysjoystick_c.h
src/joystick/linux/SDL_sysjoystick.c
src/joystick/linux/SDL_sysjoystick_c.h
src/joystick/windows/SDL_dxjoystick.c
src/joystick/windows/SDL_dxjoystick_c.h
     1.1 --- a/src/joystick/SDL_gamecontroller.c	Wed May 01 11:42:29 2013 +0200
     1.2 +++ b/src/joystick/SDL_gamecontroller.c	Wed May 01 11:59:54 2013 +0200
     1.3 @@ -170,7 +170,7 @@
     1.4  						}
     1.5  						SDL_PrivateGameControllerAxis( controllerlist, axis, value );
     1.6  					}
     1.7 -					else if ( controllerlist->mapping.raxesasbutton[event->jaxis.axis] >= 0 ) // simlate an axis as a button
     1.8 +					else if ( controllerlist->mapping.raxesasbutton[event->jaxis.axis] >= 0 ) // simulate an axis as a button
     1.9  					{
    1.10  						SDL_PrivateGameControllerButton( controllerlist, controllerlist->mapping.raxesasbutton[event->jaxis.axis], ABS(event->jaxis.value) > 32768/2 ? SDL_PRESSED : SDL_RELEASED );
    1.11  					}
    1.12 @@ -306,7 +306,7 @@
    1.13  }
    1.14  
    1.15  /*
    1.16 - * Helper function to determine pre-caclulated offset to certain joystick mappings
    1.17 + * Helper function to determine pre-calculated offset to certain joystick mappings
    1.18   */
    1.19  ControllerMapping_t *SDL_PrivateGetControllerMapping(int device_index)
    1.20  {
    1.21 @@ -1044,7 +1044,7 @@
    1.22  }
    1.23  
    1.24  /**
    1.25 - *  get the sdl joystick layer binding for this controller axi mapping
    1.26 + * Get the SDL joystick layer binding for this controller axis mapping
    1.27   */
    1.28  SDL_GameControllerButtonBind SDL_GameControllerGetBindForAxis(SDL_GameController * gamecontroller, SDL_GameControllerAxis axis)
    1.29  {
    1.30 @@ -1070,7 +1070,7 @@
    1.31  
    1.32  
    1.33  /**
    1.34 - *  get the sdl joystick layer binding for this controller button mapping
    1.35 + * Get the SDL joystick layer binding for this controller button mapping
    1.36   */
    1.37  SDL_GameControllerButtonBind SDL_GameControllerGetBindForButton(SDL_GameController * gamecontroller, SDL_GameControllerButton button)
    1.38  {
     2.1 --- a/src/joystick/darwin/SDL_sysjoystick.c	Wed May 01 11:42:29 2013 +0200
     2.2 +++ b/src/joystick/darwin/SDL_sysjoystick.c	Wed May 01 11:59:54 2013 +0200
     2.3 @@ -145,7 +145,7 @@
     2.4  
     2.5  
     2.6  /* Create and open an interface to device, required prior to extracting values or building queues.
     2.7 - * Note: appliction now owns the device and must close and release it prior to exiting
     2.8 + * Note: application now owns the device and must close and release it prior to exiting
     2.9   */
    2.10  
    2.11  static IOReturn
    2.12 @@ -218,7 +218,7 @@
    2.13      return result;
    2.14  }
    2.15  
    2.16 -/* Closes and releases interface to device, should be done prior to exting application
    2.17 +/* Closes and releases interface to device, should be done prior to exiting application
    2.18   * Note: will have no affect if device or interface do not exist
    2.19   * application will "own" the device if interface is not closed
    2.20   * (device may have to be plug and re-plugged in different location to get it working again without a restart)
    2.21 @@ -301,7 +301,7 @@
    2.22  */
    2.23  }
    2.24  
    2.25 -/* examines CF dictionary vlaue in device element hierarchy to determine if it is element of interest or a collection of more elements
    2.26 +/* examines CF dictionary value in device element hierarchy to determine if it is element of interest or a collection of more elements
    2.27   * if element of interest allocate storage, add to list and retrieve element specific info
    2.28   * if collection then pass on to deconstruction collection into additional individual elements
    2.29   */
    2.30 @@ -399,7 +399,7 @@
    2.31      }
    2.32  }
    2.33  
    2.34 -/* collects information from each array member in device element list (each array memeber = element) */
    2.35 +/* collects information from each array member in device element list (each array member = element) */
    2.36  
    2.37  static void
    2.38  HIDGetElementsCFArrayHandler(const void *value, void *parameter)
    2.39 @@ -464,7 +464,7 @@
    2.40      io_registry_entry_t parent1, parent2;
    2.41  
    2.42      /* Mac OS X currently is not mirroring all USB properties to HID page so need to look at USB device page also
    2.43 -     * get dictionary for usb properties: step up two levels and get CF dictionary for USB properties
    2.44 +     * get dictionary for USB properties: step up two levels and get CF dictionary for USB properties
    2.45       */
    2.46      if ((KERN_SUCCESS == IORegistryEntryGetParentEntry(hidDevice, kIOServicePlane, &parent1))
    2.47          && (KERN_SUCCESS == IORegistryEntryGetParentEntry(parent1, kIOServicePlane, &parent2))
     3.1 --- a/src/joystick/darwin/SDL_sysjoystick_c.h	Wed May 01 11:42:29 2013 +0200
     3.2 +++ b/src/joystick/darwin/SDL_sysjoystick_c.h	Wed May 01 11:59:54 2013 +0200
     3.3 @@ -69,7 +69,7 @@
     3.4      long axes;                  /* number of axis (calculated, not reported by device) */
     3.5      long buttons;               /* number of buttons (calculated, not reported by device) */
     3.6      long hats;                  /* number of hat switches (calculated, not reported by device) */
     3.7 -    long elements;              /* number of total elements (shouldbe total of above) (calculated, not reported by device) */
     3.8 +    long elements;              /* number of total elements (should be total of above) (calculated, not reported by device) */
     3.9  
    3.10      recElement *firstAxis;
    3.11      recElement *firstButton;
     4.1 --- a/src/joystick/linux/SDL_sysjoystick.c	Wed May 01 11:42:29 2013 +0200
     4.2 +++ b/src/joystick/linux/SDL_sysjoystick.c	Wed May 01 11:59:54 2013 +0200
     4.3 @@ -938,7 +938,7 @@
     4.4                  switch (code) {
     4.5                  case SYN_DROPPED :
     4.6  #ifdef DEBUG_INPUT_EVENTS
     4.7 -                    printf("Event SYN_DROPPED dectected\n");
     4.8 +                    printf("Event SYN_DROPPED detected\n");
     4.9  #endif
    4.10                      PollAllValues(joystick);
    4.11                      break;
     5.1 --- a/src/joystick/linux/SDL_sysjoystick_c.h	Wed May 01 11:42:29 2013 +0200
     5.2 +++ b/src/joystick/linux/SDL_sysjoystick_c.h	Wed May 01 11:59:54 2013 +0200
     5.3 @@ -31,12 +31,12 @@
     5.4      SDL_JoystickGUID guid;
     5.5      char *fname;                /* Used in haptic subsystem */
     5.6  
     5.7 -    /* The current linux joystick driver maps hats to two axes */
     5.8 +    /* The current Linux joystick driver maps hats to two axes */
     5.9      struct hwdata_hat
    5.10      {
    5.11          int axis[2];
    5.12      } *hats;
    5.13 -    /* The current linux joystick driver maps balls to two axes */
    5.14 +    /* The current Linux joystick driver maps balls to two axes */
    5.15      struct hwdata_ball
    5.16      {
    5.17          int axis[2];
     6.1 --- a/src/joystick/windows/SDL_dxjoystick.c	Wed May 01 11:42:29 2013 +0200
     6.2 +++ b/src/joystick/windows/SDL_dxjoystick.c	Wed May 01 11:59:54 2013 +0200
     6.3 @@ -99,7 +99,7 @@
     6.4      s_pXInputDLL = LoadLibrary( L"XInput1_4.dll" );  // 1.4 Ships with Windows 8.
     6.5      if (!s_pXInputDLL) {
     6.6          version = (1 << 16) | 3;
     6.7 -        s_pXInputDLL = LoadLibrary( L"XInput1_3.dll" );  // 1.3 Ships with Vista and Win7, can be installed as a restributable component.
     6.8 +        s_pXInputDLL = LoadLibrary( L"XInput1_3.dll" );  // 1.3 Ships with Vista and Win7, can be installed as a redistributable component.
     6.9      }
    6.10      if (!s_pXInputDLL) {
    6.11          s_pXInputDLL = LoadLibrary( L"bin\\XInput1_3.dll" );
    6.12 @@ -514,7 +514,7 @@
    6.13  
    6.14  static SDL_bool s_bWindowsDeviceChanged = SDL_FALSE;
    6.15  
    6.16 -/* windowproc for our joystick detect thread message only window, to detect any usb device addition/removal
    6.17 +/* windowproc for our joystick detect thread message only window, to detect any USB device addition/removal
    6.18   */
    6.19  LRESULT CALLBACK SDL_PrivateJoystickDetectProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)    {
    6.20  	switch (message)    {
    6.21 @@ -1043,7 +1043,7 @@
    6.22  			return SetDIerror("IDirectInputDevice8::QueryInterface", result);
    6.23  		}
    6.24  
    6.25 -		/* Aquire shared access. Exclusive access is required for forces,
    6.26 +		/* Acquire shared access. Exclusive access is required for forces,
    6.27  		 * though. */
    6.28  		result =
    6.29  			IDirectInputDevice8_SetCooperativeLevel(joystick->hwdata->
     7.1 --- a/src/joystick/windows/SDL_dxjoystick_c.h	Wed May 01 11:42:29 2013 +0200
     7.2 +++ b/src/joystick/windows/SDL_dxjoystick_c.h	Wed May 01 11:59:54 2013 +0200
     7.3 @@ -34,7 +34,7 @@
     7.4  
     7.5  #include "../../core/windows/SDL_windows.h"
     7.6  
     7.7 -#define DIRECTINPUT_VERSION 0x0800      /* Need version 7 for force feedback. Need verison 8 so IDirectInput8_EnumDevices doesn't leak like a sieve... */
     7.8 +#define DIRECTINPUT_VERSION 0x0800      /* Need version 7 for force feedback. Need version 8 so IDirectInput8_EnumDevices doesn't leak like a sieve... */
     7.9  #include <dinput.h>
    7.10  #define COBJMACROS
    7.11  #include <wbemcli.h>