summaryrefslogtreecommitdiff
path: root/wiimote.c
diff options
context:
space:
mode:
Diffstat (limited to 'wiimote.c')
-rw-r--r--wiimote.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/wiimote.c b/wiimote.c
index 2a42806..fba0632 100644
--- a/wiimote.c
+++ b/wiimote.c
@@ -31,6 +31,8 @@ wiimoteDisplayOptionChanged (CompDisplay *d,
CompOption *opt,
WiimoteDisplayOptions num)
{
+ CompWiimote *wiimote;
+ WIIMOTE_DISPLAY (d);
switch (num)
{
@@ -39,7 +41,8 @@ wiimoteDisplayOptionChanged (CompDisplay *d,
case WiimoteDisplayOptionXAdjust:
case WiimoteDisplayOptionYAdjust:
{
- reloadWiimoteOptions (d);
+ for (wiimote = ad->wiimotes; wiimote; wiimote = wiimote->next)
+ reloadOptionsForWiimote (d, wiimote);
break;
}
case WiimoteDisplayOptionGestureWiimoteNumber:
@@ -48,7 +51,8 @@ wiimoteDisplayOptionChanged (CompDisplay *d,
case WiimoteDisplayOptionGestureActionName:
case WiimoteDisplayOptionGestureSensitivity:
{
- reloadWiimoteGestures (d);
+ for (wiimote = ad->wiimotes; wiimote; wiimote = wiimote->next)
+ reloadGesturesForWiimote (d, wiimote);
break;
}
case WiimoteDisplayOptionReportWiimoteNumber:
@@ -57,7 +61,8 @@ wiimoteDisplayOptionChanged (CompDisplay *d,
case WiimoteDisplayOptionReportActionName:
case WiimoteDisplayOptionReportSensitivity:
{
- reloadWiimoteReporters (d);
+ for (wiimote = ad->wiimotes; wiimote; wiimote = wiimote->next)
+ reloadReportersForWiimote (d, wiimote);
break;
}
default: