Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Corrected spelling in C source files.
Browse files Browse the repository at this point in the history
  • Loading branch information
philippwiesemann committed May 1, 2013
1 parent 7c9c395 commit dd4c6ad
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions src/haptic/darwin/SDL_syshaptic.c
Expand Up @@ -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;
Expand Down Expand Up @@ -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))
Expand All @@ -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
*/


Expand Down Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions src/haptic/linux/SDL_syshaptic.c
Expand Up @@ -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;
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/haptic/windows/SDL_syshaptic.c
Expand Up @@ -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,
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit dd4c6ad

Please sign in to comment.