Added Joystick sensor (from snailrose)
[blender.git] / source / blender / blenloader / intern / writefile.c
index 3232f12f13e954ac74df93cf3468baf6ee99f966..e5b6177aea4fc877e8074a06894f99ad4bb703a8 100644 (file)
@@ -474,6 +474,9 @@ static void write_sensors(WriteData *wd, ListBase *lb)
                case SENS_MESSAGE:
                        writestruct(wd, DATA, "bMessageSensor", 1, sens->data);
                        break;
+               case SENS_JOYSTICK:
+                       writestruct(wd, DATA, "bJoystickSensor", 1, sens->data);
+                       break;
                default:
                        ; /* error: don't know how to write this file */
                }