Changed InputDeviceButton to unmute on push and hold while in push to talk mode

This commit is contained in:
Preston Bezos 2019-06-06 09:19:32 -07:00
parent 1c5740e5e8
commit 2592784814

View file

@ -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);