add logs
diff --git a/src/artboard.cpp b/src/artboard.cpp index c51f4e4..19692a2 100644 --- a/src/artboard.cpp +++ b/src/artboard.cpp
@@ -1645,6 +1645,12 @@ LinearAnimation* Artboard::animation(size_t index) const { +#ifdef WITH_RECORDER + if(Artboard::isDebug) { + printf("[RECORDER_LOG] anim: %zu and size: %zu\n", + index, m_Animations.size()); + } +#endif if (index >= m_Animations.size()) { return nullptr;
diff --git a/src/joystick.cpp b/src/joystick.cpp index ea9d6e1..c52acac 100644 --- a/src/joystick.cpp +++ b/src/joystick.cpp
@@ -27,6 +27,12 @@ StatusCode Joystick::onAddedClean(CoreContext* context) { +#ifdef WITH_RECORDER + if(Artboard::isDebug) { + printf("[RECORDER_LOG] Joys::added x: %u y: %u\n", + xId(), yId()); + } +#endif m_xAnimation = artboard()->animation(xId()); m_yAnimation = artboard()->animation(yId()); @@ -83,6 +89,12 @@ { if (m_xAnimation != nullptr) { +#ifdef WITH_RECORDER + if(Artboard::isDebug) { + printf("[RECORDER_LOG] Joys::X for m_x: %s\n", + m_xAnimation->name().c_str()); + } +#endif m_xAnimation->apply( artboard, ((isJoystickFlagged(JoystickFlags::invertX) ? -x() : x()) + 1.0f) / @@ -91,6 +103,12 @@ if (m_yAnimation != nullptr) { +#ifdef WITH_RECORDER + if(Artboard::isDebug) { + printf("[RECORDER_LOG] Joys::Y for m_y: %s\n", + m_yAnimation->name().c_str()); + } +#endif m_yAnimation->apply( artboard, ((isJoystickFlagged(JoystickFlags::invertY) ? -y() : y()) + 1.0f) /