Initialise gesture detector once