added joystick hat event constants and added printing in test module