Fix emulator compilation and crash, and implement Monopoly payment modal

This commit is contained in:
Adolfo Reyna
2026-02-06 23:13:32 -05:00
parent 75e17fb26b
commit 64f61759d7
10 changed files with 309 additions and 66 deletions

View File

@@ -64,6 +64,12 @@ int main() {
event.x = sfEvent.mouseButton.x;
event.y = sfEvent.mouseButton.y;
event.valid = true;
// Check for virtual buttons
InputType virtual_type;
if (input_manager.check_virtual_buttons(event.x, event.y, virtual_type)) {
event.type = virtual_type;
}
} else if (sfEvent.type == sf::Event::KeyPressed) {
if (sfEvent.key.code == sf::Keyboard::Space) {
event.type = INPUT_BUTTON_0;