Update of /cvsroot/simspark/simspark/spark/kerosin/inputserver
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19510
Modified Files:
inputsystem.cpp inputsystem.h
Log Message:
- changed AddInput() and AddInputInternal() to take a const reference to
an Input struct
Index: inputsystem.h
===================================================================
RCS file: /cvsroot/simspark/simspark/spark/kerosin/inputserver/inputsystem.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** inputsystem.h 25 Dec 2005 18:32:27 -0000 1.2
--- inputsystem.h 8 Jan 2006 14:06:01 -0000 1.3
***************
*** 67,76 ****
AddInputInternal().
*/
! virtual void AddInput(Input& input);
/** this is the actual addition of input to the queue. It should
only be used by InputDevices!
*/
! void AddInputInternal(Input& input);
//! retrieve an input from the queue
--- 67,76 ----
AddInputInternal().
*/
! virtual void AddInput(const Input& input);
/** this is the actual addition of input to the queue. It should
only be used by InputDevices!
*/
! void AddInputInternal(const Input& input);
//! retrieve an input from the queue
Index: inputsystem.cpp
===================================================================
RCS file: /cvsroot/simspark/simspark/spark/kerosin/inputserver/inputsystem.cpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** inputsystem.cpp 25 Dec 2005 18:32:27 -0000 1.2
--- inputsystem.cpp 8 Jan 2006 14:06:00 -0000 1.3
***************
*** 42,46 ****
void
! InputSystem::AddInput(Input& input)
{
AddInputInternal(input);
--- 42,46 ----
void
! InputSystem::AddInput(const Input& input)
{
AddInputInternal(input);
***************
*** 71,75 ****
void
! InputSystem::AddInputInternal(Input& input)
{
mInputQueue.push_back(input);
--- 71,75 ----
void
! InputSystem::AddInputInternal(const Input& input)
{
mInputQueue.push_back(input);
|