const void AnimationTester::mouseWheelListener(MouseWheelEvent& event){ if (event.isCancelled()){ return; } if (d != NULL){ if (event.delta() > 0){ d->scale *= 1.2f; } else{ d->scale *= (5.0f / 6.0f); } if (d->scale < 1.0f){ d->scale = 1.0f; } logger::info("Scale: " + to_string(d->scale)); } }
const void Editor::mouseWheelListener(MouseWheelEvent event){ cout << event.delta() << endl; }