dynamic casting, extra sounds, fixes

This commit is contained in:
KeyboardCombination
2023-04-30 15:58:10 -04:00
parent fd3679fb6b
commit b7f2b8f5a7
9 changed files with 66 additions and 9 deletions

View File

@@ -8,6 +8,7 @@
#include "DataModelV2/ImageButtonInstance.h"
#include "DataModelV2/DataModelInstance.h"
#include "DataModelV2/GuiRootInstance.h"
#include "DataModelV2/SoundService.h"
#include "XplicitNgine/XplicitNgine.h"
#include "CameraController.h"
#include "AudioPlayer.h"
@@ -512,7 +513,7 @@ void Application::onMouseWheel(int x,int y,short delta)
if (mouseOnScreen==true)
if (cameraController.onMouseWheel(x, y, delta))
{
AudioPlayer::playSound(cameraSound);
_dataModel->getSoundService()->playSound(_dataModel->getSoundService()->findFirstChild("Step"));
}
tool->onMouseScroll(mouse);
}