Corrected spelling in C source files.
This commit is contained in:
parent
2b271666be
commit
5b428b875f
3 changed files with 8 additions and 8 deletions
|
@ -49,7 +49,7 @@ static struct
|
||||||
char name[256]; /* Name of the device. */
|
char name[256]; /* Name of the device. */
|
||||||
|
|
||||||
io_service_t dev; /* Node we use to create 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. */
|
/* Usage pages for determining if it's a mouse or not. */
|
||||||
long usage;
|
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
|
/* 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 ==
|
if ((KERN_SUCCESS ==
|
||||||
IORegistryEntryGetParentEntry(dev, kIOServicePlane, &parent1))
|
IORegistryEntryGetParentEntry(dev, kIOServicePlane, &parent1))
|
||||||
|
@ -272,7 +272,7 @@ HIDGetDeviceProduct(io_service_t dev, char *name)
|
||||||
if (usbProperties) {
|
if (usbProperties) {
|
||||||
CFTypeRef refCF = 0;
|
CFTypeRef refCF = 0;
|
||||||
/* get device info
|
/* 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) {
|
switch (src->type) {
|
||||||
case SDL_HAPTIC_CONSTANT:
|
case SDL_HAPTIC_CONSTANT:
|
||||||
hap_constant = &src->constant;
|
hap_constant = &src->constant;
|
||||||
|
|
|
@ -371,7 +371,7 @@ SDL_SYS_JoystickIsHaptic(SDL_Joystick * joystick)
|
||||||
int
|
int
|
||||||
SDL_SYS_JoystickSameHaptic(SDL_Haptic * haptic, SDL_Joystick * joystick)
|
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. */
|
* joystick methods. */
|
||||||
if (SDL_strcmp(joystick->hwdata->fname, haptic->hwdata->fname) == 0) {
|
if (SDL_strcmp(joystick->hwdata->fname, haptic->hwdata->fname) == 0) {
|
||||||
return 1;
|
return 1;
|
||||||
|
@ -548,7 +548,7 @@ SDL_SYS_ToDirection(SDL_HapticDirection * dir)
|
||||||
|
|
||||||
#define CLAMP(x) (((x) > 32767) ? 32767 : x)
|
#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.
|
* Values above 32767 (for unsigned) are unspecified so we must clamp.
|
||||||
*/
|
*/
|
||||||
static int
|
static int
|
||||||
|
|
|
@ -433,7 +433,7 @@ SDL_SYS_HapticOpenFromXInput(SDL_Haptic * haptic, Uint8 userid)
|
||||||
* - Set data format.
|
* - Set data format.
|
||||||
* - Acquire exclusiveness.
|
* - Acquire exclusiveness.
|
||||||
* - Reset actuators.
|
* - Reset actuators.
|
||||||
* - Get supported featuers.
|
* - Get supported features.
|
||||||
*/
|
*/
|
||||||
static int
|
static int
|
||||||
SDL_SYS_HapticOpenFromDevice8(SDL_Haptic * haptic,
|
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) {
|
switch (src->type) {
|
||||||
case SDL_HAPTIC_CONSTANT:
|
case SDL_HAPTIC_CONSTANT:
|
||||||
hap_constant = &src->constant;
|
hap_constant = &src->constant;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue