You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the app.tick regardless of Strategy seemingly only ever pulls one keyboard event (with crossterm backend, didnt test others), is there a way to pull multiple keys as events or is that bad practice? (i have already tried PollStrategy::UpTo(10), which only pulls 1 keyboard event). the Ok(messages) vector is always just 1 length, event if there are more keyboard events waiting. (only at 2 length if there is a appquit event)
this is somewhat of a problem in 1.8 with mouses with unlocked scrollwheels (like Logitech G502) which can generate many key events before stopping) and in 1.9 it is a sever problem because just a hover causes a bunch of events.
is looping over app.tick(.., PollStrategy::TryFor(Duration::from_micros(1)) after the first tick the best solution?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Currently the
app.tick
regardless of Strategy seemingly only ever pulls one keyboard event (with crossterm backend, didnt test others), is there a way to pull multiple keys as events or is that bad practice? (i have already triedPollStrategy::UpTo(10)
, which only pulls 1 keyboard event). theOk(messages)
vector is always just 1 length, event if there are more keyboard events waiting. (only at 2 length if there is a appquit event)this is somewhat of a problem in 1.8 with mouses with unlocked scrollwheels (like Logitech G502) which can generate many key events before stopping) and in 1.9 it is a sever problem because just a hover causes a bunch of events.
is looping over
app.tick(.., PollStrategy::TryFor(Duration::from_micros(1))
after the first tick the best solution?Beta Was this translation helpful? Give feedback.
All reactions