#include <uInput.h>
Public Member Functions | |
uInput (tString const &persistentID, tString const &name) | |
~uInput () | |
int | ID () |
tString const & | PersistentID () |
void | SetBind (uBind *bound) |
uBind * | GetBind () const |
void | SetPressed (float pressed) |
float | GetPressed () const |
std::string const | Name () |
Private Attributes | |
int | ID_ |
local ID for this program run | |
tString | persistentID_ |
global ID that does not change over program runs | |
tString | name_ |
human readable name | |
tJUST_CONTROLLED_PTR< uBind > | bound_ |
the binding | |
float | pressed_ |
analogue flag indicating whether the key/button was pressed |
Definition at line 173 of file uInput.h.
Definition at line 103 of file uInput.cpp.
References ID_, su_inputMap, and su_inputs.
Referenced by uAutoDeleteInput::Create().
00104 : persistentID_( persistentID ), name_( name ) 00105 , pressed_( 0 ) 00106 { 00107 ID_ = su_inputs.size(); 00108 su_inputs.push_back( this ); 00109 su_inputMap[ persistentID ] = this; 00110 }
uInput::~uInput | ( | ) |
int uInput::ID | ( | ) | [inline] |
Definition at line 179 of file uInput.h.
References ID_.
Referenced by uKeyInput::uKeyInput().
00179 { return ID_; }
tString const& uInput::PersistentID | ( | ) | [inline] |
void uInput::SetBind | ( | uBind * | bound | ) | [inline] |
Definition at line 183 of file uInput.h.
References bound_.
Referenced by uMenuItemInput::Event(), and tConfItem_key::ReadVal().
00183 { bound_ = bound; }
uBind* uInput::GetBind | ( | ) | const [inline] |
Definition at line 184 of file uInput.h.
References bound_.
Referenced by uMenuItemInput::Event(), uActionGlobal::IsBreakingGlobalBind(), uBindPlayer::NewBind(), su_ClearKeys(), su_HandleEvent(), and su_InputSync().
00184 { return bound_; }
void uInput::SetPressed | ( | float | pressed | ) | [inline] |
Definition at line 187 of file uInput.h.
References pressed_.
Referenced by su_ClearKeys(), and su_HandleEvent().
00187 { pressed_ = pressed; }
float uInput::GetPressed | ( | ) | const [inline] |
Definition at line 188 of file uInput.h.
References pressed_.
Referenced by su_ClearKeys(), and su_InputSync().
00188 { return pressed_; }
std::string const uInput::Name | ( | ) | [inline] |
int uInput::ID_ [private] |
tString uInput::persistentID_ [private] |
global ID that does not change over program runs
Definition at line 194 of file uInput.h.
Referenced by PersistentID().
tString uInput::name_ [private] |
tJUST_CONTROLLED_PTR< uBind > uInput::bound_ [private] |
float uInput::pressed_ [private] |
analogue flag indicating whether the key/button was pressed
Definition at line 198 of file uInput.h.
Referenced by GetPressed(), and SetPressed().