Joystick: Fix MatchEvent functions
Joystick: emulate D-Pad from left analog stick

Also switch QHash to QMap for static mapping tables. QMap is supposed to
be faster on small tables:
http://woboq.com/blog/qmap_qhash_benchmark.html