From f3b08501c071c4b5cab44ed56cfdad067c6e0862 Mon Sep 17 00:00:00 2001 From: Daniel Buckmaster Date: Fri, 31 Oct 2014 08:07:19 +1100 Subject: [PATCH] Enable gamepad input when the startup GUI wakes. --- Templates/Empty/game/scripts/gui/startupGui.cs | 6 ++++++ Templates/Full/game/scripts/gui/startupGui.cs | 6 ++++++ 2 files changed, 12 insertions(+) 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;