summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Spilsbury <Sam@XPS-SUSE.site>2008-08-26 08:50:20 +0800
committerSam Spilsbury <Sam@XPS-SUSE.site>2008-08-26 08:50:20 +0800
commit8c26079a7c8e099c04040cf719912e9c93f5d007 (patch)
tree9cc075aa8f743bbea45f6a0650a48b48bf9708d4
parent8ae79ef3b5f8ad38b28a61ee84ea99bbd4ae3ed1 (diff)
downloadwiimote-8c26079a7c8e099c04040cf719912e9c93f5d007.tar.gz
wiimote-8c26079a7c8e099c04040cf719912e9c93f5d007.tar.bz2
* Actually update files
-rw-r--r--About this rewrite3
-rw-r--r--action.c8
2 files changed, 6 insertions, 5 deletions
diff --git a/About this rewrite b/About this rewrite
index fad935c..d402a2b 100644
--- a/About this rewrite
+++ b/About this rewrite
@@ -8,5 +8,4 @@ Rewrite information:
- * Options:
* Use multi-lists to set up wiimotes, calibration info etc. The order in which they are listed is the desired option for the X connected wiimote
* Use multi-lists for everything else
- - * TODO: Split code up into files
- - * TODO: Better text prompting system
+ - * Use a linked list for wiimotes.
diff --git a/action.c b/action.c
index 8ee8702..b44379c 100644
--- a/action.c
+++ b/action.c
@@ -91,7 +91,7 @@ wiimoteToggle (CompDisplay *d,
{
/* So the thread succeeded!
* Start Checking! */
- ad->checkingTimeoutHandle = compAddTimeout (10, checkConnected, d);
+ ad->checkingTimeoutHandle = compAddTimeout (10, 10 * 1.2, checkConnected, d);
}
}
return TRUE;
@@ -192,8 +192,10 @@ wiimoteSendInfo (CompDisplay *d,
* for plugins that support the action system
*/
- ad->infoTimeoutHandle = compAddTimeout(wiimoteGetPollInterval (s->display) , sendReports, s);
- ad->gestureTimeoutHandle = compAddTimeout(wiimoteGetGestureTimeout (s->display) , wiimoteCheckForGestures, s);
+ ad->infoTimeoutHandle = compAddTimeout(wiimoteGetPollInterval (s->display) ,
+ wiimoteGetPollInterval (s->display) * 1.2, sendReports, s);
+ ad->gestureTimeoutHandle = compAddTimeout(wiimoteGetGestureTimeout (s->display) ,
+ wiimoteGetGestureTimeout (s->display) * 1.2, wiimoteCheckForGestures, s);
}
return TRUE;
}