-
Notifications
You must be signed in to change notification settings - Fork 446
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add screentop tracking mode support. (#319)
* Add screentop tracking mode support. * Fix swapping between HMD and screentop tracking modes. Adding example.
- Loading branch information
1 parent
5a89a25
commit 131095b
Showing
3 changed files
with
45 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<html> | ||
<head> | ||
<title>HMD/Screentop Optimization - Leap</title> | ||
<script src="../leap-1.1.1.js"></script> | ||
<script> | ||
var controller = new Leap.Controller({optimizeScreentop: true}).connect(); | ||
</script> | ||
</head> | ||
<body> | ||
<button onclick="controller.setOptimizeHMD(true);">controller.setOptimizeHMD(true);</button> | ||
<button onclick="controller.setOptimizeHMD(false);">controller.setOptimizeHMD(false);</button> | ||
<br/> | ||
<br/> | ||
<button onclick="controller.setOptimizeScreentop(true);">controller.setOptimizeScreentop(true);</button> | ||
<button onclick="controller.setOptimizeScreentop(false);">controller.setOptimizeScreentop(false);</button> | ||
<pre> | ||
<div id="out"></div> | ||
</pre> | ||
</body> | ||
</html> |
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
Large diffs are not rendered by default.
Oops, something went wrong.