From 2592784814bf4dcbaeb942e24d9ad8d1f2847072 Mon Sep 17 00:00:00 2001 From: Preston Bezos Date: Thu, 6 Jun 2019 09:19:32 -0700 Subject: [PATCH] Changed InputDeviceButton to unmute on push and hold while in push to talk mode --- .../inputDeviceButton/InputDeviceButton.qml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/interface/resources/qml/hifi/simplifiedUI/inputDeviceButton/InputDeviceButton.qml b/interface/resources/qml/hifi/simplifiedUI/inputDeviceButton/InputDeviceButton.qml index cb10cc5eef..c546af218b 100644 --- a/interface/resources/qml/hifi/simplifiedUI/inputDeviceButton/InputDeviceButton.qml +++ b/interface/resources/qml/hifi/simplifiedUI/inputDeviceButton/InputDeviceButton.qml @@ -77,6 +77,21 @@ Rectangle { Tablet.playSound(TabletEnums.ButtonClick); muted = Qt.binding(function() { return AudioScriptingInterface.muted; }); // restore binding } + + onPressed: { + if (pushToTalk) { + AudioScriptingInterface.pushingToTalk = true; + Tablet.playSound(TabletEnums.ButtonClick); + } + } + + onReleased: { + if (pushToTalk) { + AudioScriptingInterface.pushingToTalk = false; + Tablet.playSound(TabletEnums.ButtonClick); + } + } + onContainsMouseChanged: { if (containsMouse) { Tablet.playSound(TabletEnums.ButtonHover);