Skip to content

Commit

Permalink
Use IAbsolutePositionReport instead of ITabletReport
Browse files Browse the repository at this point in the history
  • Loading branch information
Kuuuube committed Sep 12, 2024
1 parent e53c956 commit bf6c4ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Kuuube's_Chatter_Exterminator/Chatter_Exterminator_Raw.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public Vector2 Filter(Vector2 input) {
public event Action<IDeviceReport> Emit;

public void Consume(IDeviceReport value) {
if (value is ITabletReport report) {
if (value is IAbsolutePositionReport report) {
report.Position = Filter(report.Position);
value = report;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public Vector2 Filter(Vector2 input) {
public event Action<IDeviceReport> Emit;

public void Consume(IDeviceReport value) {
if (value is ITabletReport report) {
if (value is IAbsolutePositionReport report) {
report.Position = Filter(report.Position);
value = report;
}
Expand Down

0 comments on commit bf6c4ff

Please sign in to comment.