Skip to content

Commit 7ec9ab5

Browse files
Stephen HodgsonStephen Hodgson
authored andcommitted
Merge branch 'HTK-master' into HTK-local
2 parents 083318b + 60c1195 commit 7ec9ab5

File tree

4 files changed

+42
-13
lines changed

4 files changed

+42
-13
lines changed

Assets/HoloToolkit/Input/Scripts/InputManager.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ private void UnregisterGazeManager()
331331
}
332332
}
333333

334-
private static readonly ExecuteEvents.EventFunction<IFocusable> OnFocusEnterEventHadler =
334+
private static readonly ExecuteEvents.EventFunction<IFocusable> OnFocusEnterEventHandler =
335335
delegate (IFocusable handler, BaseEventData eventData)
336336
{
337337
handler.OnFocusEnter();
@@ -352,7 +352,7 @@ private void GazeManager_FocusedChanged(GameObject previousObject, GameObject ne
352352

353353
if (previousObject != null)
354354
{
355-
ExecuteEvents.ExecuteHierarchy(previousObject, null, OnFocusEnterEventHadler);
355+
ExecuteEvents.ExecuteHierarchy(previousObject, null, OnFocusExitEventHandler);
356356
if (ShouldSendUnityUiEvents)
357357
{
358358
ExecuteEvents.ExecuteHierarchy(previousObject, GazeManager.Instance.UnityUIPointerEvent, ExecuteEvents.pointerExitHandler);
@@ -361,7 +361,7 @@ private void GazeManager_FocusedChanged(GameObject previousObject, GameObject ne
361361

362362
if (newObject != null)
363363
{
364-
ExecuteEvents.ExecuteHierarchy(newObject, null, OnFocusExitEventHandler);
364+
ExecuteEvents.ExecuteHierarchy(newObject, null, OnFocusEnterEventHandler);
365365
if (ShouldSendUnityUiEvents)
366366
{
367367
ExecuteEvents.ExecuteHierarchy(newObject, GazeManager.Instance.UnityUIPointerEvent, ExecuteEvents.pointerEnterHandler);

Assets/HoloToolkit/Input/Scripts/Voice/KeywordManager.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,10 @@ void Start()
7171

7272
void Update()
7373
{
74-
ProcessKeyBindings();
74+
if (keywordRecognizer.IsRunning)
75+
{
76+
ProcessKeyBindings();
77+
}
7578
}
7679

7780
void OnDestroy()
-11.3 MB
Binary file not shown.

Assets/HoloToolkit/Input/Tests/Textures/button_test_cubemap.tga.meta

Lines changed: 35 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)