Revision: 39507
          
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=39507
Author:   moguri
Date:     2011-08-17 20:17:27 +0000 (Wed, 17 Aug 2011)
Log Message:
-----------
BGE: Upping the max Axis Number for the Axis event type on joystick sensors 
from 2 to 4. The BGE supports up to 16 axis. For Axis events (not Single Axis), 
you get for directions per axis (up, down, left, right). So, the max should be 
JOYAXIS_MAX/directions = 16/4 = 4.

Modified Paths:
--------------
    trunk/blender/source/blender/makesrna/intern/rna_sensor.c

Modified: trunk/blender/source/blender/makesrna/intern/rna_sensor.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_sensor.c   2011-08-17 
20:15:40 UTC (rev 39506)
+++ trunk/blender/source/blender/makesrna/intern/rna_sensor.c   2011-08-17 
20:17:27 UTC (rev 39507)
@@ -803,7 +803,7 @@
        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);

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to