import { InputBase , Inputs , InputEvents } from "./Inputs" ; import { Vector2 } from "../Numerics/Vector2" ; export class DragDropInput extends InputBase { regist ( inputs ) { super . regist ( inputs ) ; this . registEvent ( "drop" , InputEvents . Drop , ( event ) => { event . stopPropagation ( ) ; event . preventDefault ( ) ; } ) ; this . registEvent ( "dragenter" , InputEvents . DragEnter , ( event ) => { event . stopPropagation ( ) ; event . preventDefault ( ) ; } ) ; this . registEvent ( "dragleave" , InputEvents . DragLeave , ( event ) => { event . stopPropagation ( ) ; event . preventDefault ( ) ; } ) ; this . registEvent ( "dragover" , InputEvents . DragOver , ( event ) => { event . stopPropagation ( ) ; event . preventDefault ( ) ; } ) ; } }