Skip to content

Commit

Permalink
Ptt setup on by default, readme, no accessibility query
Browse files Browse the repository at this point in the history
  • Loading branch information
pierr3 committed May 9, 2024
1 parent 3c14d14 commit cac9628
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 17 deletions.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ TrackAudio is simply the next iteration of VectorAudio, using a different set of

### My PTT does not work on macOS

macOS has strict permissioning around background keyboard inputs. TrackAudio should prompt you on first launch to request accesibility permissions. Sometimes, upon updating the app, this setting will undo itself. In that case, please go to your Settings -> Privacy & Security -> Accessibility and add TrackAudio in the list (remove it if it was already there).
macOS has strict permissioning around background keyboard inputs. TrackAudio should prompt you on first launch to request input monitoring permissions. Sometimes, upon updating the app, this setting will undo itself. In that case, please go to your Settings -> Privacy & Security -> Input Monitoring and add TrackAudio in the list (remove it if it was already there). This is required purely because otherwise, your Push to Talk would not work when the window is not in focus (if you use a keyboard push to talk, a Joystick push to talk does not require this permission)

### Where are the log files stored?

Expand Down Expand Up @@ -48,6 +48,14 @@ Yes, but only if you add a frequency by callsign (must be defined in database).

Yes, using the menu on the right, however, this will only create one transceiver (antenna) at your center of visibility set in your atc client. This means that you will not get the same radio coverage as stations defined in database.

### What's this telemetry popup about?

TrackAudio utilizes remote telemetry in the event of a bug, sending an error report to a tool called Sentry. Only essential information from the crash report is sent, and no data leaves your device unless an error occurs. We do not record your IP address or VATSIM password. Your data would be sent to a third-party service, Sentry, to their servers located in Germany.

This is entirely optional, but greatly assists in tracking down errors.

If you opt-in, you can opt-out at any time in the settings. You will need to restart TrackAudio for this to fully take effect.

### What is XC and XCA?

When you left click XC on a frequency that you are listening to, and if you are logged in as ATC, all the transceivers of that frequency will be cross-coupled. This means that all transmissions received by a transceiver in that list will also be re-emitted by all other transceivers. This allows for pilots in different parts of your airspace to hear eachother, since they may be using a different transceiver. In general, you should be using XC every time you control.
Expand Down
2 changes: 1 addition & 1 deletion backend/src/InputHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include <string>

InputHandler::InputHandler()
: isPttSetupRunning(true)
: isPttSetupRunning(false)
, timer(0, 35)
{
timer.start(Poco::TimerCallback<InputHandler>(*this, &InputHandler::onTimer));
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 1 addition & 14 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import {
BrowserWindow,
dialog,
ipcMain,
systemPreferences,
} from "electron";

import { TrackAudioAfv, AfvEventTypes } from "trackaudio-afv";
Expand Down Expand Up @@ -142,18 +141,6 @@ app.on("ready", () => {
}
}

if (
process.platform === "darwin" &&
!systemPreferences.isTrustedAccessibilityClient(true)
) {
dialog.showMessageBoxSync({
type: "info",
message:
"This application requires accessibility permissions (for push to talk to work). Please grant these in System Preferences.",
buttons: ["OK"],
});
}

const bootstrapOutput = TrackAudioAfv.Bootstrap(process.resourcesPath);

if (bootstrapOutput.needUpdate) {
Expand Down Expand Up @@ -214,7 +201,7 @@ ipcMain.handle("get-configuration", () => {
});

ipcMain.handle("request-ptt-key-name", () => {
void TrackAudioAfv.RequestPttKeyName();
TrackAudioAfv.RequestPttKeyName();
});

//
Expand Down

0 comments on commit cac9628

Please sign in to comment.