Skip to content

Commit 5f37d75

Browse files
committed
v2.0.1
1 parent 0ad0f74 commit 5f37d75

File tree

3 files changed

+7
-13
lines changed

3 files changed

+7
-13
lines changed

Runtime/Axis.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ public bool NegativeForFrames(int duration)
260260
throw
261261
new System.ArgumentOutOfRangeException("durationFrames", ValueMustNotBeNegative("durationFrames"));
262262
return
263-
Negative && duration >= frame;
263+
Negative && duration >= GetNegativeDurationFrames();
264264
}
265265

266266
/// <summary>
@@ -283,7 +283,7 @@ public bool NegativeForSeconds(float duration)
283283
throw
284284
new System.ArgumentOutOfRangeException("duration", ValueMustNotBeNegative("duration"));
285285
return
286-
Negative && duration >= time;
286+
Negative && duration >= GetNegativeDurationSeconds();
287287
}
288288

289289
/// <summary>
@@ -305,7 +305,7 @@ public bool NeutralForFrames(int duration)
305305
throw
306306
new System.ArgumentOutOfRangeException("durationFrames", ValueMustNotBeNegative("durationFrames"));
307307
return
308-
Neutral && duration >= frame;
308+
Neutral && duration >= GetNeutralDurationFrames();
309309
}
310310

311311
/// <summary>
@@ -328,7 +328,7 @@ public bool NeutralForSeconds(float duration)
328328
new System.ArgumentOutOfRangeException("durationSeconds",
329329
ValueMustNotBeNegative("durationSeconds"));
330330
return
331-
Neutral && duration >= time;
331+
Neutral && duration >= GetNeutralDurationSeconds();
332332
}
333333

334334
/// <summary>
@@ -350,7 +350,7 @@ public bool PositiveForFrames(int duration)
350350
throw
351351
new System.ArgumentOutOfRangeException("durationFrames", ValueMustNotBeNegative("durationFrames"));
352352
return
353-
Positive && duration >= frame;
353+
Positive && duration >= GetPositiveDurationFrames();
354354
}
355355

356356
/// <summary>
@@ -374,7 +374,7 @@ public bool PositiveForSeconds(float duration)
374374
new System.ArgumentOutOfRangeException("durationSeconds",
375375
ValueMustNotBeNegative("durationSeconds"));
376376
return
377-
Positive && duration >= time;
377+
Positive && duration >= GetPositiveDurationSeconds();
378378
}
379379

380380
/// <summary>

Runtime/TwinAxes.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -228,12 +228,6 @@ private void SetInputAction(InputAction action)
228228
/// </summary>
229229
public class Axis : InputProcessing.Axis
230230
{
231-
/// <summary>
232-
/// An <see cref="Axis"/> can implicitly be converted to its <see cref="float"/> value.
233-
/// </summary>
234-
public static implicit operator float(Axis axis)
235-
=> axis.Value;
236-
237231
/// <summary>
238232
/// Creates a new <see cref="Axis"/>. Used by a <see cref="TwinAxes"/> to create the <see cref="Axis"/>.
239233
/// </summary>

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "com.stephanhooft.input-processing",
3-
"version": "2.0.0",
3+
"version": "2.0.1",
44
"displayName": "Input Processing",
55
"description": "A package that contains helper classes to store and evaluate user input.",
66
"unity": "2020.3",

0 commit comments

Comments
 (0)