mirror of
https://github.com/vale981/VoiDPlugins
synced 2025-03-04 16:51:38 -05:00
Use new VMulti Digitizer
This commit is contained in:
parent
1ec823a697
commit
71daf09c86
2 changed files with 3 additions and 3 deletions
|
@ -60,7 +60,7 @@ namespace VoiDPlugins.OutputMode
|
|||
|
||||
public void SetPressure(float percentage)
|
||||
{
|
||||
RawPointer->Pressure = (ushort)(percentage * 8191);
|
||||
RawPointer->Pressure = (ushort)(percentage * 16383);
|
||||
}
|
||||
|
||||
public void SetTilt(Vector2 tilt)
|
||||
|
|
|
@ -8,7 +8,7 @@ namespace VoiDPlugins.Library.VMulti.Device
|
|||
{
|
||||
public DigitizerInputReport()
|
||||
{
|
||||
Header = new VMultiReportHeader(Unsafe.SizeOf<DigitizerInputReport>(), 0x05);
|
||||
Header = new VMultiReportHeader(Unsafe.SizeOf<DigitizerInputReport>(), 0x06);
|
||||
X = 0;
|
||||
Y = 0;
|
||||
Pressure = 0;
|
||||
|
@ -19,7 +19,7 @@ namespace VoiDPlugins.Library.VMulti.Device
|
|||
public VMultiReportHeader Header;
|
||||
public ushort X; // X position of the pen from 0 to 32767
|
||||
public ushort Y; // Y position of the pen from 0 to 32767
|
||||
public ushort Pressure; // Pressure level from 0 to 8191
|
||||
public ushort Pressure; // Pressure level from 0 to 16383
|
||||
public byte XTilt; // X tilt of the pen from -127 to 127
|
||||
public byte YTilt; // Y tilt of the pen from -127 to 127
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue