瀏覽代碼

Enable gamepad input when the startup GUI wakes.

Daniel Buckmaster 11 年之前
父節點
當前提交
f3b08501c0
共有 2 個文件被更改,包括 12 次插入0 次删除
  1. 6 0
      Templates/Empty/game/scripts/gui/startupGui.cs
  2. 6 0
      Templates/Full/game/scripts/gui/startupGui.cs

+ 6 - 0
Templates/Empty/game/scripts/gui/startupGui.cs

@@ -45,6 +45,12 @@ function loadStartup()
    //SFXPlayOnce(AudioGui, "art/sound/gui/startup");//SFXPlay(startsnd);
    //SFXPlayOnce(AudioGui, "art/sound/gui/startup");//SFXPlay(startsnd);
 }
 }
 
 
+function StartupGui::onWake(%this)
+{
+   $enableDirectInput = "1";
+   activateDirectInput();
+}
+
 function StartupGui::click(%this)
 function StartupGui::click(%this)
 {
 {
    %this.done = true;
    %this.done = true;

+ 6 - 0
Templates/Full/game/scripts/gui/startupGui.cs

@@ -45,6 +45,12 @@ function loadStartup()
    //SFXPlayOnce(AudioGui, "art/sound/gui/startup");//SFXPlay(startsnd);
    //SFXPlayOnce(AudioGui, "art/sound/gui/startup");//SFXPlay(startsnd);
 }
 }
 
 
+function StartupGui::onWake(%this)
+{
+   $enableDirectInput = "1";
+   activateDirectInput();
+}
+
 function StartupGui::click(%this)
 function StartupGui::click(%this)
 {
 {
    %this.done = true;
    %this.done = true;