mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-15 17:12:59 -04:00
18 lines
676 B
JavaScript
18 lines
676 B
JavaScript
// Button-Box Configuration
|
|
// Purpose: Defines whether the optional physical button box is active.
|
|
// Scope: Contains configuration metadata only and never initializes hardware.
|
|
const { strictObject, boolean } = require('../../configuration/schemaHelpers');
|
|
|
|
module.exports = {
|
|
key: 'buttonBox',
|
|
feature: true,
|
|
defaultValue: { enabled: false },
|
|
schema: strictObject({
|
|
enabled: boolean({ description: 'Registers the physical button-box input route and enables its persistent button rewards and effects after restart.' }),
|
|
}, {
|
|
title: 'Button box',
|
|
description: 'Optional physical button-box input and reward system.',
|
|
required: ['enabled'],
|
|
}),
|
|
};
|