• Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    beworld
    Posts: 590 from 2010/2/10
    From: FRANCE
    Ok thanks,

    We try it, but ReadArgs have not effet here, if you can help us ? thanks

    Here example :

    Code:

    static Uint32
    AMIGA_GetDoubleClickTimeInMillis(_THIS)
    {
    Uint32 interval = 500;

    struct RDArgs rda;
    SDL_memset(&rda, 0, sizeof(rda));
    rda.RDA_Source.CS_Buffer = (STRPTR)SDL_LoadFile("ENV:sys/mouse.conf", &rda.RDA_Source.CS_Length);
    if (rda.RDA_Source.CS_Buffer) {
    LONG array[2] = {0, 0};
    if (ReadArgs("DoubleClickS/K/N/A,DoubleClickM/K/N/A", array, &rda)) {
    interval = array[0] * 1000 + array[1] / 1000;
    FreeArgs(&rda);
    }
    SDL_free(rda.RDA_Source.CS_Buffer);
    }
    return interval;
    }


    Source from BSzili :
    https://pastebin.com/rMdiJGEm?fbclid=IwAR21iA56dbA5HTtkXCf9FUHDm_ZeKQAizzF2WLA6kClz4f8a3bj0cX6pDTI


    [ Edité par beworld 01.05.2020 - 12:01 ]
    IMac G5 2.1,PowerBook G4 1.5,MacMini 1.5, PowerMac G5 2.7 died !!!
    My MOS ports
  • »01.05.20 - 10:55
    Profile Visit Website