You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to create a SDL2 package, but Structs I generated from SDL_Events are not working with Window Events.
They worked with byte-type version 0.1.7 looking at divy/deno_sdl2. I even tested updating divy/deno_sdl2 to the lastest version 0.4.0 and still not spitting out SDL_WindowEvents.
It might be an issue switching from UnsafePointerView to DataView
The text was updated successfully, but these errors were encountered:
Or do you want help with how to create a DataView from PointerValue / PointerObject?
Example of how you can do it
constlib=Deno.dlopen("./libree.so",{ret_ptr: {parameters: ["u8","u32"],result: "pointer",},// Essentially the same as aboveret_buff: {name: "ret_ptr",parameters: ["u8","u32"],result: "buffer",},});constptr=lib.symbols.ret_ptr(8,32);// Assume ptr is not nullconstptrArrayBuff=Deno.UnsafePointerView.getArrayBuffer(ptr!,size,offset);constptrDataview=newDataView(ptrArrayBuff);
Struct isn't working with FFI
I'm trying to create a SDL2 package, but Structs I generated from SDL_Events are not working with Window Events.
They worked with byte-type version 0.1.7 looking at divy/deno_sdl2. I even tested updating divy/deno_sdl2 to the lastest version 0.4.0 and still not spitting out SDL_WindowEvents.
It might be an issue switching from UnsafePointerView to DataView
The text was updated successfully, but these errors were encountered: