winejoystick.drv: Implement POV support

Austin English austinenglish at gmail.com
Sat Jan 17 22:01:02 CST 2009


On Sat, Jan 17, 2009 at 6:01 AM, Vincent Pelletier
<plr.vincent at gmail.com> wrote:
> Note:
> The code generating "discrete" values uses raw numbers istead of defined
> values, because they exist only for 4 directions and (on the contrary of what
> is advertised by MSDN) JOY_RETURNPOV also reports diagonal angles (verified
> on vista 32 bits, with joytester.exe). I believe it's easier to see the
> correlations between values this way.
>
> TODO:
>  JOYCAPS_POVCTS support, requiring some trigonometry functions and a joystick
>  reporting "analog" POV coordinates.
> --
> Vincent Pelletier
>
>
>
>


+	    case 16: /* Hat 0 X */
+	    case 17: /*       Y */
+		lpCaps->wCaps |= JOYCAPS_HASPOV | JOYCAPS_POV4DIR;
+		/* TODO: JOYCAPS_POVCTS handling */
+		break;

Minor, but shouldn't that be 'case 17: /* Hat 0 Y */'
-- 
-Austin



More information about the wine-patches mailing list