Search found 32 matches

by unvestigate
11 Nov 2020, 11:41
Forum: General Discussion
Replies: 15
Views: 3826

Re: Pause menu gamepad input suddenly stops working

You are right. That was the problem! Adding Activate()/Deactivate() calls fixed the problem. Thank you!
by unvestigate
11 Nov 2020, 10:44
Forum: General Discussion
Replies: 15
Views: 3826

Re: Pause menu gamepad input suddenly stops working

It would seem that pressing the space key "clicks" a button before doing an Alt-Tab, but it stops working afterwards, just like the issue with the gamepad. Regarding the AcceptsReturn property, I am unsure how to check that. I am using NocturnalStyle.xaml which IIRC comes with Noesis and I...
by unvestigate
11 Nov 2020, 09:30
Forum: General Discussion
Replies: 15
Views: 3826

Re: Pause menu gamepad input suddenly stops working

Hi, Sorry for taking a long time to get back to you. I finally had time to properly debug this and found that the Resume/Exit buttons stop working with the gamepad after Alt-Tabbing away from the game and back. I also checked what GetIsFocusEngagementEnabled() returns and it is false both before and...
by unvestigate
23 Oct 2020, 12:48
Forum: General Discussion
Replies: 15
Views: 3826

Re: Pause menu gamepad input suddenly stops working

How Typical. I put in the checks to see if the focus engagement is enabled and now I cannot reproduce the bug. I'll report back when it happens again.
by unvestigate
22 Oct 2020, 20:19
Forum: General Discussion
Replies: 15
Views: 3826

Re: Pause menu gamepad input suddenly stops working

Thanks for your suggestions, been a busy day. I'll try to get to this tomorrow...
by unvestigate
21 Oct 2020, 16:50
Forum: General Discussion
Replies: 15
Views: 3826

Re: Pause menu gamepad input suddenly stops working

By "HWheel()" I assume you mean "MouseHWheel()", right? Regardless, I don't inject any horizontal scrolling at all so it should not be the problem. Regarding the focus, what would be the easiest way to check that? When the bug occurs, I can see the highlighted button on the pause...
by unvestigate
21 Oct 2020, 14:21
Forum: General Discussion
Replies: 15
Views: 3826

Re: Pause menu gamepad input suddenly stops working

One more thing. I just checked my code and I have never called the Scroll() or HScroll() methods on the view, since I was getting some unexpected behavior earlier (Don't remember exactly what, this was years ago...) So it seems like I never inject any scroll event at all (unless you meant something ...
by unvestigate
21 Oct 2020, 14:18
Forum: General Discussion
Replies: 15
Views: 3826

Re: Pause menu gamepad input suddenly stops working

Huh, interesting. Do you mean the gamepad axis that scrolls between the buttons? In this case the D-pad up/down scrolls between the items, not an analogue axis. In fact, I don't think I have done anything besides adding the KeyboardNavigation.DirectionalNavigation="Cycle" attribute to the ...
by unvestigate
21 Oct 2020, 13:30
Forum: General Discussion
Replies: 15
Views: 3826

Pause menu gamepad input suddenly stops working

Hi! I have a pause menu with a few buttons. I'll post the XAML code for the pause menu user control below. The pause menu has a few buttons, namely Resume, Load Game and Exit. The pause menu works great 95% of the time, but occasionally I run into a problem where pressing a button on the gamepad no ...
by unvestigate
21 Oct 2020, 12:34
Forum: General Discussion
Replies: 9
Views: 2319

Re: Read string out of ResourceDictionary in C++?

Nice, thanks!