uInput Class Reference

possible input channels (keys, mouse movement/buttons, joystick) More...

#include <uInput.h>

Collaboration diagram for uInput:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 uInput (tString const &persistentID, tString const &name)
 ~uInput ()
int ID ()
tString const & PersistentID ()
void SetBind (uBind *bound)
uBindGetBind () 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< uBindbound_
 the binding
float pressed_
 analogue flag indicating whether the key/button was pressed


Detailed Description

possible input channels (keys, mouse movement/buttons, joystick)

Definition at line 173 of file uInput.h.


Constructor & Destructor Documentation

uInput::uInput ( tString const &  persistentID,
tString const &  name 
)

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 }

Here is the caller graph for this function:

uInput::~uInput (  ) 

Definition at line 112 of file uInput.cpp.

References ID_, and su_inputs.

00113 {
00114     su_inputs[ID_] = 0;
00115     // su_inputMap.erase( su_inputMap.find( persistentID_ ) );
00116 }


Member Function Documentation

int uInput::ID (  )  [inline]

Definition at line 179 of file uInput.h.

References ID_.

Referenced by uKeyInput::uKeyInput().

00179 { return ID_; }

Here is the caller graph for this function:

tString const& uInput::PersistentID (  )  [inline]

Definition at line 180 of file uInput.h.

References persistentID_.

00180 { return persistentID_; }

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; }

Here is the caller graph for this function:

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_; }

Here is the caller graph for this function:

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; }

Here is the caller graph for this function:

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_; }

Here is the caller graph for this function:

std::string const uInput::Name (  )  [inline]

Definition at line 191 of file uInput.h.

References name_.

00191 { return name_; }


Member Data Documentation

int uInput::ID_ [private]

local ID for this program run

Definition at line 193 of file uInput.h.

Referenced by ID(), uInput(), and ~uInput().

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]

human readable name

Definition at line 195 of file uInput.h.

Referenced by Name().

tJUST_CONTROLLED_PTR< uBind > uInput::bound_ [private]

the binding

Definition at line 197 of file uInput.h.

Referenced by GetBind(), and SetBind().

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().


The documentation for this class was generated from the following files:
Generated on Sun Mar 16 00:00:16 2008 for Armagetron Advanced by  doxygen 1.5.4