Skip to content

Commit

Permalink
Use int instead of float for types that do not need decimals
Browse files Browse the repository at this point in the history
  • Loading branch information
Kuuuube committed Dec 24, 2023
1 parent 2eafae1 commit f758c20
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions Hover_Distance_Limiter/Hover_Distance_Limiter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,37 +82,37 @@ public void Consume(IDeviceReport value)

public PipelinePosition Position => PipelinePosition.PostTransform;

[Property("Minimum Hover Distance"), DefaultPropertyValue(0f), ToolTip
[Property("Minimum Hover Distance"), DefaultPropertyValue(0), ToolTip
("Hover Distance Limiter:\n\n" +
"Minimum Hover Distance: The minimum HoverDistance where input is sent.\n\n" +
"(HoverDistance can be found in the tablet debugger for supported tablets.)")]
public float Hover_min { set; get; }
public int Hover_min { set; get; }

[Property("Maximum Hover Distance"), DefaultPropertyValue(255f), ToolTip
[Property("Maximum Hover Distance"), DefaultPropertyValue(255), ToolTip
("Hover Distance Limiter:\n\n" +
"Maximum Hover Distance: The maximum HoverDistance where input is sent.\n\n" +
"(HoverDistance can be found in the tablet debugger for supported tablets.)")]
public float Hover_max { set; get; }
public int Hover_max { set; get; }

[BooleanProperty("Use Near Proximity Cutoff", ""), ToolTip
("Hover Distance Limiter:\n\n" +
"Use Near Proximity Cutoff: Uses NearProximity flag in Wacom tablet reports to filter out the unstable far range of hover where NearProximity is False.\n\n" +
"(NearProximity can be found in the tablet debugger for supported tablets.)")]
public bool NearProximity { set; get; }

[Property("Minimum Pressure"), DefaultPropertyValue(0f), ToolTip
[Property("Minimum Pressure"), DefaultPropertyValue(0), ToolTip
("Hover Distance Limiter:\n\n" +
"Minimum Pressure: The minimum Pressure where input is sent.\n\n" +
"(Only used when Use Pressure Range Cutoff is enabled.)\n" +
"(Pressure can be found in the tablet debugger.)")]
public float Pressure_min { set; get; }
public int Pressure_min { set; get; }

[Property("Maximum Pressure"), DefaultPropertyValue(16384f), ToolTip
[Property("Maximum Pressure"), DefaultPropertyValue(16384), ToolTip
("Hover Distance Limiter:\n\n" +
"Maximum Pressure: The maximum Pressure where input is sent.\n\n" +
"(Only used when Use Pressure Range Cutoff is enabled.)\n" +
"(Pressure can be found in the tablet debugger.)")]
public float Pressure_max { set; get; }
public int Pressure_max { set; get; }

[BooleanProperty("Remove Pen Reports", ""), ToolTip
("Hover Distance Limiter:\n\n" +
Expand Down

0 comments on commit f758c20

Please sign in to comment.