21 #include <KeyboardButton.h> 23 #include <SFML/Window.hpp> 30 this->keyNeg = keyNeg;
31 this->keyPos = keyPos;
34 ControlStatus::Activator KeyboardButton::getActivator() {
35 return ControlStatus::KEYBOARD;
39 float value = sf::Keyboard::isKeyPressed(keyPos) ? 100.0f : 0.0f;
41 value -= sf::Keyboard::isKeyPressed(keyNeg) ? 100.0f : 0.0f;
The class that contains information about a function at the state of creation.