mirror of
https://github.com/lubosz/overte.git
synced 2025-08-07 17:01:06 +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);
|
Tablet.playSound(TabletEnums.ButtonClick);
|
||||||
muted = Qt.binding(function() { return AudioScriptingInterface.muted; }); // restore binding
|
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: {
|
onContainsMouseChanged: {
|
||||||
if (containsMouse) {
|
if (containsMouse) {
|
||||||
Tablet.playSound(TabletEnums.ButtonHover);
|
Tablet.playSound(TabletEnums.ButtonHover);
|
||||||
|
|
Loading…
Reference in a new issue