Whats the best way to sort between click/double click and drag?

i would think enhanced input would cover this but doesnt seem to?

to be clear im talking about in code not widget. im currently using a macro with delays to check times clicked or if still held but feels messy and cant be reused for other inputs

how does everyone else do it?