mirror of
https://github.com/lubosz/overte.git
synced 2025-04-24 14:03:17 +02:00
Changed InputDeviceButton to unmute on push and hold while in push to talk mode
This commit is contained in:
parent
1c5740e5e8
commit
2592784814
1 changed files with 15 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue