I'm writing a game in UWP and C#, and I want the player to be able to indicate an action by pressing both left and right mousebuttons at (or almost at) the same time.
It's easy enough to have an event for one button, but within the event, I want to see if the other button has been pressed.
It's been suggested that this should work:
Window.Current.CoreWindow.GetKeyState(Windows.System.VirtualKey.RightButton).HasFlag(CoreVirtualKeyStates.Down)
but it doesn't - it always returns false for the button that wasn't detected first.
Any suggestions?