mirror of
https://github.com/overte-org/overte.git
synced 2025-04-13 16:24:47 +02:00
Merge pull request #15688 from PrestonB1123/PushToTalk
DEV-94: Push to Talk
This commit is contained in:
commit
f3f0c4de43
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