entity inputs

  • Thread starter Thread starter lioness
  • Start date Start date
L

lioness

Guest
ok a different question.

ive been coding an entity which has a single input with a parameter(which is a string).

how do i access that parameter in the code?
 
heres my code thus far for a keypad. whereby the input is the last button pressed on the keypad
 
void CMyLogicalEntity ::InputTick( inputdata_t &inputData )
{
//Get the last digit input
m_nLastDigit = inputData.value.char();
//Add the last digit to the keycode inputted thus far
m_nAttempt = m_nAttempt + m_nLastDigit;

//Is code attempt = keycode?
if ( m_nAttempt = m_nCode )
{
// Fire an output event
m_OnCracked.FireOutput( inputData.pActivator, this );


}

}
 
Back
Top