Added support of gamepad and sending of commands to Remote application