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)
commit14d2d7c75fcb9a1fd3d82d0434921117f26108e6
treec9179930cafab5b118f0ff96875597a470776e8c
parent1719963a08e9cc470dfaa1dbc87174c9120b59af
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.
source/blender/makesrna/intern/rna_sensor.c