amethyst / amethyst/bracket-lib

Input api issues

Đang mở
#328 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Rust
Star
1.7k
Fork
126
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

I had a few issues using bracket-lib dealing with the Input API. Mostly because I assumed `ctx.key` represents all/most of the ascii character set at least, but it seems a bit lacking. For example when I input things like ">" and "<" (common up-stair/down-stair keys) the `ctx.key` never gets populated by anything. I think adding something that corresponds to the ascii character would help here - for example `ctx.ch` which returns a `char`. This would also be helpful for text input.

Just an idea. I eventually implemented input using `INPUT.lock()` which seemed to work much better, but took a bit more boilerplate.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

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.