Merge pull request #15688 from PrestonB1123/PushToTalk

DEV-94: Push to Talk
This commit is contained in:
PrestonB1123 2019-06-06 16:49:08 -07:00 committed by GitHub
commit f3f0c4de43
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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