src/joystick/darwin/SDL_sysjoystick.c
changeset 1077 f122afdfa025
parent 858 5db50aa5bf08
child 1338 604d73db6802
     1.1 --- a/src/joystick/darwin/SDL_sysjoystick.c	Sun Jun 12 16:12:55 2005 +0000
     1.2 +++ b/src/joystick/darwin/SDL_sysjoystick.c	Wed Jun 15 23:41:57 2005 +0000
     1.3 @@ -104,7 +104,7 @@
     1.4  static recDevice *gpDeviceList = NULL;
     1.5  
     1.6  
     1.7 -void HIDReportErrorNum (char * strError, long numError)
     1.8 +static void HIDReportErrorNum (char * strError, long numError)
     1.9  {
    1.10  	SDL_SetError(strError);
    1.11  }
    1.12 @@ -115,7 +115,7 @@
    1.13   * will return 0 on error conditions which should be accounted for by application
    1.14   */
    1.15  
    1.16 -SInt32 HIDGetElementValue (recDevice *pDevice, recElement *pElement)
    1.17 +static SInt32 HIDGetElementValue (recDevice *pDevice, recElement *pElement)
    1.18  {
    1.19  	IOReturn result = kIOReturnSuccess;
    1.20  	IOHIDEventStruct hidEvent;
    1.21 @@ -140,7 +140,7 @@
    1.22  
    1.23  /* similiar to HIDGetElementValue, but auto-calibrates the value before returning it */
    1.24  
    1.25 -SInt32 HIDCalibratedValue (recDevice *pDevice, recElement *pElement)
    1.26 +static SInt32 HIDCalibratedValue (recDevice *pDevice, recElement *pElement)
    1.27  {
    1.28  	float deviceScale = pElement->max - pElement->min;
    1.29  	float readScale = pElement->maxReport - pElement->minReport;
    1.30 @@ -153,7 +153,7 @@
    1.31  
    1.32  /* similiar to HIDCalibratedValue but calibrates to an arbitrary scale instead of the elements default scale */
    1.33  
    1.34 -SInt32 HIDScaledCalibratedValue (recDevice *pDevice, recElement *pElement, long min, long max)
    1.35 +static SInt32 HIDScaledCalibratedValue (recDevice *pDevice, recElement *pElement, long min, long max)
    1.36  {
    1.37  	float deviceScale = max - min;
    1.38  	float readScale = pElement->maxReport - pElement->minReport;
    1.39 @@ -181,7 +181,7 @@
    1.40   * Note: appliction now owns the device and must close and release it prior to exiting
    1.41   */
    1.42  
    1.43 -IOReturn HIDCreateOpenDeviceInterface (io_object_t hidDevice, recDevice *pDevice)
    1.44 +static IOReturn HIDCreateOpenDeviceInterface (io_object_t hidDevice, recDevice *pDevice)
    1.45  {
    1.46  	IOReturn result = kIOReturnSuccess;
    1.47  	HRESULT plugInResult = S_OK;
    1.48 @@ -222,7 +222,7 @@
    1.49   * (device may have to be plug and re-plugged in different location to get it working again without a restart)
    1.50   */
    1.51  
    1.52 -IOReturn HIDCloseReleaseInterface (recDevice *pDevice)
    1.53 +static IOReturn HIDCloseReleaseInterface (recDevice *pDevice)
    1.54  {
    1.55  	IOReturn result = kIOReturnSuccess;
    1.56