Comments (6)
This might be related to #6.
from bracket-lib.
This might be related to #6.
After reading through #6, I think you actually meant #7. Anyway, I tried changing it to Poll
instead of Wait
and now it behaves as I would expect.
from bracket-lib.
Sorry for the delay - moving house is crazy, and I don't have reliable Internet at home until early next week. I'm pretty sure this is related to the Linux polling problems. *control_flow = ControlFlow::Wait;
gets events on Linux, but on Windows 10 it only works if the mouse is inside the window (so there are events being streamed in). On Windows 10, *control_flow = ControlFlow::Poll;
works consistently, but gives some problems for Linux users. I'll see if I can find a better way, otherwise it might be time for some platform-specific code.
Thanks!
from bracket-lib.
I've added a commit varying the tick behavior between Linux (which doesn't seem to like polling on a lot of platforms, there are earlier bugs about this) and Windows (which doesn't tick unless the window has focus and the mouse is over it on Wait mode). Hopefully that'll help.
from bracket-lib.
I've merged in some more changes that have it running smoothly on both Windows 10 and Ubuntu (in a VM on VirtualBox) on my machine.
from bracket-lib.
from bracket-lib.
Related Issues (20)
- rltk not building for wasm
- no_std support?
- BTerm set() with float data point HOT 1
- Hello Minimal Terminal crashes with Wayland error HOT 1
- Noise subtract with overflow
- FastNoise::seeded() creates 0 noise
- Add Support for More Font Sizes
- `hello_minimal` exampe crashes with `cross_term` backend enabled (vscode integrated terminal)
- `hello_terminal` example renders incorrectly with `cross_term` enabled only in WSL2 environment
- BLACK must be defined only once in the value namespace of this module
- book unavailable HOT 4
- Possible issue with drawing cerrain wall glyph combinations HOT 4
- Error sending request: Resource temporarily unavailable (exit code 11) HOT 1
- Request: Move terminal init and update logic out of main_loop
- Request: disable RPG-style dice string parsing thingy for `bracket-noise`
- egl: failed to create dri2 screen HOT 4
- Input on wasm repeats inputs on losing focus
- warning: bracket-lib/Cargo.toml: unused manifest key: package.incremental
- Issue running examples from the book on NixOS with Wayland (Plasma6) HOT 2
- Issues with link_resource HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bracket-lib.