So I am building a game with phaser.io and I wanted to also have leap motion integration. I have different ways of tried to put the leap motion code to have something happen without success. I want the character to follow the cursor and if i were to pinch it would fire my weapon, I am not sure if how I will know that controller is connected to the game. I have tried going through both methods but I am like I said unsuccessful.