feat: linux support

This commit is contained in:
Gerard Gascón 2024-06-29 23:50:26 +02:00
parent 04ebe3f606
commit d996ca0efb
3 changed files with 80 additions and 1 deletions

View file

@ -3,6 +3,11 @@
namespace ControllerSlidePresenter {
internal abstract class Program {
private static async Task Main() {
#if OS_LINUX
if (!Linux.CanRun())
return;
#endif
IGamepadReader? reader = ControllerSelector.GetReader();
if (reader == null) {
Console.WriteLine("Invalid Controller Selected.");