Make input configuration more device-aware

Đang mở
#535 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
25/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
lua
Lĩnh vực
game-dev

Hướng nghiên cứu

Start by tracing how the existing key configuration assigns devices and handles gamepads, keyboards, and local multiplayer. The issue proposes device-specific configurations, keyboard exemptions, and restrictions for custom multi-device setups, but names no files, tests, or entry points. Done means those rules are implemented while preserving the stated multi-device use cases.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Client-side enhancement priority: 1 - middle

At the moment, if you connect two controllers, you have to configure both controllers individually in the key config to effectively gain 2 usable key configurations even if the controllers are the same (have the same GUID, should work with the same configuration but don't).

Applying input configurations by device instead of binding one or multiple devices to a single input configuration has various advantages:

  • For anything detected as a gamepad we can just apply the gamepad configuration straight up.
  • For gamepads, you no longer have the issue of only having stick OR dpad available.
  • configuration setups that don't make sense are no longer possible, e.g. binding from several devices or having the same input bound to multiple input configurations in local multiplayer
    • this includes making it more difficult to brick your input config to the degree that you have to delete the configuration file to start over.
  • Once per-keyboard inputs are available, people are almost immediately able to use the same keys on different keyboards

Keyboard inputs should initially be exempt from this to allow people in local vs to work together to set up a configuration with no friction until the aforementioned per-keyboard inputs become available.

Obvious disadvantage is that you couldn't use legitimate multi-device configurations, e.g. foot pedal + joystick or other complementary input devices.
But all things considered these could still be made available with the current mechanics under the following restrictions:

  • a device used in one custom configuration cannot be used in other special configurations
  • a device used in a custom configuration cannot be used as its own main device anymore
Ngôn ngữ chính
Lua
Star
30
Fork
20
Merge trung bình
3 ngày 15 giờ
Pull request đã merge (30 ngày)
17

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của panel-attack/panel-game

Tất cả issue của panel-attack/panel-game

Issue tương tự

Thêm issue về Lua

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.