fixing lots of warnings

This commit is contained in:
Dynamitos
2025-03-26 13:38:48 +01:00
parent edfe34a394
commit 9cce5977c5
33 changed files with 204 additions and 185 deletions
+4 -4
View File
@@ -28,8 +28,8 @@ void KeyboardInput::update(Component::KeyboardInput& input) {
void KeyboardInput::keyCallback(KeyCode code, InputAction action, KeyModifier) { keys[code] = action != InputAction::RELEASE; }
void KeyboardInput::mouseCallback(double x, double y) {
mouseX = x;
mouseY = y;
mouseX = (float)x;
mouseY = (float)y;
}
void KeyboardInput::mouseButtonCallback(MouseButton button, InputAction action, KeyModifier) {
@@ -42,6 +42,6 @@ void KeyboardInput::mouseButtonCallback(MouseButton button, InputAction action,
}
void KeyboardInput::scrollCallback(double xScroll, double yScroll) {
scrollX = xScroll;
scrollY = yScroll;
scrollX = (float)xScroll;
scrollY = (float)yScroll;
}
+1 -1
View File
@@ -16,7 +16,7 @@ class SystemBase {
virtual void update() {}
protected:
double deltaTime;
double deltaTime = 0.0;
entt::registry& registry;
PScene scene;
};