Initial commit
This commit is contained in:
25
Torque/SDK/example/tutorial.base/client/playGui.cs
Normal file
25
Torque/SDK/example/tutorial.base/client/playGui.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
//-----------------------------------------------------------------------------
|
||||
// Torque Game Engine
|
||||
// Copyright (C) GarageGames.com, Inc.
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// PlayGui is the main TSControl through which the game is viewed.
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
function PlayGui::onWake(%this)
|
||||
{
|
||||
// Turn off any shell sounds...
|
||||
// alxStop( ... );
|
||||
$enableDirectInput = "1";
|
||||
activateDirectInput();
|
||||
|
||||
// Activate the game's action map
|
||||
moveMap.push();
|
||||
}
|
||||
|
||||
function PlayGui::onSleep(%this)
|
||||
{
|
||||
// Pop the keymap
|
||||
moveMap.pop();
|
||||
}
|
||||
Reference in New Issue
Block a user