WIN32 - added function to parse gamepad events