Changeset d8cf709 in opengl-game for vulkan-game.cpp


Ignore:
Timestamp:
Feb 13, 2021, 11:41:39 PM (4 years ago)
Author:
Dmitry Portnoy <dportnoy@…>
Branches:
feature/imgui-sdl
Children:
c6f0793
Parents:
8b823e7
Message:

Change UIEvent to also include the original event from the UI library the game gui is currently using, such as SDL or GLFW.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vulkan-game.cpp

    r8b823e7 rd8cf709  
    771771
    772772void VulkanGame::mainLoop() {
    773    UIEvent e;
    774773   this->quit = false;
    775774
     
    799798      gui->processEvents();
    800799
    801       while (gui->pollEvent(&e)) {
     800      UIEvent uiEvent;
     801      while (gui->pollEvent(&uiEvent)) {
     802         GameEvent& e = uiEvent.event;
     803
    802804         switch(e.type) {
    803805            case UI_EVENT_QUIT:
Note: See TracChangeset for help on using the changeset viewer.