haptic tweaks
@@ -23,6 +23,8 @@ global_variable bool inputCaptured = false;
internal void
INPUT_capture(WrenVM* vm) {
SDL_InitSubSystem(SDL_INIT_GAMECONTROLLER | SDL_INIT_HAPTIC);
+
+ printf("HAPTIC COUNT %i\n", SDL_NumHaptics());
if (!inputCaptured) {
wrenGetVariable(vm, "input", "Keyboard", 0);
keyboardClass = wrenGetSlotHandle(vm, 0);
@@ -177,6 +179,7 @@ GAMEPAD_allocate(WrenVM* vm) {
SDL_HapticClose(gamepad->haptics);
gamepad->haptics = NULL;
}
+ printf("Initialised haptics are %s\n", gamepad->haptics == NULL ? "null" : "ok");
}
internal void
