diff options
-rw-r--r-- | action.c | 2 | ||||
-rw-r--r-- | callback.c | 2 | ||||
-rw-r--r-- | compiz-wiimote.h | 2 | ||||
-rw-r--r-- | connect.c | 2 | ||||
-rw-r--r-- | gesture.c | 2 | ||||
-rw-r--r-- | option.c | 2 | ||||
-rw-r--r-- | report.c | 2 | ||||
-rw-r--r-- | util.c | 1 | ||||
-rw-r--r-- | wiimote.c | 1 |
9 files changed, 14 insertions, 2 deletions
@@ -21,6 +21,8 @@ #include "compiz-wiimote.h" #include "wiimote_options.h" +int wiimoteDisplayPrivateIndex; + /* Callable Actions --------------------------------------------------- */ Bool @@ -21,6 +21,8 @@ #include "compiz-wiimote.h" #include "wiimote_options.h" +int wiimoteDisplayPrivateIndex; + /* Prototype cwiid_callback with cwiid_callback_t, define it with the actual * type - this will cause a compile error (rather than some undefined bizarre diff --git a/compiz-wiimote.h b/compiz-wiimote.h index 37b14f4..0e2d56d 100644 --- a/compiz-wiimote.h +++ b/compiz-wiimote.h @@ -370,7 +370,7 @@ typedef struct _WiimoteScreen GET_WIIMOTE_SCREEN (w->screen, \ GET_WIIMOTE_DISPLAY (w->screen->display))) -int wiimoteDisplayPrivateIndex; +extern int wiimoteDisplayPrivateIndex; cwiid_mesg_callback_t wiimoteCWiiDCallback; cwiid_err_t err; CompDisplay *firstDisplay; @@ -21,6 +21,8 @@ #include "compiz-wiimote.h" #include "wiimote_options.h" +int wiimoteDisplayPrivateIndex; + /* Wii Remote Connection / Handling --------------------------------------------------- */ /* Allocate a callback function */ @@ -21,6 +21,8 @@ #include "compiz-wiimote.h" #include "wiimote_options.h" +int wiimoteDisplayPrivateIndex; + /* Gesturing and gesture checking --------------------------------------------- */ #define CHECK_BUTTON(a,b,c,e) \ @@ -21,6 +21,8 @@ #include "compiz-wiimote.h" #include "wiimote_options.h" +int wiimoteDisplayPrivateIndex; + /* Option Initialisation --------------------------------------------------- */ void @@ -20,6 +20,8 @@ #include "compiz-wiimote.h" +int wiimoteDisplayPrivateIndex; + /* Value Reporting --------------------------------------------------- */ Bool sendReports(void *vs) @@ -20,7 +20,6 @@ #include "compiz-wiimote.h" - /* Utility Functions --------------------------------------------------- */ /* Error Handling */ @@ -24,6 +24,7 @@ #include "wiimote_options.h" static int corePrivateIndex; +int wiimoteDisplayPrivateIndex; /* Wrappable Functions --------------------------------------------------- */ static void |