comments and descriptions

This commit is contained in:
legop3
2026-04-28 19:39:13 -04:00
parent 07ad9ab253
commit f13b85109e
101 changed files with 303 additions and 43 deletions
@@ -1,4 +1,6 @@
// Floating on-screen joystick used for mobile driving.
// Floating Joystick
// Purpose: Defines the Floating Joystick module and the local helpers/components used in this file.
// Scope: Keeps behavior unchanged while isolating this concern into a clear, single-responsibility unit.
import { useCallback, useEffect, useRef, useState } from 'react';
import { clampUnit } from '../../controls/controlMath.js';
@@ -1,4 +1,6 @@
// Hold-to-run aux motor button for mobile controls.
// Mobile Aux Button
// Purpose: Defines the Mobile Aux Button module and the local helpers/components used in this file.
// Scope: Keeps behavior unchanged while isolating this concern into a clear, single-responsibility unit.
export default function MobileAuxButton({ id, label, values, color, disabled, onPress, onRelease }) {
return (
<button
@@ -1,4 +1,6 @@
// Mobile controls layout and interaction wiring.
// Mobile Controls Content
// Purpose: Defines the Mobile Controls Content module and the local helpers/components used in this file.
// Scope: Keeps behavior unchanged while isolating this concern into a clear, single-responsibility unit.
import { useCallback, useEffect, useRef } from 'react';
import { useControlSystem } from '../../controls/index.js';
import { clampUnit } from '../../controls/controlMath.js';
@@ -1,4 +1,6 @@
// Mobile controls constants.
// constants
// Purpose: Defines the constants module and the local helpers/components used in this file.
// Scope: Keeps behavior unchanged while isolating this concern into a clear, single-responsibility unit.
export const SOURCE = 'mobile-joystick';
export const JOYSTICK_RADIUS = 80;
export const JOYSTICK_SMOOTHING = 0.15;
@@ -1,3 +1,6 @@
// Mobile Controls
// Purpose: Defines the Mobile Controls module and the local helpers/components used in this file.
// Scope: Keeps behavior unchanged while isolating this concern into a clear, single-responsibility unit.
import MobilePortraitControls, { MobileActionsColumn, MobileDriveColumn } from './MobileControlsContent.jsx';
export { MobileActionsColumn, MobileDriveColumn };