src/joystick/darwin/SDL_sysjoystick_c.h
changeset 6690 9548c8a58103
parent 6138 4c64952a58fb
child 6745 de3683865c14
     1.1 --- a/src/joystick/darwin/SDL_sysjoystick_c.h	Mon Nov 26 14:59:07 2012 -0800
     1.2 +++ b/src/joystick/darwin/SDL_sysjoystick_c.h	Mon Nov 26 16:37:54 2012 -0800
     1.3 @@ -25,6 +25,7 @@
     1.4  
     1.5  #include <IOKit/hid/IOHIDLib.h>
     1.6  #include <IOKit/hid/IOHIDKeys.h>
     1.7 +#include <IOKit/IOKitLib.h>
     1.8  
     1.9  
    1.10  struct recElement
    1.11 @@ -58,7 +59,9 @@
    1.12  {
    1.13      io_service_t ffservice;     /* Interface for force feedback, 0 = no ff */
    1.14      IOHIDDeviceInterface **interface;   /* interface to device, NULL = no interface */
    1.15 -
    1.16 +	IONotificationPortRef notificationPort; /* port to be notified on joystick removal */
    1.17 +	io_iterator_t portIterator; /* iterator for removal callback */
    1.18 +	
    1.19      char product[256];          /* name of product */
    1.20      long usage;                 /* usage page from IOUSBHID Parser.h which defines general usage */
    1.21      long usagePage;             /* usage within above page from IOUSBHID Parser.h which defines specific usage */
    1.22 @@ -74,6 +77,10 @@
    1.23  
    1.24      int removed;
    1.25      int uncentered;
    1.26 +	
    1.27 +	int instance_id;
    1.28 +	JoystickGUID guid;
    1.29 +	Uint8 send_open_event;		/* 1 if we need to send an Added event for this device */
    1.30  
    1.31      struct joystick_hwdata *pNext;      /* next device */
    1.32  };