feat: linux support
This commit is contained in:
parent
04ebe3f606
commit
d996ca0efb
3 changed files with 80 additions and 1 deletions
|
@ -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.");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue