-
Notifications
You must be signed in to change notification settings - Fork 142
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When used with bevy
app, keystrokes cause EXC_BREAKPOINT
.
#100
Comments
bevy
app, keystrokes causes EXC_BREAKPOINT
.bevy
app, keystrokes cause EXC_BREAKPOINT
.
Hi, As a sidenote, you are aware this crate is to detect global keyboard events, and that bevy has probably better suited app level event stream catching, right ? Thanks for reporting. This is most likely due to who tries to get (and has) the main thread of the app. Since I expect bevy to also be listening for events at the app level, on the main thread, it's likely a conflict occurs. Since with If global events is not a requirement, then don't use If you get to the bottom of this, don't hesitate to share back here. |
Hello!
Yep, I'm looking to use Bevy to provide a display of something that the user interacts with while another app is in focus, so I'm trying to use
Just to clarify, does
Unfortunately, starting with Thanks again for your time! |
Trust the doc, not me, I forgot those details. But I remember MacOS being picky sometimes. Maybe main process is enough :) It's most likely something in bevy or winit is using similar OS capabilities and end up conflicting the OS. The OS error could also be helpful (it's usually an error code of some kind, and getting the message requires using google or some other OS function). |
Problem
Hello! I'm attempting use
rdev
along withbevy
. When I run both thebevy
app and therdev
listen loop at the same time,rdev
detects mouse events without an issue, but crashes when a keyboard event occurs. The resulting error being:Minimal example
The minimal version of the code to obtain this error is:
This error does not occur if the
rdev
listen is not used or if thebevy
app is not run (by replacing it with aloop{}
).Catching the error, the error seems to occur within
at line 94 of
keyboard.rs
.System:
macOS = Version 13.1 (22C65)
rust = 1.68.0-nightly
bevy = 0.9.1
rdev = 0.5.2
More complete output showing mouse input working correctly, but crashing on keyboard input:
(The error occurs immediately on first keyboard input, before anything is printed for that event.)
Additional notes
If, for the
bevy
app, I useMinimalPlugins
instead ofDefaultPlugins
, the error does not occur. Adding back in theWinitPlugin
(and it's requiredWindowPlugin
) the error occurs again. I'm assuming there is some conflict between howrdev
andwinit
listen for events.The text was updated successfully, but these errors were encountered: