Bubba-3D  0.9.0
Awesome game engine!
Public Member Functions | List of all members
KeyboardButton Class Reference

#include <KeyboardButton.h>

Inheritance diagram for KeyboardButton:
Input

Public Member Functions

 KeyboardButton (sf::Keyboard::Key key)
 
 KeyboardButton (sf::Keyboard::Key keyPos, sf::Keyboard::Key keyNeg)
 
ControlStatus getStatus ()
 
ControlStatus::Activator getActivator ()
 
- Public Member Functions inherited from Input
bool isDual ()
 

Additional Inherited Members

- Protected Member Functions inherited from Input
 Input (bool dual)
 
- Protected Attributes inherited from Input
bool dual
 

Detailed Description

An Input class activated by keyboard buttons

Definition at line 31 of file KeyboardButton.h.

Constructor & Destructor Documentation

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.


The documentation for this class was generated from the following files: