summaryrefslogtreecommitdiff
path: root/action.c
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 /action.c
parent8ae79ef3b5f8ad38b28a61ee84ea99bbd4ae3ed1 (diff)
downloadwiimote-8c26079a7c8e099c04040cf719912e9c93f5d007.tar.gz
wiimote-8c26079a7c8e099c04040cf719912e9c93f5d007.tar.bz2
* Actually update files
Diffstat (limited to 'action.c')
-rw-r--r--action.c8
1 files changed, 5 insertions, 3 deletions
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;
}