From f2ff9354d327a2bc1dc45856586fe58112532384 Mon Sep 17 00:00:00 2001 From: Omer Schloss Date: Sun, 20 Jun 2021 21:15:51 +0300 Subject: [PATCH] connection to FlightGear and design --- .idea/gradle.xml | 1 + app/build.gradle | 4 + app/src/main/AndroidManifest.xml | 3 +- .../flightgearcontrollerapp/model/FGModel.kt | 50 +++ .../flightgearcontrollerapp/model/FG_model.kt | 4 - .../model/TelnetClient.kt | 28 ++ .../view_model/VM_connection.kt | 4 - .../view_model/ViewModel.kt | 18 + .../flightgearcontrollerapp/views/Joystick.kt | 0 .../views/JoystickListener.kt | 0 .../views/JoystickView.kt | 4 + .../views/MainActivity.kt | 56 ++- app/src/main/res/layout/activity_main.xml | 347 ++++++++++-------- app/src/main/res/values/strings.xml | 7 + build.gradle | 1 - 15 files changed, 354 insertions(+), 173 deletions(-) create mode 100644 app/src/main/java/com/example/flightgearcontrollerapp/model/FGModel.kt delete mode 100644 app/src/main/java/com/example/flightgearcontrollerapp/model/FG_model.kt create mode 100644 app/src/main/java/com/example/flightgearcontrollerapp/model/TelnetClient.kt delete mode 100644 app/src/main/java/com/example/flightgearcontrollerapp/view_model/VM_connection.kt create mode 100644 app/src/main/java/com/example/flightgearcontrollerapp/view_model/ViewModel.kt delete mode 100644 app/src/main/java/com/example/flightgearcontrollerapp/views/Joystick.kt delete mode 100644 app/src/main/java/com/example/flightgearcontrollerapp/views/JoystickListener.kt create mode 100644 app/src/main/java/com/example/flightgearcontrollerapp/views/JoystickView.kt diff --git a/.idea/gradle.xml b/.idea/gradle.xml index 440480e..5cd135a 100644 --- a/.idea/gradle.xml +++ b/.idea/gradle.xml @@ -1,5 +1,6 @@ +