https://linen.dev logo
Join Discord
Powered by
# lime
  • a

    able-action-74275

    04/28/2023, 4:15 PM
    there is
    onWindowDropFile
  • a

    able-action-74275

    04/28/2023, 4:15 PM
    but I don't think there is anything to say if you are actively dragging a file
  • a

    able-printer-41379

    04/28/2023, 5:15 PM
    awh thats unfortunate
  • r

    rhythmic-wolf-50922

    04/28/2023, 5:28 PM
    so the drop file event comes from SDL. I looked through the other SDL events that are available, and I don't think SDL exposes drag start/over events at all.
  • a

    able-printer-41379

    04/28/2023, 9:22 PM
    ah, is there some kind of variable (a bool or a string) on the window's mouse class that checks if the mouse is holding a file or shows the path of the file the mouse is holding?
  • r

    rhythmic-wolf-50922

    04/28/2023, 10:52 PM
    not that I'm aware of
  • b

    best-agent-85158

    04/30/2023, 6:50 AM
    I have a PR for it, I don't remember if it was merged for the next lime version or not
  • b

    best-agent-85158

    04/30/2023, 6:50 AM
    Imma link it rq
  • b

    best-agent-85158

    04/30/2023, 6:51 AM
    https://github.com/openfl/lime/pull/1583
  • b

    best-agent-85158

    04/30/2023, 6:53 AM
    Whoops, didn't read the second half of the message. SDL doesn't expose the dragging process, only the start and end of the file drag and drop stream...
  • a

    able-printer-41379

    04/30/2023, 11:26 AM
    nono dw, thats exacly what i needed, thank you
  • p

    purple-magazine-64921

    04/30/2023, 11:33 PM
    How do you edit AndroidManifest.xml with compilation?
  • a

    ambitious-knife-25690

    04/30/2023, 11:52 PM
  • l

    little-oxygen-79174

    05/01/2023, 9:15 PM
    I'm trying to make some modifications to Lime, but I'm receiving this error:
  • l

    little-oxygen-79174

    05/01/2023, 9:15 PM
    Copy code
    Link: ApplicationMain.exe
       Creating library ApplicationMain.lib and object ApplicationMain.exp
    Called from lime/_internal/backend/native/NativeCFFI.hx line 686
    Called from lime/system/CFFI.hx line 111
    Called from C:\HaxeToolkit\haxe\std/neko/Lib.hx line 35
    Uncaught exception - load.c(357) : Primitive not found : ./lime@lime_joystick_get_num_trackballs(1)
  • l

    little-oxygen-79174

    05/01/2023, 9:16 PM
    Notably, my changes to lime include removing any reference to this function
  • l

    little-oxygen-79174

    05/01/2023, 9:16 PM
    I changed NativeCFFI.hx and it no longer includes a reference to
    lime_joystick_get_num_trackballs
    , and I rebuilt lime with
    lime rebuild windows
    to apply the changes.
  • l

    little-oxygen-79174

    05/01/2023, 9:17 PM
    However, it still appears to be referencing some old, "cached" version of lime somewhere? Not sure why else NativeCFFI.hx would be unchanged.
  • r

    rhythmic-wolf-50922

    05/01/2023, 9:24 PM
    you removed all four of these from NativeCFFI?
    Copy code
    hx
    @:cffi private static function lime_joystick_get_num_trackballs(id:Int):Int
    Copy code
    hx
    private static var lime_joystick_get_num_trackballs = new cpp.Callable<Int->Int>(cpp.Prime._loadPrime("lime", "lime_joystick_get_num_trackballs", "ii",
            false));
    Copy code
    hx
    private static var lime_joystick_get_num_trackballs = CFFI.load("lime", "lime_joystick_get_num_trackballs", 1);
    Copy code
    hx
    @:hlNative("lime", "hl_joystick_get_num_trackballs") private static function lime_joystick_get_num_trackballs(id:Int):Int
    {
        return 0;
    }
  • l

    little-oxygen-79174

    05/01/2023, 9:25 PM
    correct

    https://cdn.discordapp.com/attachments/769686258049351722/1102707344456032306/image.png▾

  • r

    rhythmic-wolf-50922

    05/01/2023, 9:25 PM
    and this from joystick?
    Copy code
    hx
    #if (lime_cffi && !macro)
    return NativeCFFI.lime_joystick_get_num_trackballs(this.id);
    #else
    return 0;
    #end
  • r

    rhythmic-wolf-50922

    05/01/2023, 9:26 PM
    and running
    haxelib path lime
    in a terminal gives you the file system path that you expect?
  • l

    little-oxygen-79174

    05/01/2023, 9:27 PM
    Running
    haxelib path lime
    points to my fork of lime
  • r

    rhythmic-wolf-50922

    05/01/2023, 9:28 PM
    in ExternalInterface.cpp, this line might need to be removed or commented out too
    Copy code
    cpp
    DEFINE_PRIME1 (lime_joystick_get_num_trackballs);
  • l

    little-oxygen-79174

    05/01/2023, 9:28 PM
    I used code search and either removed or commented out EVERY reference to trackballs
  • r

    rhythmic-wolf-50922

    05/01/2023, 9:29 PM
    did you build your project with
    -clean
    ?
  • l

    little-oxygen-79174

    05/01/2023, 9:29 PM
    I built the project itself with -clean and I built lime with -clean
  • l

    little-oxygen-79174

    05/01/2023, 9:30 PM
    the error refers to line 686 but I removed that line

    https://cdn.discordapp.com/attachments/769686258049351722/1102708591443587152/image.png▾

  • l

    little-oxygen-79174

    05/01/2023, 9:32 PM
    just finished another
    haxelib run lime rebuild windows -debug -clean
    and
    haxelib run lime build windows -debug -clean
    and got the same error
  • l

    little-oxygen-79174

    05/01/2023, 9:32 PM
    i have already tried fully uninstalling lime
1...979899...138Latest