summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Spillaz <smspillaz@gmail.com>2008-04-26 21:26:11 +0800
committerSam Spillaz <smspillaz@gmail.com>2008-04-26 21:26:11 +0800
commitca73db7c91c0e28c3170f9946c168cf4576befa8 (patch)
treec6e4b8d6c549811fb957c64ea919ebbe50278e52
parent1f4b91e8f37730671b44c2159824c25b5e7f1474 (diff)
downloadwiimote-ca73db7c91c0e28c3170f9946c168cf4576befa8.tar.gz
wiimote-ca73db7c91c0e28c3170f9946c168cf4576befa8.tar.bz2
* Part 10: Added copyright notice cleanup etc
-rw-r--r--callback.c20
-rw-r--r--compiz-wiimote.h22
-rw-r--r--connect.c20
-rw-r--r--report.c20
-rw-r--r--wiimote.c13
5 files changed, 80 insertions, 15 deletions
diff --git a/callback.c b/callback.c
index 7cb1c82..48bff8c 100644
--- a/callback.c
+++ b/callback.c
@@ -1,3 +1,23 @@
+/**
+ *
+ * Compiz Nintendo(R) Wii(TM) Remote Interface Plugin
+ *
+ * Copyright : (C) 2008 by Sam Spilsbury
+ * E-mail : smspillaz@gmail.com
+ *
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ */
+
#include "compiz-wiimote.h"
diff --git a/compiz-wiimote.h b/compiz-wiimote.h
index 5946886..a25177a 100644
--- a/compiz-wiimote.h
+++ b/compiz-wiimote.h
@@ -1,4 +1,4 @@
-/*
+/**
*
* Compiz Nintendo(R) Wii(TM) Remote Interface Plugin
*
@@ -378,20 +378,36 @@ CompDisplay *firstDisplay;
/* Function Prototypes */
+/* util.c*/
+
int findMinIR (CompDisplay *, int, int, int, int, int); // No you can't have fminf
int findMaxIR (CompDisplay *, int, int, int, int, int); // Or fmaxf
Bool wiimoteChangeLights(void *Wiimote);
void set_led_state(cwiid_wiimote_t *wiimote, unsigned char led_state);
void set_rpt_mode(cwiid_wiimote_t *wiimote, unsigned char rpt_mode);
+
+/* communicate.c */
+
Bool sendInfoToPlugin (CompDisplay *, CompOption *, int, char *, char *);
+
+/* gesture.c */
+
void wiimoteProcessButtons (CompDisplay *, int, struct cwiid_btn_mesg *);
void wiimoteProcessNunchuckButtons (CompDisplay *, int, struct cwiid_nunchuk_mesg *);
+Bool wiimoteCheckForGestures (void *vs);
+
+/* connect.c */
+
Bool find_wiimote(bdaddr_t *bdaddr, int timeout);
void* connectWiimote (void *vd);
Bool checkConnected (void *vd);
-Bool wiimoteCheckForGestures (void *vs);
+
+/* report.c */
+
Bool sendReports(void *vs);
+/* option.c */
+
void
reloadWiimoteGestures (CompDisplay *d);
@@ -401,6 +417,8 @@ reloadWiimoteReporters(CompDisplay *d);
void
reloadWiimoteOptions (CompDisplay *d);
+/* action.c */
+
Bool
wiimoteToggle (CompDisplay *d,
CompAction *action,
diff --git a/connect.c b/connect.c
index 10bcb27..05389da 100644
--- a/connect.c
+++ b/connect.c
@@ -1,3 +1,23 @@
+/**
+ *
+ * Compiz Nintendo(R) Wii(TM) Remote Interface Plugin
+ *
+ * Copyright : (C) 2008 by Sam Spilsbury
+ * E-mail : smspillaz@gmail.com
+ *
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ */
+
#include "compiz-wiimote.h"
/* Wii Remote Connection / Handling --------------------------------------------------- */
diff --git a/report.c b/report.c
index 8fe3139..d420e98 100644
--- a/report.c
+++ b/report.c
@@ -1,3 +1,23 @@
+/**
+ *
+ * Compiz Nintendo(R) Wii(TM) Remote Interface Plugin
+ *
+ * Copyright : (C) 2008 by Sam Spilsbury
+ * E-mail : smspillaz@gmail.com
+ *
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ */
+
#include "compiz-wiimote.h"
/* Value Reporting --------------------------------------------------- */
diff --git a/wiimote.c b/wiimote.c
index a486df5..d82c42d 100644
--- a/wiimote.c
+++ b/wiimote.c
@@ -20,19 +20,6 @@
* TODO:
* - ???
*/
-#include <stdio.h>
-#include <stdlib.h>
-#include <stdint.h>
-
-#include <string.h>
-#include <math.h>
-
-#include <compiz-core.h>
-#include <compiz-text.h>
-
-#include <unistd.h>
-
-#include "wiimote_options.h"
#include "compiz-wiimote.h"
static int corePrivateIndex;