Open StenniHub opened 1 year ago
but they did seem to play nicely with Tauri when the window was in focus.
(i assume there's a "not" missing in that sentence) - did you try playing around with this api? https://docs.rs/tauri/latest/tauri/struct.Builder.html#method.device_event_filter - iirc it was primarily introduced after rdev users complained about that very same issue.
but they did seem to play nicely with Tauri when the window was in focus.
(i assume there's a "not" missing in that sentence) - did you try playing around with this api? https://docs.rs/tauri/latest/tauri/struct.Builder.html#method.device_event_filter - iirc it was primarily introduced after rdev users complained about that very same issue.
Yes, that is what I meant to say. For example I tested with a crate called inputbot. Whenever the Tauri app is in focus it would not trigger the callback, while it works fine while not in focus as well as in the aforementioned games that do not work for the regular global shortcuts.
I attempted all the options for device event filter, but it made no difference unfortunately. Thanks for the tip though.
Describe the bug
I am working on migrating an electron application for managing savefiles in games over to Tauri, but I am facing some issues with global shortcut handling. While the shortcuts appear to work in most games I tested (for example Elden Ring, Apex and Trackmania), I could not get them working when playing Dark Souls 2 or Dark Souls 3. I believe this is related to either exclusive fullscreen handling or DirectInput, but I am not entirely sure. I faced the same issue with global shortcuts in Electron, where I ended up using node-global-keyboard-listener instead. I tried a few crates for global key listeners, but they did seem to play nicely with Tauri when the window was in focus.
Reproduction
Expected behavior
Global shortcuts should work in fullscreen games
Platform and versions
Stack trace
No response
Additional context
No response