-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
173 changed files
with
30,505 additions
and
35,494 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,32 @@ | ||
using HandheldCompanion.Inputs; | ||
using HandheldCompanion.Utils; | ||
using System; | ||
|
||
namespace HandheldCompanion.Actions | ||
{ | ||
[Serializable] | ||
public class GyroActions : IActions | ||
{ | ||
public MotionInput MotionInput = MotionInput.LocalSpace; | ||
public MotionMode MotionMode = MotionMode.Off; | ||
public bool MotionToggleStatus = false; | ||
public bool MotionTogglePressed = false; // for debouncing | ||
|
||
public ButtonState MotionTrigger = new(); | ||
|
||
public float gyroWeight = DefaultGyroWeight; | ||
|
||
// const vars | ||
public const int DefaultAxisAntiDeadZone = 15; | ||
public const AxisLayoutFlags DefaultAxisLayoutFlags = AxisLayoutFlags.RightStick; | ||
|
||
public const MouseActionsType DefaultMouseActionsType = MouseActionsType.Move; | ||
public const int DefaultSensivity = 33; | ||
public const int DefaultDeadzone = 10; | ||
public const float DefaultGyroWeight = 1.2f; | ||
|
||
public GyroActions() | ||
{ | ||
} | ||
} | ||
} | ||
using HandheldCompanion.Inputs; | ||
using HandheldCompanion.Utils; | ||
using System; | ||
|
||
namespace HandheldCompanion.Actions | ||
{ | ||
[Serializable] | ||
public class GyroActions : IActions | ||
{ | ||
public MotionInput MotionInput = MotionInput.LocalSpace; | ||
public MotionMode MotionMode = MotionMode.Off; | ||
public bool MotionToggleStatus = false; | ||
public bool MotionTogglePressed = false; // for debouncing | ||
|
||
public ButtonState MotionTrigger = new(); | ||
|
||
public float gyroWeight = DefaultGyroWeight; | ||
|
||
// const vars | ||
public const int DefaultAxisAntiDeadZone = 15; | ||
public const AxisLayoutFlags DefaultAxisLayoutFlags = AxisLayoutFlags.RightStick; | ||
|
||
public const MouseActionsType DefaultMouseActionsType = MouseActionsType.Move; | ||
public const int DefaultSensivity = 33; | ||
public const int DefaultDeadzone = 10; | ||
public const float DefaultGyroWeight = 1.2f; | ||
|
||
public GyroActions() | ||
{ | ||
} | ||
} | ||
} |
Oops, something went wrong.