mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2024-12-26 22:55:55 +03:00
31 lines
697 B
C#
31 lines
697 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
|
using Steamworks.Data;
|
|
|
|
namespace Steamworks
|
|
{
|
|
[TestClass]
|
|
[DeploymentItem( "steam_api64.dll" )]
|
|
[DeploymentItem( "controller_config/game_actions_252490.vdf" )]
|
|
public class InputTest
|
|
{
|
|
[TestMethod]
|
|
public void ControllerList()
|
|
{
|
|
foreach ( var controller in SteamInput.Controllers )
|
|
{
|
|
Console.Write( $"Controller: {controller}" );
|
|
|
|
var dstate = controller.GetDigitalState( "fire" );
|
|
var astate = controller.GetAnalogState( "Move" );
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|