Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
InputEventsManager.PointerExited not fired
#1
Hi,

i'm testing out the SharpEngine for a upcoming project with Avalonia and WPF.
During this testing i noticed that the PointerExited event doesn't seem to fire when using Avalonia or WPF framework.
All other mouse events like PointerEntered or PointerMoved are working correctly when moving the mouse over the SharpEngine control. 
I've also tried it with your Samples application where it also doesn't seem to fire this event.

Is this a bug or do i have to implement this event manually by routing it from WPF/Avalonia to the InputEventsManager?
#2
I have tested the InputEventsManager sample that comes with v3.2.9386 again for Avalonia and WPF and it seems that the PointerExited event is working fine there:
   

In this sample, the PointerExited event is used to deselect the object when the mouse leaves it. This sets the model's material from the orange material back to gray. This seems to work fine. Otherwise, all the visited models would remain orange. Is this what happens in your case?
Andrej Benedik
#3
The event is working fine when fired from an object using the event sources. The object will be marked with orange color and switches back to gray when leaving. 
This works well, but what i wanted to achieve was to get notifications when the cursor enters/leaves the SharpEngine view (not a object). 
This works for the PointerEntered when the pointer hovers over the SharpEngine view, but not when leaving it.

I've extended the InputsManagerSample to log a message which does never fire for me:
Code:
protected override void OnInputEventsManagerInitialized(ManualInputEventsManager inputEventsManager)
{
    (...)
    
    inputEventsManager.PointerEntered += ((sender, args) => Debug.WriteLine("SceneView entered"));
    inputEventsManager.PointerExited += ((sender, args) => Debug.WriteLine("SceneView exited"));    
}
  


Forum Jump:


Users browsing this thread:
2 Guest(s)