Delphi-Firemonkey

Reply
Avatar
by liewald

Anyone interested in putting a team together to create a firemonkey component to interface the leap motion?

Avatar
by GregStevenson

I may be interested. Just got my leap yesterday. I have D1-XE4.
--Greg

In reply to liewald
Avatar
by ChrisWPTechs

Slightly off topic, but have you managed to use the current SDK with fire monkey for either Windows or OSX? All I'm getting is unresolved externals when linking.

In reply to liewald
Avatar
by Michele

I'm just beginning to write a wrapper for Delphi, trying to convert by hand the .h files,
but sometimes C++ synthax is difficult to me.
Anyone with good C++ practice could be very useful, waiting for your help!
Thanks

Avatar
by liewald

Sorry my time is very limited at the moment as I am busy preparing a genetics paper but will help ASAP

In reply to Michele
Avatar
by Henk_t_H

It may be better to wait for Leap to support Delphi in the SDK.
Otherwise you would need to adjust your own translation every time a new version of the SDK would be provided.

If you want to be up and running to try it in Delphi quickly:
I took the sample program , moved the business logic to a thread and turned it into a DLL.
Also added an entry for a callback function that uses a pointer to a structure and an identifier for the structure type as arguments.
Where the sample program displays data to std::cout I replaced this to filling the appropriate structure and pass this to the callback function.
Then from Delphi I load this DLL dynamically and pass the address of my own function for processing the datastructure to the callback.

This way you can encapsulate a lot of functionality in C++ and pick the cherries without need to translate the whole SDK.
It also does not take too much knowledge of C++.

In reply to Michele
Avatar
by VCejka

Hi folks,
I'm joining in and starting to work, what is the current situation?
My aim is industrial application and i have the 1st customer for simple control GUI, so I mean it seriously and in short terms.