-
Notifications
You must be signed in to change notification settings - Fork 162
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added "Cursor Horizontal Offset" feature to the "Leap Look" input mod…
…ule (#7).
- Loading branch information
1 parent
ad0ce40
commit 81c793f
Showing
7 changed files
with
68 additions
and
16 deletions.
There are no files selected for viewing
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
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
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
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
18 changes: 18 additions & 0 deletions
18
Unity/Assets/Hovercast/Devices/LeapLook/LeapLookInputSettings.cs
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
using Hovercast.Devices.Leap; | ||
using UnityEngine; | ||
|
||
namespace Hovercast.Devices.LeapLook { | ||
|
||
/*================================================================================================*/ | ||
public class LeapLookInputSettings : LeapInputSettings { | ||
|
||
//TODO: hide the "Cursor Finger" setting | ||
//TODO: custom editor with a slider with range [0,1] for "Cursor Horizontal Offset" | ||
|
||
public Transform LeapTransform { get; set; } | ||
public Transform CameraTransform { get; set; } | ||
public float CursorHorizontalOffset { get; set; } | ||
|
||
} | ||
|
||
} |
8 changes: 8 additions & 0 deletions
8
Unity/Assets/Hovercast/Devices/LeapLook/LeapLookInputSettings.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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