From dd4c6ade4795e3ffadfd342fd2723e8c119ec79b Mon Sep 17 00:00:00 2001 From: Philipp Wiesemann Date: Wed, 1 May 2013 11:42:29 +0200 Subject: [PATCH] Corrected spelling in C source files. --- src/haptic/darwin/SDL_syshaptic.c | 8 ++++---- src/haptic/linux/SDL_syshaptic.c | 4 ++-- src/haptic/windows/SDL_syshaptic.c | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/haptic/darwin/SDL_syshaptic.c b/src/haptic/darwin/SDL_syshaptic.c index 1af86b8b1..a8b1d586f 100644 --- a/src/haptic/darwin/SDL_syshaptic.c +++ b/src/haptic/darwin/SDL_syshaptic.c @@ -49,7 +49,7 @@ static struct char name[256]; /* Name of the device. */ io_service_t dev; /* Node we use to create the device. */ - SDL_Haptic *haptic; /* Haptic currently assosciated with it. */ + SDL_Haptic *haptic; /* Haptic currently associated with it. */ /* Usage pages for determining if it's a mouse or not. */ long usage; @@ -259,7 +259,7 @@ HIDGetDeviceProduct(io_service_t dev, char *name) } /* 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(dev, kIOServicePlane, &parent1)) @@ -272,7 +272,7 @@ HIDGetDeviceProduct(io_service_t dev, char *name) if (usbProperties) { CFTypeRef refCF = 0; /* get device info - * try hid dictionary first, if fail then go to usb dictionary + * try hid dictionary first, if fail then go to USB dictionary */ @@ -708,7 +708,7 @@ SDL_SYS_ToFFEFFECT(SDL_Haptic * haptic, FFEFFECT * dest, } - /* The big type handling switch, even bigger then linux's version. */ + /* The big type handling switch, even bigger then Linux's version. */ switch (src->type) { case SDL_HAPTIC_CONSTANT: hap_constant = &src->constant; diff --git a/src/haptic/linux/SDL_syshaptic.c b/src/haptic/linux/SDL_syshaptic.c index e07c832f9..23a373520 100644 --- a/src/haptic/linux/SDL_syshaptic.c +++ b/src/haptic/linux/SDL_syshaptic.c @@ -371,7 +371,7 @@ SDL_SYS_JoystickIsHaptic(SDL_Joystick * joystick) int SDL_SYS_JoystickSameHaptic(SDL_Haptic * haptic, SDL_Joystick * joystick) { - /* We are assuming linux is using evdev which should trump the old + /* We are assuming Linux is using evdev which should trump the old * joystick methods. */ if (SDL_strcmp(joystick->hwdata->fname, haptic->hwdata->fname) == 0) { return 1; @@ -548,7 +548,7 @@ SDL_SYS_ToDirection(SDL_HapticDirection * dir) #define CLAMP(x) (((x) > 32767) ? 32767 : x) /* - * Initializes the linux effect struct from a haptic_effect. + * Initializes the Linux effect struct from a haptic_effect. * Values above 32767 (for unsigned) are unspecified so we must clamp. */ static int diff --git a/src/haptic/windows/SDL_syshaptic.c b/src/haptic/windows/SDL_syshaptic.c index 9446ce52a..a41c68ea2 100644 --- a/src/haptic/windows/SDL_syshaptic.c +++ b/src/haptic/windows/SDL_syshaptic.c @@ -433,7 +433,7 @@ SDL_SYS_HapticOpenFromXInput(SDL_Haptic * haptic, Uint8 userid) * - Set data format. * - Acquire exclusiveness. * - Reset actuators. - * - Get supported featuers. + * - Get supported features. */ static int SDL_SYS_HapticOpenFromDevice8(SDL_Haptic * haptic, @@ -888,7 +888,7 @@ SDL_SYS_ToDIEFFECT(SDL_Haptic * haptic, DIEFFECT * dest, } - /* The big type handling switch, even bigger then linux's version. */ + /* The big type handling switch, even bigger then Linux's version. */ switch (src->type) { case SDL_HAPTIC_CONSTANT: hap_constant = &src->constant;