make gamepad emulate Hat if using analog, add logitech gamepad

actually implement the functionnality for hat type 0 (fixing bug #8)