feat: added preprocessor directive for platform dependant compilation
This commit is contained in:
parent
1e6f8c0b9f
commit
65d562ee74
5 changed files with 48 additions and 3 deletions
13
SlidePresenter/InputSender/LinuxInputSender.cs
Normal file
13
SlidePresenter/InputSender/LinuxInputSender.cs
Normal file
|
@ -0,0 +1,13 @@
|
|||
#if OS_LINUX
|
||||
namespace SwitchSlidePresenter.InputSender;
|
||||
|
||||
public class LinuxInputSender : IInputSender {
|
||||
public void NextSlide() {
|
||||
|
||||
}
|
||||
|
||||
public void PreviousSlide() {
|
||||
|
||||
}
|
||||
}
|
||||
#endif
|
13
SlidePresenter/InputSender/MacInputSender.cs
Normal file
13
SlidePresenter/InputSender/MacInputSender.cs
Normal file
|
@ -0,0 +1,13 @@
|
|||
#if OS_MAC
|
||||
namespace SwitchSlidePresenter.InputSender;
|
||||
|
||||
public class MacInputSender : IInputSender {
|
||||
public void NextSlide() {
|
||||
|
||||
}
|
||||
|
||||
public void PreviousSlide() {
|
||||
|
||||
}
|
||||
}
|
||||
#endif
|
|
@ -1,4 +1,5 @@
|
|||
using System.Runtime.InteropServices;
|
||||
#if OS_WINDOWS
|
||||
using System.Runtime.InteropServices;
|
||||
using Win32Api;
|
||||
|
||||
namespace SwitchSlidePresenter.InputSender;
|
||||
|
@ -44,4 +45,5 @@ public class WindowsInputSender : IInputSender {
|
|||
|
||||
Win32Api.Win32Api.SendInput((uint)inputs.Length, inputs, Marshal.SizeOf(typeof(Input)));
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue