refactor: made GamepadReader an interface
This commit is contained in:
parent
9e0abe972f
commit
36574bdf46
4 changed files with 11 additions and 11 deletions
|
@ -10,11 +10,11 @@ using wtf.cluster.JoyCon.Rumble;
|
|||
|
||||
namespace SwitchSlidePresenter;
|
||||
|
||||
public class JoyConRead : GamepadReader {
|
||||
public override event Action NextSlide;
|
||||
public override event Action PrevSlide;
|
||||
public class JoyConRead : IGamepadReader {
|
||||
public event Action NextSlide;
|
||||
public event Action PrevSlide;
|
||||
|
||||
public override async Task Read() {
|
||||
public async Task Read() {
|
||||
Console.OutputEncoding = Encoding.UTF8;
|
||||
|
||||
HidDevice? device = GetHidDevice();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue