mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2024-12-28 07:35:55 +03:00
SteamInput Base
This commit is contained in:
parent
41a0b31644
commit
985aefc2de
@ -43,6 +43,7 @@ public static void Init( uint appid )
|
|||||||
SteamMatchmaking.InstallEvents();
|
SteamMatchmaking.InstallEvents();
|
||||||
SteamParties.InstallEvents();
|
SteamParties.InstallEvents();
|
||||||
SteamNetworkingSockets.InstallEvents();
|
SteamNetworkingSockets.InstallEvents();
|
||||||
|
SteamInput.InstallEvents();
|
||||||
|
|
||||||
RunCallbacksAsync();
|
RunCallbacksAsync();
|
||||||
}
|
}
|
||||||
@ -102,6 +103,7 @@ public static void Shutdown()
|
|||||||
SteamParties.Shutdown();
|
SteamParties.Shutdown();
|
||||||
SteamNetworkingUtils.Shutdown();
|
SteamNetworkingUtils.Shutdown();
|
||||||
SteamNetworkingSockets.Shutdown();
|
SteamNetworkingSockets.Shutdown();
|
||||||
|
SteamInput.Shutdown();
|
||||||
ServerList.Base.Shutdown();
|
ServerList.Base.Shutdown();
|
||||||
|
|
||||||
SteamAPI.Shutdown();
|
SteamAPI.Shutdown();
|
||||||
|
38
Facepunch.Steamworks/SteamInput.cs
Normal file
38
Facepunch.Steamworks/SteamInput.cs
Normal 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?
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user