Fix emulator compilation and crash, and implement Monopoly payment modal
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user