Fixed imgui crash
This commit is contained in:
parent
bd1031139f
commit
12df6e84f9
@ -1,6 +1,7 @@
|
|||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <SFML/Window.hpp>
|
#include <SFML/Window.hpp>
|
||||||
#include "input.h"
|
#include "input.h"
|
||||||
|
#include <imgui/imgui.h>
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
@ -29,8 +30,8 @@ int main()
|
|||||||
{
|
{
|
||||||
cerr << "Hello World!"<< endl;
|
cerr << "Hello World!"<< endl;
|
||||||
sf::Window* window= new sf::Window(sf::VideoMode(400,200),"testSparrowInput");
|
sf::Window* window= new sf::Window(sf::VideoMode(400,200),"testSparrowInput");
|
||||||
|
ImGui::CreateContext();
|
||||||
Input myInput(window);
|
Input myInput(window);
|
||||||
|
|
||||||
Context context = Context("test",TestKeysMap::getTestContext());
|
Context context = Context("test",TestKeysMap::getTestContext());
|
||||||
myInput.setKeysMap(TestKeysMap());
|
myInput.setKeysMap(TestKeysMap());
|
||||||
myInput.addContext(context);
|
myInput.addContext(context);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user