amethyst / amethyst/bracket-lib

Input api issues

Aberta
#328 0 comentários 0 reações 0 responsáveis Ver no GitHub
Linguagem predominante
Rust
Estrelas
1.7k
Forks
126
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

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.

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.