*** empty log message ***
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40211
This commit is contained in:
parent
fb0a891f27
commit
1fc7708dc0
1 changed files with 4 additions and 4 deletions
|
@ -91,7 +91,7 @@ struct joystick_hwdata
|
||||||
recElement* firstButton;
|
recElement* firstButton;
|
||||||
recElement* firstHat;
|
recElement* firstHat;
|
||||||
|
|
||||||
struct recDevice* pNext; // next device
|
struct joystick_hwdata* pNext; // next device
|
||||||
};
|
};
|
||||||
typedef struct joystick_hwdata recDevice;
|
typedef struct joystick_hwdata recDevice;
|
||||||
|
|
||||||
|
@ -500,14 +500,14 @@ static recDevice *HIDBuildDevice (io_object_t hidDevice)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
DisposePtr(pDevice);
|
DisposePtr((Ptr)pDevice);
|
||||||
pDevice = NULL;
|
pDevice = NULL;
|
||||||
}
|
}
|
||||||
CFRelease (hidProperties);
|
CFRelease (hidProperties);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
DisposePtr(pDevice);
|
DisposePtr((Ptr)pDevice);
|
||||||
pDevice = NULL;
|
pDevice = NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -724,7 +724,7 @@ void SDL_SYS_JoystickUpdate(SDL_Joystick *joystick)
|
||||||
i = 0;
|
i = 0;
|
||||||
while (element)
|
while (element)
|
||||||
{
|
{
|
||||||
Uint8 pos;
|
Uint8 pos = 0;
|
||||||
|
|
||||||
value = HIDGetElementValue(device, element);
|
value = HIDGetElementValue(device, element);
|
||||||
switch(value)
|
switch(value)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue