Corrected spelling in C source files.
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Wed, 01 May 2013 11:59:54 +0200
changeset 7133 87d4cb9bb66c
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
--- a/src/joystick/SDL_gamecontroller.c	Wed May 01 11:42:29 2013 +0200
+++ b/src/joystick/SDL_gamecontroller.c	Wed May 01 11:59:54 2013 +0200
@@ -170,7 +170,7 @@
 						}
 						SDL_PrivateGameControllerAxis( controllerlist, axis, value );
 					}
-					else if ( controllerlist->mapping.raxesasbutton[event->jaxis.axis] >= 0 ) // simlate an axis as a button
+					else if ( controllerlist->mapping.raxesasbutton[event->jaxis.axis] >= 0 ) // simulate an axis as a button
 					{
 						SDL_PrivateGameControllerButton( controllerlist, controllerlist->mapping.raxesasbutton[event->jaxis.axis], ABS(event->jaxis.value) > 32768/2 ? SDL_PRESSED : SDL_RELEASED );
 					}
@@ -306,7 +306,7 @@
 }
 
 /*
- * Helper function to determine pre-caclulated offset to certain joystick mappings
+ * Helper function to determine pre-calculated offset to certain joystick mappings
  */
 ControllerMapping_t *SDL_PrivateGetControllerMapping(int device_index)
 {
@@ -1044,7 +1044,7 @@
 }
 
 /**
- *  get the sdl joystick layer binding for this controller axi mapping
+ * Get the SDL joystick layer binding for this controller axis mapping
  */
 SDL_GameControllerButtonBind SDL_GameControllerGetBindForAxis(SDL_GameController * gamecontroller, SDL_GameControllerAxis axis)
 {
@@ -1070,7 +1070,7 @@
 
 
 /**
- *  get the sdl joystick layer binding for this controller button mapping
+ * Get the SDL joystick layer binding for this controller button mapping
  */
 SDL_GameControllerButtonBind SDL_GameControllerGetBindForButton(SDL_GameController * gamecontroller, SDL_GameControllerButton button)
 {
--- a/src/joystick/darwin/SDL_sysjoystick.c	Wed May 01 11:42:29 2013 +0200
+++ b/src/joystick/darwin/SDL_sysjoystick.c	Wed May 01 11:59:54 2013 +0200
@@ -145,7 +145,7 @@
 
 
 /* Create and open an interface to device, required prior to extracting values or building queues.
- * Note: appliction now owns the device and must close and release it prior to exiting
+ * Note: application now owns the device and must close and release it prior to exiting
  */
 
 static IOReturn
@@ -218,7 +218,7 @@
     return result;
 }
 
-/* Closes and releases interface to device, should be done prior to exting application
+/* Closes and releases interface to device, should be done prior to exiting application
  * Note: will have no affect if device or interface do not exist
  * application will "own" the device if interface is not closed
  * (device may have to be plug and re-plugged in different location to get it working again without a restart)
@@ -301,7 +301,7 @@
 */
 }
 
-/* examines CF dictionary vlaue in device element hierarchy to determine if it is element of interest or a collection of more elements
+/* examines CF dictionary value in device element hierarchy to determine if it is element of interest or a collection of more elements
  * if element of interest allocate storage, add to list and retrieve element specific info
  * if collection then pass on to deconstruction collection into additional individual elements
  */
@@ -399,7 +399,7 @@
     }
 }
 
-/* collects information from each array member in device element list (each array memeber = element) */
+/* collects information from each array member in device element list (each array member = element) */
 
 static void
 HIDGetElementsCFArrayHandler(const void *value, void *parameter)
