Get PointerServer's port from the app

This commit is contained in:
redphx
2024-06-09 11:41:00 +07:00
parent 0d59ab2ee2
commit a3a7a57b51
6 changed files with 17 additions and 8 deletions

View File

@@ -33,7 +33,7 @@ class WebSocketMouseDataProvider extends MouseDataProvider {
this.#pointerClient = PointerClient.getInstance();
this.#connected = false;
try {
this.#pointerClient.start(this.mkbHandler);
this.#pointerClient.start(STATES.pointerServerPort, this.mkbHandler);
this.#connected = true;
} catch (e) {
Toast.show('Cannot enable Mouse & Keyboard feature');