diff --git a/Templates/Empty/game/scripts/gui/startupGui.cs b/Templates/Empty/game/scripts/gui/startupGui.cs index 675daeafa..afd4be7d4 100644 --- a/Templates/Empty/game/scripts/gui/startupGui.cs +++ b/Templates/Empty/game/scripts/gui/startupGui.cs @@ -45,6 +45,12 @@ function loadStartup() //SFXPlayOnce(AudioGui, "art/sound/gui/startup");//SFXPlay(startsnd); } +function StartupGui::onWake(%this) +{ + $enableDirectInput = "1"; + activateDirectInput(); +} + function StartupGui::click(%this) { %this.done = true; diff --git a/Templates/Full/game/scripts/gui/startupGui.cs b/Templates/Full/game/scripts/gui/startupGui.cs index 675daeafa..afd4be7d4 100644 --- a/Templates/Full/game/scripts/gui/startupGui.cs +++ b/Templates/Full/game/scripts/gui/startupGui.cs @@ -45,6 +45,12 @@ function loadStartup() //SFXPlayOnce(AudioGui, "art/sound/gui/startup");//SFXPlay(startsnd); } +function StartupGui::onWake(%this) +{ + $enableDirectInput = "1"; + activateDirectInput(); +} + function StartupGui::click(%this) { %this.done = true;