Skip to content

Commit

Permalink
feat(Simulator): add F1 control hint toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
dantman committed Mar 5, 2017
1 parent bce93db commit 4a1439b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Assets/VRTK/SDK/Simulator/SDK_InputSimulator.cs
Expand Up @@ -36,6 +36,8 @@ public class SDK_InputSimulator : MonoBehaviour

[Header("Operation Key Bindings")]

[Tooltip("Key used to toggle control hints on/off.")]
public KeyCode toggleControlHints = KeyCode.F1;
[Tooltip("Key used to switch between left and righ hand.")]
public KeyCode changeHands = KeyCode.Tab;
[Tooltip("Key used to switch hands On/Off.")]
Expand Down Expand Up @@ -154,6 +156,12 @@ private void OnDestroy()

private void Update()
{
if (Input.GetKeyDown(toggleControlHints))
{
showControlHints = !showControlHints;
hintCanvas.SetActive(showControlHints);
}

if (Input.GetKeyDown(handsOnOff))
{
if (isHand)
Expand Down

0 comments on commit 4a1439b

Please sign in to comment.