BGE: Upping the max Axis Number for the Axis event type on joystick sensors from...
authorMitchell Stokes <mogurijin@gmail.com>
Wed, 17 Aug 2011 20:17:27 +0000 (20:17 +0000)
committerMitchell Stokes <mogurijin@gmail.com>
Wed, 17 Aug 2011 20:17:27 +0000 (20:17 +0000)
source/blender/makesrna/intern/rna_sensor.c

index 5cc8539f187abd3e96520f20c40982a3e832c657..5c6a4e889fa79be8654e4974f992ea5b98f432ba 100644 (file)
@@ -803,7 +803,7 @@ static void rna_def_joystick_sensor(BlenderRNA *brna)
        prop= RNA_def_property(srna, "axis_number", PROP_INT, PROP_NONE);
        RNA_def_property_int_sdna(prop, NULL, "axis");
        RNA_def_property_ui_text(prop, "Axis Number", "Specify which axis pair to use, 1 is usually the main direction input");
-       RNA_def_property_range(prop, 1, 2);
+       RNA_def_property_range(prop, 1, 4);
        RNA_def_property_update(prop, NC_LOGIC, NULL);
 
        prop= RNA_def_property(srna, "axis_threshold", PROP_INT, PROP_NONE);