Added Joystick sensor (from snailrose)
[blender.git] / source / blender / blenkernel / intern / sca.c
index fdcf998d1d344f0bf536c930babe6045de3a3027..e772a3bcdb49f10ae7ab88ef5b8dddcf9069b0a6 100644 (file)
@@ -172,6 +172,9 @@ void init_sensor(bSensor *sens)
        case SENS_MESSAGE:
                sens->data= MEM_callocN(sizeof(bMessageSensor), "messagesens");
                break;
+       case SENS_JOYSTICK:
+               sens->data= MEM_callocN(sizeof(bJoystickSensor), "joysticksens");
+               break;
        default:
                ; /* this is very severe... I cannot make any memory for this        */
                /* logic brick...                                                    */