@@ -464,7 +464,7 @@
     io_registry_entry_t parent1, parent2;
 
     /* Mac OS X currently is not mirroring all USB properties to HID page so need to look at USB device page also
-     * get dictionary for usb properties: step up two levels and get CF dictionary for USB properties
+     * get dictionary for USB properties: step up two levels and get CF dictionary for USB properties
      */
     if ((KERN_SUCCESS == IORegistryEntryGetParentEntry(hidDevice, kIOServicePlane, &parent1))
         && (KERN_SUCCESS == IORegistryEntryGetParentEntry(parent1, kIOServicePlane, &parent2))
--- a/src/joystick/darwin/SDL_sysjoystick_c.h	Wed May 01 11:42:29 2013 +0200
+++ b/src/joystick/darwin/SDL_sysjoystick_c.h	Wed May 01 11:59:54 2013 +0200
@@ -69,7 +69,7 @@
     long axes;                  /* number of axis (calculated, not reported by device) */
     long buttons;               /* number of buttons (calculated, not reported by device) */
     long hats;                  /* number of hat switches (calculated, not reported by device) */
-    long elements;              /* number of total elements (shouldbe total of above) (calculated, not reported by device) */
+    long elements;              /* number of total elements (should be total of above) (calculated, not reported by device) */
 
     recElement *firstAxis;
     recElement *firstButton;
--- a/src/joystick/linux/SDL_sysjoystick.c	Wed May 01 11:42:29 2013 +0200
+++ b/src/joystick/linux/SDL_sysjoystick.c	Wed May 01 11:59:54 2013 +0200
@@ -938,7 +938,7 @@
                 switch (code) {
                 case SYN_DROPPED :
 #ifdef DEBUG_INPUT_EVENTS
-                    printf("Event SYN_DROPPED dectected\n");
+                    printf("Event SYN_DROPPED detected\n");
 #endif
                     PollAllValues(joystick);
                     break;
--- a/src/joystick/linux/SDL_sysjoystick_c.h	Wed May 01 11:42:29 2013 +0200
+++ b/src/joystick/linux/SDL_sysjoystick_c.h	Wed May 01 11:59:54 2013 +0200
@@ -31,12 +31,12 @@
     SDL_JoystickGUID guid;
     char *fname;                /* Used in haptic subsystem */
 
-    /* The current linux joystick driver maps hats to two axes */
+    /* The current Linux joystick driver maps hats to two axes */
     struct hwdata_hat
     {
         int axis[2];
     } *hats;
-    /* The current linux joystick driver maps balls to two axes */
+    /* The current Linux joystick driver maps balls to two axes */
     struct hwdata_ball
     {
         int axis[2];
--- a/src/joystick/windows/SDL_dxjoystick.c	Wed May 01 11:42:29 2013 +0200
+++ b/src/joystick/windows/SDL_dxjoystick.c	Wed May 01 11:59:54 2013 +0200
@@ -99,7 +99,7 @@
     s_pXInputDLL = LoadLibrary( L"XInput1_4.dll" );  // 1.4 Ships with Windows 8.
     if (!s_pXInputDLL) {
         version = (1 << 16) | 3;
-        s_pXInputDLL = LoadLibrary( L"XInput1_3.dll" );  // 1.3 Ships with Vista and Win7, can be installed as a restributable component.
+        s_pXInputDLL = LoadLibrary( L"XInput1_3.dll" );  // 1.3 Ships with Vista and Win7, can be installed as a redistributable component.
     }
     if (!s_pXInputDLL) {
         s_pXInputDLL = LoadLibrary( L"bin\\XInput1_3.dll" );
@@ -514,7 +514,7 @@
 
 static SDL_bool s_bWindowsDeviceChanged = SDL_FALSE;
 
-/* windowproc for our joystick detect thread message only window, to detect any usb device addition/removal
+/* windowproc for our joystick detect thread message only window, to detect any USB device addition/removal
  */
 LRESULT CALLBACK SDL_PrivateJoystickDetectProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)    {
 	switch (message)    {
@@ -1043,7 +1043,7 @@
 			return SetDIerror("IDirectInputDevice8::QueryInterface", result);
 		}
 
-		/* Aquire shared access. Exclusive access is required for forces,
+		/* Acquire shared access. Exclusive access is required for forces,
 		 * though. */
 		result =
 			IDirectInputDevice8_SetCooperativeLevel(joystick->hwdata->
--- a/src/joystick/windows/SDL_dxjoystick_c.h	Wed May 01 11:42:29 2013 +0200
+++ b/src/joystick/windows/SDL_dxjoystick_c.h	Wed May 01 11:59:54 2013 +0200
@@ -34,7 +34,7 @@
 
 #include "../../core/windows/SDL_windows.h"
 
-#define DIRECTINPUT_VERSION 0x0800      /* Need version 7 for force feedback. Need verison 8 so IDirectInput8_EnumDevices doesn't leak like a sieve... */
+#define DIRECTINPUT_VERSION 0x0800      /* Need version 7 for force feedback. Need version 8 so IDirectInput8_EnumDevices doesn't leak like a sieve... */
 #include <dinput.h>
 #define COBJMACROS
 #include <wbemcli.h>