Merge pull request #1 from hrydgard/master

Merge from head
Merge pull request #2 from hrydgard/master

Sync
Windows: add support DirectInput gamepads (devices);
Merge pull request #1143 from CrazyMax/master

Windows: add support DirectInput gamepads (devices)