Use the new lel-geucs update process.

This commit is contained in:
Zed A. Shaw 2026-04-20 16:53:09 -04:00
parent 8f65e882ac
commit cd475f8e02
14 changed files with 66 additions and 176 deletions

View file

@ -174,7 +174,7 @@ namespace animator {
while(const auto ev = $window.pollEvent()) {
using enum game::Event;
using KEY = sf::Keyboard::Scan;
auto gui_ev = $router.process_event(ev);
auto [gui_ev, mouse_mods] = $router.process_event(ev);
auto mouse_pos = $window.mapPixelToCoords($router.position);
switch(gui_ev) {
@ -227,6 +227,7 @@ namespace animator {
}
auto viewer = $ui.entity("viewer");
// BUG: this is some jank bullshit but it works
$ui.set<guecs::Sprite>(viewer, {sprite_name, 0, false});
$ui.init();