mirror of
https://github.com/hanetzer/sdraw_mods_cvr.git
synced 2025-09-06 03:39:23 +00:00
Update to LeapCSharp 5.9.0
This commit is contained in:
parent
987aa798ba
commit
d748e10241
11 changed files with 343 additions and 54 deletions
27
ml_lme_cvr/vendor/LeapCSharp/Events.cs
vendored
27
ml_lme_cvr/vendor/LeapCSharp/Events.cs
vendored
|
@ -106,14 +106,41 @@ namespace Leap
|
|||
/// </summary>
|
||||
public class PolicyEventArgs : LeapEventArgs
|
||||
{
|
||||
public PolicyEventArgs(UInt64 currentPolicies, UInt64 oldPolicies, bool oldPolicyIsValid, Device device) : base(LeapEvent.EVENT_POLICY_CHANGE)
|
||||
{
|
||||
this.currentPolicies = currentPolicies;
|
||||
this.oldPolicies = oldPolicies;
|
||||
this.device = device;
|
||||
}
|
||||
|
||||
[Obsolete("Use the constructor that takes the device and oldPolicyIsValid flag")]
|
||||
public PolicyEventArgs(UInt64 currentPolicies, UInt64 oldPolicies) : base(LeapEvent.EVENT_POLICY_CHANGE)
|
||||
{
|
||||
this.currentPolicies = currentPolicies;
|
||||
this.oldPolicies = oldPolicies;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Current policy flags
|
||||
/// </summary>
|
||||
public UInt64 currentPolicies { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Previous policy flags, if known
|
||||
/// </summary>
|
||||
public UInt64 oldPolicies { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Is the value for the old policy flags valid / known
|
||||
/// @since 5.7.0 (plugin)
|
||||
/// </summary>
|
||||
public bool oldPolicyIsValid { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The device associated with the policy flag change
|
||||
/// @since 5.7.0 (plugin)
|
||||
/// </summary>
|
||||
public Device device { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue