SteamInput Base

This commit is contained in:
Garry Newman 2019-06-19 11:35:35 +01:00
parent 41a0b31644
commit 985aefc2de
2 changed files with 40 additions and 0 deletions

View File

@ -43,6 +43,7 @@ public static void Init( uint appid )
SteamMatchmaking.InstallEvents();
SteamParties.InstallEvents();
SteamNetworkingSockets.InstallEvents();
SteamInput.InstallEvents();
RunCallbacksAsync();
}
@ -102,6 +103,7 @@ public static void Shutdown()
SteamParties.Shutdown();
SteamNetworkingUtils.Shutdown();
SteamNetworkingSockets.Shutdown();
SteamInput.Shutdown();
ServerList.Base.Shutdown();
SteamAPI.Shutdown();

View File

@ -0,0 +1,38 @@
using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
using Steamworks.Data;
namespace Steamworks
{
public static class SteamInput
{
static ISteamInput _internal;
internal static ISteamInput Internal
{
get
{
if ( _internal == null )
{
_internal = new ISteamInput();
_internal.Init();
}
return _internal;
}
}
internal static void Shutdown()
{
_internal = null;
}
internal static void InstallEvents()
{
// None?
}
}
}