Search found 17 matches
- 21 Apr 2023, 19:10
- Forum: General Discussion
- Replies: 8
- Views: 771
- 19 Apr 2023, 19:41
- Forum: General Discussion
- Replies: 8
- Views: 771
Re: Extending GamepadTrigger::OnButtonPress to conditionally handle events
Thanks that makes sense. The actual use case we have is the same as what is in the documentation being calling a close command in response to "Cancel". In this case handled should be set to true to avoid any further bubbling, is your suggestion to do something like above by extending Gamep...
- 18 Apr 2023, 01:52
- Forum: General Discussion
- Replies: 8
- Views: 771
Re: Extending GamepadTrigger::OnButtonPress to conditionally handle events
Sorry to comment on a solved thread but I'm wanting to do a similar thing and just wondered what the background was for GamepadTrigger and KeyTrigger not setting handled to true by default?
- 29 Mar 2023, 19:02
- Forum: General Discussion
- Replies: 4
- Views: 133
Re: Commands and being stack allocated in view models
Awesome thanks both, I suppose if we aren't having performance issues there is no harm allocating on the heap by default.
- 27 Mar 2023, 20:24
- Forum: General Discussion
- Replies: 4
- Views: 133
Re: Commands and being stack allocated in view models
A little more context for why I am asking this. I'm sometimes hitting a crash where a stack allocated command is decremented after being released. The command is stack allocated in a view model and bound to a button and game pad trigger as follows: <b:Interaction.Triggers> <noesis:GamepadTrigger Fir...
- 27 Mar 2023, 19:45
- Forum: General Discussion
- Replies: 4
- Views: 133
Commands and being stack allocated in view models
Hello, In the commands tutorial there is a note about stack allocating commands: In this sample DelegateCommand is not allocated in the heap to reduce allocations as explained in the C++ Architecture Guide. This is one of those scenarios where it is safe to do so and reference counting is not needed...
- 25 Oct 2022, 19:55
- Forum: General Discussion
- Replies: 9
- Views: 1056
Re: Assertion when using TemplateBinding
Just a quick update, I've identified the problematic TemplateBinding and replaced it with the above fix. So all good there!
- 24 Oct 2022, 19:16
- Forum: General Discussion
- Replies: 9
- Views: 1056
Re: Assertion when using TemplateBinding
Ahh interesting, I think we must be still using an older version of Noesis that doesn't have this change. But to elaborate a bit more, I'm essentially having trouble identifying the problematic TempalteBinding when the assert throws.
- 22 Oct 2022, 02:04
- Forum: General Discussion
- Replies: 9
- Views: 1056
Re: Assertion when using TemplateBinding
Sorry to open back up quite an old thread but I am encountering this issue at the moment. The problem is I'm having a hard time identifying the exact TemplateBinding that is causing the issue. Any tips to debug this further?
- 12 Oct 2022, 00:20
- Forum: General Discussion
- Replies: 4
- Views: 170