Index: joy.c
===================================================================
--- joy.c	(revision 707)
+++ joy.c	(revision 708)
@@ -42,11 +42,13 @@
 //struct input_event stop;
 //struct ff_effect effect;
 int raydium_joy_event_handle;
+#ifndef __APPLE__
 #ifndef WIN32
 struct ff_effect effect_tremble;
 #else
 int raydium_joy_win_id;
 #endif
+#endif
 char effect_tremble_state=0;
 unsigned long last_event;
 
@@ -73,6 +75,7 @@
 //buttons
 }
 
+#ifndef __APPLE__
 #ifndef WIN32
 int raydium_joy_process_event(struct js_event e)
 {
@@ -164,9 +167,11 @@
     return(e.type);
 }
 #endif
+#endif
 
 void raydium_joy_callback(void)
 {
+#ifndef __APPLE__
 #ifndef WIN32
  struct js_event e;                     //structure for storing an event
  
@@ -220,11 +225,13 @@
         }
         dwButtons = ActualPos.dwButtons;
 #endif
+#endif
 //raydium_log("Joy x=%f,y=%f,z=%f",raydium_joy_x,raydium_joy_y,raydium_joy_z);
 }
 
 void raydium_joy_ff_autocenter(int perc)
 {
+#ifndef __APPLE__
 #ifndef WIN32
 struct input_event ie;
 
@@ -238,6 +245,7 @@
         perror("set auto-center");
 
 #endif
+#endif
 }
 
 
@@ -249,6 +257,7 @@
 int autocenter=5;         /* default value. between 0 and 100 */
 
         raydium_joy_init_vars();
+#ifndef __APPLE__
 #ifndef WIN32
     
     raydium_init_cli_option_default("joydev",name,"/dev/js0");
@@ -353,6 +362,7 @@
         }
     }
 #endif
+#endif
 }
 
 void raydium_joy_close(void)
@@ -417,6 +427,7 @@
 
 void raydium_joy_ff_tremble_set(GLfloat period, GLfloat force)
 {
+#ifndef __APPLE__
 #ifndef WIN32
 struct input_event play;
 struct input_event stop;
@@ -454,5 +465,6 @@
 last_event=raydium_timecall_clock();
 //printf("ff event refreshed\n");
 #endif
+#endif
 }