summaryrefslogtreecommitdiff
path: root/option.c
diff options
context:
space:
mode:
authorSam Spilsbury <Sam@XPS-SUSE.site>2008-12-11 00:03:53 +0900
committerSam Spilsbury <Sam@XPS-SUSE.site>2008-12-11 00:03:53 +0900
commit6a92e23f513d6c465844db1d24a888c07c63c141 (patch)
treeb6652724af58180128edddea396ba8b2ef7c55c2 /option.c
parent0ec102653073f354b91ab9694de43ae0b6641186 (diff)
downloadwiimote-6a92e23f513d6c465844db1d24a888c07c63c141.tar.gz
wiimote-6a92e23f513d6c465844db1d24a888c07c63c141.tar.bz2
* General Bugfixing
Diffstat (limited to 'option.c')
-rw-r--r--option.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/option.c b/option.c
index 44de87d..7e16ca6 100644
--- a/option.c
+++ b/option.c
@@ -49,10 +49,10 @@ reloadReportersForWiimote (CompDisplay *d,
(cWiimoteNumber->nValue != cYArgument->nValue) ||
(cWiimoteNumber->nValue != cZArgument->nValue) ||
(cWiimoteNumber->nValue != cDataType->nValue) ||
- (cWiimoteNumber->nValue != cReportSensitivity->nValue))
+ (cWiimoteNumber->nValue != cReportSensitivity->nValue - 1))
{
compLogMessage ("wiimote", CompLogLevelError,
- "Options are not set correctly. Please revisit them and make sure each option in the list is set\n");
+ "Options (reporters) are not set correctly. Please revisit them and make sure each option in the list is set\n");
return;
}
@@ -117,10 +117,11 @@ reloadGesturesForWiimote (CompDisplay *d,
if ((cWiimoteNumber->nValue != cGestureType->nValue) ||
(cWiimoteNumber->nValue != cPluginName->nValue) ||
- (cWiimoteNumber->nValue != cGestureSensitivity->nValue) ||
+ (cWiimoteNumber->nValue != cGestureSensitivity->nValue - 1) ||
(cWiimoteNumber->nValue != cActionName->nValue))
{
- /* Options have not been set correctly */
+ compLogMessage ("wiimote", CompLogLevelError,
+ "Options (gestures) are not set correctly. Please revisit them and make sure each option in the list is set\n");
return;
}
@@ -174,7 +175,8 @@ reloadOptionsForWiimote (CompDisplay *d,
(cXCal->nValue != cXAdj->nValue) ||
(cXCal->nValue != cYAdj->nValue))
{
- /* Options have not been set correctly */
+ compLogMessage ("wiimote", CompLogLevelError,
+ "Options (general) are not set correctly. Please revisit them and make sure each option in the list is set\n");
return;
}