mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-17 10:00:46 -04:00
comments and descriptions
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
// Gamepad Mapping Settings Content
|
||||
// Purpose: Defines the Gamepad Mapping Settings 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, useMemo, useRef, useState } from 'react';
|
||||
import { useSettingsNamespace } from '../../settings/index.js';
|
||||
import { GAMEPAD_PROFILE_DEFAULT, GAMEPAD_SETTINGS_DEFAULTS } from '../../settings/namespaces.js';
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
// Reusable slider field for gamepad calibration controls.
|
||||
// Slider Field
|
||||
// Purpose: Defines the Slider Field 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 { NUMBER_FORMAT } from './constants.js';
|
||||
|
||||
export default function SliderField({ label, description, min, max, step, value, onChange }) {
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
// Gamepad mapping constants and action catalog.
|
||||
// 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 NUMBER_FORMAT = new Intl.NumberFormat(undefined, { maximumFractionDigits: 2 });
|
||||
|
||||
export const ACTIONS = [
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
// Gamepad mapping helper and capture functions.
|
||||
// helpers
|
||||
// Purpose: Defines the helpers 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 { CAPTURE_AXIS_THRESHOLD, CAPTURE_BUTTON_THRESHOLD, NUMBER_FORMAT } from './constants.js';
|
||||
|
||||
export function formatSource(source) {
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// Gamepad Mapping Settings
|
||||
// Purpose: Defines the Gamepad Mapping Settings 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 GamepadMappingSettingsContent from './GamepadMappingSettingsContent.jsx';
|
||||
|
||||
export default GamepadMappingSettingsContent;
|
||||
|
||||
Reference in New Issue
Block a user