/*
    ####             #    #     # #
    #   #            #    #       #          The FreeWare C library for 
    #   #  ##   ###  #  # #     # ###             RISC OS machines
    #   # #  # #     # #  #     # #  #   ___________________________________
    #   # ####  ###  ##   #     # #  #                                      
    #   # #        # # #  #     # #  #    Please refer to the accompanying
    ####   ### ####  #  # ##### # ###    documentation for conditions of use
    ________________________________________________________________________

    File:    Drag.DragInit.c
    Author:  Copyright  1994 Jason Williams
    Version: 1.00 (06 Feb 1994)
    Purpose: Initialise the drag system for use with the Event sublibrary
             If you are not using Desk_Event_ then you'll need to set up these
             two handlers in an appropriate manner for yourself.
*/

#include "Desk.Core.h"
#include "Desk.Wimp.h"

#include "Desk.Drag.h"
#include "Desk.Event.h"
#include "Desk.Handler.h"


extern void Desk_Drag_Initialise(Desk_bool attachNULLhandler)
{
  if (attachNULLhandler)
    Desk_Event_Claim(Desk_event_NULL, Desk_event_ANY, Desk_event_ANY, Desk_Handler_DragNULL, NULL);

  Desk_Event_Claim(Desk_event_USERDRAG, Desk_event_ANY, Desk_event_ANY, Desk_Handler_DragFinish, NULL);
}

