forked from bartvdbraak/blender
BGE: Upon further investigation this should have been 8 since up/down and left/right both are just one axis each. So, in actuality, the number of directions = 2, not 4, and thus JOYAXIS_MAX/directions = 16/2 = 8. 8 was also the max used in 2.4x.
This commit is contained in:
parent
14d2d7c75f
commit
5c20bc02ff
@ -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, 4);
|
||||
RNA_def_property_range(prop, 1, 8);
|
||||
RNA_def_property_update(prop, NC_LOGIC, NULL);
|
||||
|
||||
prop= RNA_def_property(srna, "axis_threshold", PROP_INT, PROP_NONE);
|
||||
|
Loading…
Reference in New Issue
Block a user