Fixed wired joypad bug, added auto detection of wired and wireless joypads, added ability to specify device name as parameter, added inverted head control option