Add: We should be able to enter information in the prompts using the numberpad.

This commit is contained in:
Charles Lohr
2005-01-26 06:29:02 +00:00
parent e9f6308e2c
commit e3ba3900d6
+22
View File
@@ -177,11 +177,33 @@ void ScreenTextEntry::Input( const DeviceInput& DeviceI, const InputEventType ty
}
}
//In the event we are using the numpad...
switch ( DeviceI.button )
{
case KEY_KP_C0: c='0'; break;
case KEY_KP_C1: c='1'; break;
case KEY_KP_C2: c='2'; break;
case KEY_KP_C3: c='3'; break;
case KEY_KP_C4: c='4'; break;
case KEY_KP_C5: c='5'; break;
case KEY_KP_C6: c='6'; break;
case KEY_KP_C7: c='7'; break;
case KEY_KP_C8: c='8'; break;
case KEY_KP_C9: c='9'; break;
case KEY_KP_SLASH: c='/'; break;
case KEY_KP_ASTERISK: c='*'; break;
case KEY_KP_HYPHEN: c='-'; break;
case KEY_KP_PLUS: c='+'; break;
case KEY_KP_PERIOD: c='.'; break;
case KEY_KP_EQUAL: c='='; break;
}
if( c >= ' ' )
{
m_sAnswer += c;
UpdateText();
}
break;
}
}