Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is this not support Map? #42

Open
sonygod opened this issue Apr 28, 2022 · 0 comments
Open

Is this not support Map? #42

sonygod opened this issue Apr 28, 2022 · 0 comments

Comments

@sonygod
Copy link

sonygod commented Apr 28, 2022

I want to put all callback function input a map,and recall that by map key ,I do a test,but not work

var cameraFunctionMap:Map<String, cpp.Callable<(x:Float, y:Float, z:Float) -> Void>> = [];

Main_UseMeFromC_regeditCallbackFunction(instance ,"camera_move", onCameraMove);
Main_UseMeFromC_regeditCallbackFunction(instance, "camera_rotate", onCameraRotate);
Main_UseMeFromC_regeditCallbackFunction(instance, "camera_zoom", onCameraZoom);

and haxe call

cameraFunctionMap["camera_move"](1,2,3);//not work?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant