Skip to content

Commit

Permalink
Use new VMulti Digitizer
Browse files Browse the repository at this point in the history
  • Loading branch information
X9VoiD committed Oct 31, 2023
1 parent 1ec823a commit 71daf09
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/OutputMode/WindowsInk/Pointer/WinInkBasePointer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public void SetEraser(bool isEraser)

public void SetPressure(float percentage)
{
RawPointer->Pressure = (ushort)(percentage * 8191);
RawPointer->Pressure = (ushort)(percentage * 16383);
}

public void SetTilt(Vector2 tilt)
Expand Down
4 changes: 2 additions & 2 deletions src/VoiDPlugins.Library/VMulti/Device/DigitizerInputReport.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public struct DigitizerInputReport
{
public DigitizerInputReport()
{
Header = new VMultiReportHeader(Unsafe.SizeOf<DigitizerInputReport>(), 0x05);
Header = new VMultiReportHeader(Unsafe.SizeOf<DigitizerInputReport>(), 0x06);
X = 0;
Y = 0;
Pressure = 0;
Expand All @@ -19,7 +19,7 @@ public DigitizerInputReport()
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
}
Expand Down

0 comments on commit 71daf09

Please sign in to comment.