Hi,
I recently got my hands on a LeapMotion controller and I'm trying to create an application to send data from the Leap to other programs using OSC signals. To my delight there are a few great libraries available that make this an easy task. However, I encountered one annoying problem: as soon as the window is deactivated (by clicking inside another program), no more information is being retrieved from the Leap. Is there a way to have the application window always on top? I tried all resources I could find, but I'm fairly new to Processing and I'm overwhelmed by all resources available, so I hope the answer isn't somewhere right under my nose...
I found to use the function PApplet.requestFocus() somewhere in another thread, but this gives the error "Cannot make a static reference to the non-static method requestFocus() from the type Component". No clue what that means...
Maybe having the window on top isn't the right answer at all, but it seems like the easiest solution so far.
I'm using the OscP5 and LeapMotionP5 libraries, if it helps.
Thanks!
-CMB
I recently got my hands on a LeapMotion controller and I'm trying to create an application to send data from the Leap to other programs using OSC signals. To my delight there are a few great libraries available that make this an easy task. However, I encountered one annoying problem: as soon as the window is deactivated (by clicking inside another program), no more information is being retrieved from the Leap. Is there a way to have the application window always on top? I tried all resources I could find, but I'm fairly new to Processing and I'm overwhelmed by all resources available, so I hope the answer isn't somewhere right under my nose...
I found to use the function PApplet.requestFocus() somewhere in another thread, but this gives the error "Cannot make a static reference to the non-static method requestFocus() from the type Component". No clue what that means...
Maybe having the window on top isn't the right answer at all, but it seems like the easiest solution so far.
I'm using the OscP5 and LeapMotionP5 libraries, if it helps.
Thanks!
-CMB
1