Skip to content

Commit 852ec23

Browse files
Refactor comments for clarity in AndroidGameController
1 parent a0d2970 commit 852ec23

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Packages/com.unity.inputsystem/InputSystem/Plugins/Android/AndroidGameController.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ namespace UnityEngine.InputSystem.Android
173173
/// - **NVIDIA Shield Console**
174174
/// - The L2 and R2 triggers generate both `AXIS_BRAKE` / `AXIS_GAS` and `AXIS_LTRIGGER` / `AXIS_RTRIGGER` events.
175175
/// - On most Android phones, only `AXIS_BRAKE` and `AXIS_GAS` are reported; `AXIS_LTRIGGER` and `AXIS_RTRIGGER` are not invoked.
176-
/// - For consistency across devices, triggers are therefore mapped exclusively to `AXIS_BRAKE` and `AXIS_GAS`.
176+
/// - For consistency across devices, triggers are mapped exclusively to `AXIS_BRAKE` and `AXIS_GAS`.
177177
/// - The Shield also reports `KEYCODE_BACK` instead of `KEYCODE_BUTTON_SELECT`, causing the **Options** (Xbox), **View** (DualShock), or **Select** buttons to be non-functional.
178178
///
179179
/// - **PS4 Controller Compatibility**
@@ -184,8 +184,8 @@ namespace UnityEngine.InputSystem.Android
184184
/// - **Driver-Dependent Behavior**
185185
/// - Gamepad mappings may differ even between devices running the *same Android version*.
186186
/// - For example, on **Android 8.0**:
187-
/// - **NVIDIA Shield Console:** buttons map correctly according to `AndroidGameControllerState` (e.g., `L1 → ButtonL1`, `R1 → ButtonR1`).
188-
/// - **Samsung Galaxy S9 / S8** and **Xiaomi Mi Note2:** mappings are inconsistent (e.g., `L1 → ButtonY`, `R1 → ButtonZ`).
187+
/// - **NVIDIA Shield Console:** buttons map correctly according to `AndroidGameControllerState` (for example, `L1 → ButtonL1`, `R1 → ButtonR1`).
188+
/// - **Samsung Galaxy S9 / S8** and **Xiaomi Mi Note2:** mappings are inconsistent (for example, `L1 → ButtonY`, `R1 → ButtonZ`).
189189
/// - These discrepancies stem from device-specific **driver differences**, not the Android OS itself.
190190
///
191191
/// Because mapping inconsistencies depend on vendor-specific drivers, it’s impractical to maintain per-device remaps.

0 commit comments

Comments
 (0)