added imgui to the app
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#include "Input.h"
|
||||
#include <iostream>
|
||||
#include <memory>
|
||||
#include "imgui/imgui-SFML.h"
|
||||
|
||||
|
||||
Input::Input() :
|
||||
@@ -21,6 +22,8 @@ void Input::consume_sf_events(sf::RenderWindow *window) {
|
||||
|
||||
sf::Event e;
|
||||
while (window->pollEvent(e)) {
|
||||
|
||||
ImGui::SFML::ProcessEvent(e);
|
||||
sf_event_queue.push_back(e);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user