Danro-Jump/Assets/Scripts/Runtime/Hardware/Com/Input/ComControllerButtonBinding.cs
Danil Iarosh 77186697f8 Prepare v0.1 gameplay and hardware foundation
Подробные изменения:

- Расширен основной gameplay loop: джетпак, новые платформы, оборудование, враги, прогрессия сложности и ограничения взаимодействий игрока.

- Добавлены Bootstrap-сервисы запуска приложения, защита, фокус окна, управление курсором и настройки сервисов через DI.

- Добавлена COM-интеграция с технической схемой Input System, обработкой кнопок/ADC, подсветкой и консольной диагностикой.

- Добавлен отдельный debug/logging модуль с каналами, обработчиками консоли и файловым выводом.

- Добавлены asmdef, link.xml, EditMode/PlayMode тесты и обновлена дорожная карта проекта.

Проверки:

- dotnet build .\\DanroJump.Runtime.csproj --no-restore

- dotnet build .\\DanroJump.Tests.EditMode.csproj --no-restore

- dotnet build .\\DanroJump.Tests.PlayMode.csproj --no-restore
2026-06-08 14:22:48 +03:00

25 lines
757 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System;
using UnityEngine;
namespace DanroJump.Hardware.Com.Input
{
/// <summary>
/// Связывает индекс входного бита COM-платы с логической кнопкой Input System устройства.
/// </summary>
[Serializable]
public struct ComControllerButtonBinding
{
[SerializeField] [Min(0)] private int bitIndex;
[SerializeField] private ComControllerControl control;
public ComControllerButtonBinding(int bitIndex, ComControllerControl control)
{
this.bitIndex = Mathf.Max(0, bitIndex);
this.control = control;
}
public int BitIndex => bitIndex;
public ComControllerControl Control => control;
}
}