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?
Asked
Active
Viewed 98 times
2 Answers
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
-
The problem is not related to WPF itself, but Leap Motion settings instead. – nphx Mar 03 '15 at 10:11