dji-sdk / Guidance-SDK

The official Guidance SDK package for Windows, Ubuntu and XU3.
134 stars 98 forks source link

Use member function as a callback. #28

Open lounick opened 7 years ago

lounick commented 7 years ago

Hi,

I'm trying to write a wrapper around your SDK. Unfortunately set_sdk_event_handler only accepts a function pointer making it unusable with any member function of a class.

Could you possibly overload the function to accept class member functions? As an example you can see here.

Thanks!

tangketan commented 7 years ago

Thanks for your suggestion. Will add this type of callback soon.

lounick commented 7 years ago

Great! Thanks! :smile:

loiopol commented 6 years ago

Hi @tangketan, can you give me an update about this Issue please? You have added the overloaded function nowaday?

Best regards