0 Members and 1 Guest are viewing this topic.
thor::ActionMap<std::string> map;//Let's bind the left mouse button to the "Shoot" actionmap["Shoot"] = thor::Action(sf::Mouse::Left);//Let's bind the Return key to the "Jump" actionmap["Jump"] = thor::Action(sf::Keyboard::Return);//Let's bind any of the control keys to the "Use" actionKeys["Use"] = thor::Action(sf::Keyboard::LControl) || thor::Action(sf::Keyboard::RControl);