0

I am trying to use output from the leap in WPF. However whenever I unfocus the window (for instance by pressing alt+tab), the leap stops giving output. So my question is, how to make sure the leap will output even when focused on a second application?

Danahi
  • 98
  • 1
  • 11

2 Answers2

2

You just need to set the Leap Motion API background frames policy.

controller.SetPolicy(Controller.PolicyFlag.POLICY_BACKGROUND_FRAMES);
Charles Ward
  • 1,388
  • 1
  • 8
  • 13
-1

WPF won't listen to any events outside its window. You have to explicitly set it up by yourself to listen to "globally" events.

An example of a global event is listening to keyboard even outside WPF's window

Community
  • 1
  • 1
123 456 789 0
  • 10,565
  • 4
  • 43
  • 72