I want to detect mouse left and right buttons click outside of app, I wanted to redo my application from WinForms to WPF but the problem is that in WinForms i just did "MouseButtons == MouseButtons.Right" and everything worked now when i want to do it in WPF i use "e.LeftButton == MouseButtonState.Pressed" where "e" is "MouseEventArgs" and "Mouse.LeftButton == MouseButtonState.Pressed". I don't know how to make it work outside of app.
My issue is that this method only works within the application window, but I need it to work outside of the app.