amethyst / amethyst/bracket-lib

BTerm::left_click is set to `true` at button press and release

未關閉
#203 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
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 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。