front: Add support for PS4 controllers.

Resolves Issue #369
(cherry picked from commit fac0a2185510655795e94abd42842336d80f7f48)