bind lockinput

This commit is contained in:
Glenn Maynard
2006-06-27 23:07:11 +00:00
parent 5795d2b5f6
commit 0d10d38035
2 changed files with 5 additions and 2 deletions
+4 -2
View File
@@ -40,8 +40,6 @@ void Screen::Init()
{
ALLOW_OPERATOR_MENU_BUTTON.Load( m_sName, "AllowOperatorMenuButton" );
m_fLockInputSecs = 0;
SetFOV( 0 );
m_smSendOnPop = SM_None;
@@ -75,6 +73,8 @@ void Screen::BeginScreen()
* here, so a reused screen doesn't inherit these from the last time it was used. */
m_sNextScreen = RString();
m_fLockInputSecs = 0;
this->RunCommands( THEME->GetMetricA(m_sName, "ScreenOnCommand") );
}
@@ -316,6 +316,7 @@ class LunaScreen: public Luna<Screen>
public:
LunaScreen() { LUA->Register( Register ); }
static int GetNextScreen( T* p, lua_State *L ) { lua_pushstring(L, p->GetNextScreen() ); return 1; }
static int lockinput( T* p, lua_State *L ) { p->SetLockInputSecs(FArg(1)); return 0; }
static int PostScreenMessage( T* p, lua_State *L )
{
@@ -329,6 +330,7 @@ public:
{
ADD_METHOD( GetNextScreen );
ADD_METHOD( PostScreenMessage );
ADD_METHOD( lockinput );
Luna<T>::Register( L );
}
+1
View File
@@ -52,6 +52,7 @@ public:
virtual bool OverlayInput( const InputEventPlus &input );
virtual void Input( const InputEventPlus &input );
virtual void HandleScreenMessage( const ScreenMessage SM );
void SetLockInputSecs( float f ) { m_fLockInputSecs = f; }
void PostScreenMessage( const ScreenMessage SM, float fDelay );
void ClearMessageQueue();