Bubba-3D
0.9.0
Awesome game engine!
|
#include <KeyboardButton.h>
Public Member Functions | |
KeyboardButton (sf::Keyboard::Key key) | |
KeyboardButton (sf::Keyboard::Key keyPos, sf::Keyboard::Key keyNeg) | |
ControlStatus | getStatus () |
ControlStatus::Activator | getActivator () |
![]() | |
bool | isDual () |
Additional Inherited Members | |
![]() | |
Input (bool dual) | |
![]() | |
bool | dual |
An Input class activated by keyboard buttons
Definition at line 31 of file KeyboardButton.h.
KeyboardButton::KeyboardButton | ( | sf::Keyboard::Key | key | ) |
A non-dual input activated if key
is pressed.
Definition at line 25 of file KeyboardButton.cpp.
KeyboardButton::KeyboardButton | ( | sf::Keyboard::Key | keyPos, |
sf::Keyboard::Key | keyNeg | ||
) |
Creates a dual button activated when either key is pressed. When keyNeg
is pressed the ControlStatus value is -100, when ±p keyPos is pressed the value is 100. If both or none are pressed the value is 0.
Definition at line 29 of file KeyboardButton.cpp.