mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-06-09 12:05:52 -04:00
This reverts commit e10e1f74d5.
This commit is contained in:
@@ -11,9 +11,7 @@
|
||||
#include <ranges>
|
||||
|
||||
#include "aurora/lib/window.hpp"
|
||||
#include "dusk/dusk.h"
|
||||
#include "dusk/io.hpp"
|
||||
#include "dusk/config.hpp"
|
||||
#include "input.hpp"
|
||||
#include "prelaunch.hpp"
|
||||
#include "window.hpp"
|
||||
@@ -171,18 +169,6 @@ void handle_event(const SDL_Event& event) noexcept {
|
||||
});
|
||||
}
|
||||
sConnectedGamepads.erase(event.gdevice.which);
|
||||
} else if (event.type == SDL_EVENT_WINDOW_MOVED || event.type == SDL_EVENT_WINDOW_RESIZED) {
|
||||
int x, y;
|
||||
if (SDL_GetWindowPosition(aurora::window::get_sdl_window(), &x, &y)) {
|
||||
getSettings().video.windowPositionX.setValue(x);
|
||||
getSettings().video.windowPositionY.setValue(y);
|
||||
}
|
||||
int width, height;
|
||||
if (SDL_GetWindowSize(aurora::window::get_sdl_window(), &width, &height)) {
|
||||
getSettings().video.windowWidth.setValue(width);
|
||||
getSettings().video.windowHeight.setValue(height);
|
||||
}
|
||||
config::Save();
|
||||
}
|
||||
input::handle_event(event);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user