mirror of
https://github.com/vale981/VoiDPlugins
synced 2025-03-05 09:11:38 -05:00
Use new Info to get screen area
This commit is contained in:
parent
e238448e7d
commit
2846ad68a9
1 changed files with 12 additions and 6 deletions
|
@ -4,6 +4,7 @@ using HidSharp;
|
|||
using OpenTabletDriver.Plugin;
|
||||
using OpenTabletDriver.Plugin.Attributes;
|
||||
using OpenTabletDriver.Plugin.Output;
|
||||
using OpenTabletDriver.Plugin.Platform.Display;
|
||||
using OpenTabletDriver.Plugin.Platform.Pointer;
|
||||
using static WindowsInk.VMulti;
|
||||
|
||||
|
@ -23,13 +24,18 @@ namespace WindowsInk
|
|||
[PluginName("Relative Artist Mode (Windows Ink)"), SupportedPlatform(PluginPlatform.Windows)]
|
||||
public class WindowsInkRelative : RelativeOutputMode
|
||||
{
|
||||
[PluginIgnore, SupportedPlatform(PluginPlatform.Windows)]
|
||||
public class AbsoluteOutput : AbsoluteOutputMode
|
||||
private Area Output = new Area
|
||||
{
|
||||
public override IVirtualTablet VirtualTablet => WindowsInkState.InkHandler ?? new InkHandler(Output);
|
||||
}
|
||||
private AbsoluteOutput AbsoluteOutputHelper = new AbsoluteOutput();
|
||||
public override IVirtualMouse VirtualMouse => (WindowsInkState.InkHandler ?? new InkHandler(AbsoluteOutputHelper.Output));
|
||||
Width = Info.Driver.VirtualScreen.Width,
|
||||
Height = Info.Driver.VirtualScreen.Height,
|
||||
Position = new Vector2
|
||||
{
|
||||
X = Info.Driver.VirtualScreen.Position.X,
|
||||
Y = Info.Driver.VirtualScreen.Position.Y
|
||||
}
|
||||
};
|
||||
public override IVirtualMouse VirtualMouse => (WindowsInkState.InkHandler ?? new InkHandler(Output));
|
||||
|
||||
}
|
||||
|
||||
public class InkHandler : IVirtualTablet, IPressureHandler, IVirtualMouse
|
||||
|
|
Loading…
Add table
Reference in a new issue