changeset 1077:f122afdfa025

The Darwin/MacOSX joystick code is largely copied from the HID Utilities package...make the symbols defined by HID Utilities static inside SDL so that an app can link against their own copy of this package without symbol clash.
author Ryan C. Gordon <icculus@icculus.org>
date Wed, 15 Jun 2005 23:41:57 +0000
parents 8d3b95ece376
children e2ef6b7001fd
files src/joystick/darwin/SDL_sysjoystick.c
diffstat 1 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/src/joystick/darwin/SDL_sysjoystick.c	Sun Jun 12 16:12:55 2005 +0000
+++ b/src/joystick/darwin/SDL_sysjoystick.c	Wed Jun 15 23:41:57 2005 +0000
@@ -104,7 +104,7 @@
 static recDevice *gpDeviceList = NULL;
 
 
-void HIDReportErrorNum (char * strError, long numError)
+static void HIDReportErrorNum (char * strError, long numError)
 {
 	SDL_SetError(strError);
 }
@@ -115,7 +115,7 @@
  * will return 0 on error conditions which should be accounted for by application
  */
 
-SInt32 HIDGetElementValue (recDevice *pDevice, recElement *pElement)
+static SInt32 HIDGetElementValue (recDevice *pDevice, recElement *pElement)
 {
 	IOReturn result = kIOReturnSuccess;
 	IOHIDEventStruct hidEvent;
@@ -140,7 +140,7 @@
 
 /* similiar to HIDGetElementValue, but auto-calibrates the value before returning it */
 
-SInt32 HIDCalibratedValue (recDevice *pDevice, recElement *pElement)
+static SInt32 HIDCalibratedValue (recDevice *pDevice, recElement *pElement)
 {
 	float deviceScale = pElement->max - pElement->min;
 	float readScale = pElement->maxReport - pElement->minReport;
@@ -153,7 +153,7 @@
 
 /* similiar to HIDCalibratedValue but calibrates to an arbitrary scale instead of the elements default scale */
 
-SInt32 HIDScaledCalibratedValue (recDevice *pDevice, recElement *pElement, long min, long max)
+static SInt32 HIDScaledCalibratedValue (recDevice *pDevice, recElement *pElement, long min, long max)
 {
 	float deviceScale = max - min;
 	float readScale = pElement->maxReport - pElement->minReport;
@@ -181,7 +181,7 @@
  * Note: appliction now owns the device and must close and release it prior to exiting
  */
 
-IOReturn HIDCreateOpenDeviceInterface (io_object_t hidDevice, recDevice *pDevice)
+static IOReturn HIDCreateOpenDeviceInterface (io_object_t hidDevice, recDevice *pDevice)
 {
 	IOReturn result = kIOReturnSuccess;
 	HRESULT plugInResult = S_OK;
@@ -222,7 +222,7 @@
  * (device may have to be plug and re-plugged in different location to get it working again without a restart)
  */
 
-IOReturn HIDCloseReleaseInterface (recDevice *pDevice)
+static IOReturn HIDCloseReleaseInterface (recDevice *pDevice)
 {
 	IOReturn result = kIOReturnSuccess;