mirror of
https://github.com/overte-org/overte.git
synced 2025-04-08 04:34:38 +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);
|
||||
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