modif ridicule

This commit is contained in:
Lendemor 2016-10-07 15:43:05 +02:00
parent 3afc6dbf8e
commit 5b3cdb7449
2 changed files with 4 additions and 2 deletions

View File

@ -4,6 +4,7 @@
#include "input.h"
#include <iostream>
#include <SFML/Window.hpp>
#include <list>
@ -77,7 +78,7 @@ void Input::updateEvents(){
case sf::Event::Resized:
hasBeenResized = true;
break;
}
}
}
for (auto key: heldkeys){
action_file.push(kb.getHoldAction(key));

View File

@ -1,6 +1,7 @@
#include <iostream>
#include <SFML/Window.hpp>
#include "input.h"
//#include "keybindings.h"
using namespace std;
@ -14,7 +15,7 @@ int main()
myvector.push_back(ACTION_1);
myvector.push_back(ACTION_2);
// KeysMap* keymap = new KeysMap("test", 1);
// IKeysMap* keymap = new IKeysMap("test", 1);
// keymap->setKeyBinding(ACTION_2,0,sf::Keyboard::Z);
// keymap->setTypeAction(ACTION_2,KeysMap::RELEASED);