feat: Added wiimote support and cleaned up the project
This commit is contained in:
parent
36574bdf46
commit
baf15cdb0f
25 changed files with 263 additions and 69 deletions
14
SlidePresenter/Program.cs
Normal file
14
SlidePresenter/Program.cs
Normal file
|
@ -0,0 +1,14 @@
|
|||
namespace SwitchSlidePresenter {
|
||||
internal abstract class Program {
|
||||
private static async Task Main() {
|
||||
IGamepadReader? reader = ControllerSelector.GetReader();
|
||||
if (reader == null) {
|
||||
Console.WriteLine("Invalid Controller Selected.");
|
||||
return;
|
||||
}
|
||||
SlideSwitcher switcher = new(reader);
|
||||
await reader.Read();
|
||||
switcher.Dispose();
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue