[PD] [leapmotion] how to get focus?

William Brent william.brent at gmail.com
Sat Apr 15 20:53:03 CEST 2023


Hi rolf, there are a few confusing things in the LEAP world across
Linux/Mac/Windows, but when I was working on this a few months back I did
successfully get both [leapmotion] and [ultraleap] working on multiple
Windows 10 machines with an original Leap Motion Controller. That said,
since you're on Windows 11 there could be some new wrinkles. But here are
some starting points to check:

First, since you're using [leapmotion] and the old 2.3.1 LEAP software, did
you see the Windows notes at the bottom of the INSTALL.txt in the GitHub
repo? You can see that here
<https://github.com/wbrent/leapmotion/blob/main/INSTALL.txt>. Maybe running
that dpinst64.exe installer will resolve things, though I'm not too
confident of that since you're already using your device successfully with
other software.

Second, have you tried installing the latest LEAP software (Gemini 5.7.2)
instead of the old 2.3.1? The latest software supports the new UltraLeap
controller as well as the original LEAP Motion Controller (which is what
you seem to be using). If you install that, you can try using the
[ultraleap] external instead, and hopefully things "just work." It's also
available via deken.

If both of those fail, my next guess would be that there are additional
.dll dependencies as of Windows 11. If that's the case, you'd see messages
in Pd's console warning that "The specified module could not be found."
About the focus gained/lost messages, those should occur when you click on
or away from Pd to make it the foreground application or not. If you're
getting spammed with a bunch of these messages and aren't changing
application focus, then there's an issue I should look into. That worked as
expected for me in my Windows tests back in January.

Let me know if any of this gets you unstuck. I was really hoping that these
updates to [leapmotion] would make it usable on all platforms for at least
a little while, so I'd love to get this working on Windows 11.
William



On Sat, Apr 15, 2023 at 12:41 PM <rolfm at dds.nl> wrote:

> i finally got my hands on a Mac:
>
> installed the same Pd, leapmotion software, [leapmotion] for Mac.
>
> with my controller i got immediate result.
>
> the message "focus gained" appeared instantly,
>
> and i could use the cursor-test: moving around and firing the bang.
>
>
> it really looks like there's something not right with [leapmotion] for
> Windows.
>
> (the leapmotion apps available for V2 are also working onmy Windows
> machine).
>
>
> NB fwiw, when opening leapmotion.h in Visual Studio there appears this
> message
>
> "// this project is built against LeapDeveloperKit_2.3.1+31549_mac, and
> requires the same version of libLeap.dylib"
>
> rolf
>
>
> rolfm at dds.nl schreef op 05-04-2023 14:03:
>
> Windows 11, PD-53.1
> SDK:LeapDeveloperKit_2.3.1+31549_win
>
> PD-console:
> ---------------------------------------------
> Leap Motion Listener: Initialized
> Leap Motion Service: Connected
> Leap Motion Connected Device: LP32497879452 v1.7.0
>
> ****************
> [leapmotion] for Pd version 0.2.3
> Forked from version 0.1 by Chikashi Miyama
> Updated by William Brent (Dec 2022)
> ****************
>
> Leap Motion Service: Connected
>
>
> Leap Motion Controller: Focus gained
> Leap Motion Controller: Focus lost
>
> Leap Motion Controller: Focus gained
> Leap Motion Controller: Focus lost
>
> Leap Motion Controller: Focus gained
> Leap Motion Controller: Focus lost
>
> -------------------------------------------------
>
> i've been trying to get leapmotion-help working, with minimal succes.
> where the leapmotion diagnostic visualiser shows my hands representation
> all the time,
> [leapmotion] does not report anything from the controler,
>  and now and then prints the messages focus gained/focus lost.
>
> only a few times suddenly a frame with general data showed up,
>  with or without a change of position for the button in the cursor-test.
>
> why, i don't know. i cannot reproduce it, whatever i do with my hand(s).
>
> the siamese appearance of the gained/lost messages gives the impression
> (to me) there's some 'secret magic' needed for [leapmotion] to get
> focussed.
>
> what am i missing or doing wrong?
>
> rolf
>
>
> _______________________________________________
> Pd-list at lists.iem.at mailing list
> UNSUBSCRIBE and account-management ->
> https://lists.puredata.info/listinfo/pd-list
>


-- 
William Brent

“Great minds flock together”
Conflations: conversational idiom for the 21st century

www.conflations.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20230415/24f4574d/attachment-0001.htm>


More information about the Pd-list mailing list