Alexandre Perrot
Alexandre Perrot
I'm OK with doing an option for that. However, I'm wondering if there's a more elegant way to do this. Is it possible to listen to keyboard events on the...
If the handler is attached to the canvas, you need to give it a tab index and focus it in order to fire keyboard events. On the other hand, if...
Closing this, since this is super old. I'm not using glut anymore, I handle the context creation and event listeners myself, it is much more flexible and simple.
The problem also arises without embind, when compiling the above code as plain C EXPORTED_FUNCTIONS. This time however, storeAndReturn is not optimised and also suffers from the bug.
Here's a PR with a fix in embind code : #3249
Since the PR is merged, I think I can close this...
So, digging a little in the embind code, this issue seems to come from line 98 of embind.js : ``` javascript proto[methodName].overloadTable[prevFunc.argCount] = prevFunc; ``` Sometimes, `prevFunc.argCount` can be `undefined`....
I have found what's going wrong here, but not sure why it happens and I still can't reproduce it in a minimal code example. Anyway, here's the explanation : When...
From what I understand, in a normal execution, the only thing that makes step 3 to run after step 2 is that the native types (in the example of my...
Some news about this issue, I have changed the way I link the bindings file (from a normal object file to a static .bc library) and the issue disappeared. I...