From 7a288020858a71f28c1e2f8cc21443a18b5504ce Mon Sep 17 00:00:00 2001 From: ekeeke31 Date: Fri, 3 Oct 2008 14:49:01 +0000 Subject: [PATCH] improved controllers default assignation --- source/ngc/ogc_input.c | 35 ++++++++++++++++++++++++++--------- 1 file changed, 26 insertions(+), 9 deletions(-) diff --git a/source/ngc/ogc_input.c b/source/ngc/ogc_input.c index 9b7c58c..3471a15 100644 --- a/source/ngc/ogc_input.c +++ b/source/ngc/ogc_input.c @@ -639,20 +639,40 @@ void ogc_input__set_defaults(void) } #endif - /* set default device assigantion */ + /* default device assignation */ for (i=0; i 1) + { + /* assign wiimote */ + config.input[i].device = 1; + config.input[i].port = j; + } + } } - /* set gamepad as default */ - else config.input[i].device = 0; } else { @@ -664,9 +684,6 @@ void ogc_input__set_defaults(void) /* set gamepad as default */ config.input[i].device = (i < 4) ? 0 : -1; #endif - - /* set device port */ - config.input[i].port = i % 4; } }