Update of /cvsroot/simspark/simspark/spark/kerosin/inputserver
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6961
Modified Files:
input.cpp input.h
Log Message:
- added SetKeyPress() and SetKeyRelease()
Index: input.h
===================================================================
RCS file: /cvsroot/simspark/simspark/spark/kerosin/inputserver/input.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** input.h 25 Dec 2005 18:31:06 -0000 1.1
--- input.h 25 Dec 2005 19:21:13 -0000 1.2
***************
*** 64,67 ****
--- 64,73 ----
Input(EType t = eUnknown, TInputCode c=0, int i=-1);
+ //! marks this input structure to represent a key press event
+ void SetKeyPress();
+
+ //! marks this input structure to represent a key release event
+ void SetKeyRelease();
+
//! returns true if the input represents a key press event
bool KeyPress() const;
Index: input.cpp
===================================================================
RCS file: /cvsroot/simspark/simspark/spark/kerosin/inputserver/input.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** input.cpp 25 Dec 2005 18:31:06 -0000 1.1
--- input.cpp 25 Dec 2005 19:21:12 -0000 1.2
***************
*** 29,32 ****
--- 29,42 ----
}
+ void Input::SetKeyPress()
+ {
+ mData.l = 1;
+ }
+
+ void Input::SetKeyRelease()
+ {
+ mData.l = 0;
+ }
+
bool Input::KeyPress() const
{
|