Orxonox  0.0.5 Codename: Arcturus
Public Member Functions | Public Attributes | List of all members
orxonox::HalfAxis Class Reference

#include </home/jenkins/workspace/orxonox_doxygen_trunk/src/libraries/core/input/HalfAxis.h>

Inheritance diagram for orxonox::HalfAxis:
orxonox::Button

Public Member Functions

 HalfAxis ()
 
virtual bool addParamCommand (ParamCommand *command) override
 
virtual void clear () override
 
bool execute ()
 
void reset ()
 
- Public Member Functions inherited from orxonox::Button
 Button ()
 
virtual ~Button ()
 
bool execute (KeybindMode::Value mode, float abs=1.0f, float rel=1.0f)
 
void parse (const std::string &binding)
 
void readBinding (ConfigFile *configFile, ConfigFile *fallbackFile)
 
void setBinding (ConfigFile *configFile, ConfigFile *fallbackFile, const std::string &binding, bool bTemporary)
 

Public Attributes

float absVal_
 
bool hasChanged_
 
unsigned int nParamCommands_
 
ParamCommand ** paramCommands_
 
bool pressed_
 
float relVal_
 
- Public Attributes inherited from orxonox::Button
bool bButtonThresholdUser_
 
std::string bindingString_
 The configured string value. More...
 
float buttonThreshold_
 Says how much it takes for an analog axis to trigger a button Note: This variable is here to have only one parse() function. More...
 
BaseCommand ** commands_ [3]
 Basic commands for OnPress, OnHold and OnRelease. More...
 
std::string groupName_
 Name of the group of input triggers. More...
 
std::string name_
 Name of the trigger as strings. More...
 
unsigned int nCommands_ [3]
 Number of basic commands. More...
 
std::vector< BufferedParamCommand * > * paramCommandBuffer_
 Pointer to the list of parametrised commands. More...
 

Constructor & Destructor Documentation

orxonox::HalfAxis::HalfAxis ( )
inline

Member Function Documentation

bool orxonox::HalfAxis::addParamCommand ( ParamCommand command)
overridevirtual

Reimplemented from orxonox::Button.

void orxonox::HalfAxis::clear ( )
overridevirtual

Reimplemented from orxonox::Button.

bool orxonox::HalfAxis::execute ( )
inline
void orxonox::HalfAxis::reset ( )
inline

Member Data Documentation

float orxonox::HalfAxis::absVal_
bool orxonox::HalfAxis::hasChanged_
unsigned int orxonox::HalfAxis::nParamCommands_
ParamCommand** orxonox::HalfAxis::paramCommands_
bool orxonox::HalfAxis::pressed_
float orxonox::HalfAxis::relVal_

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