amethyst / amethyst/bracket-lib
BTerm::left_click is set to `true` at button press and release
未關閉
- 主要語言
- Rust
- 星號
- 1.7k
- 分支
- 126
- PR 合併指標
- 30 天內沒有已合併 PR
描述
As the title says, `BTerm::left_click` is set twice per mouse click (press down and release), which leads to mouse-based events being fired twice in a row. I discovered this because toggles based on mouse clicks are being activated and deactivated again immediately.
I don't know if this is intended behaviour and it can be worked around easily, but it's nevertheless counter-intuitive.
Tested and verified with rltk 0.8.1 and bracket-lib tutorial chapter 74 by adding a check for `ctx::left_click` in the function
```rust
fn player_input(gs: &mut State, ctx: &mut Rltk) -> RunState {...}
```
貢獻指南
這個儲存庫沒有索引到貢獻指南
評估
這個 Issue 還沒有評估資料。