joystick.addEventListener must work for mouse up/down it's important to get the custom code fired with mouse like touchpad Website must work with PC and Smartphone.