Re: [Plib-devel] Windows, multiple joystick support
Brought to you by:
sjbaker
From: Jonah W. \(R. Student\) <ja...@ri...> - 2006-12-21 20:36:33
|
Would a member of the devel list be kind enough to grant me access to = commit changes to subversion or commit the following patch for me? In jsWindows.cxx I suggest replacing the current constructor with the = following code to allow support for more than 2 joystick devices. = Windows 95 and higher support at least 16 devices and there does not = seem to be any reason why plib should artificially limit itself to only = 2. jsJoystick::jsJoystick ( int ident ) { id =3D ident ; os =3D new struct os_specific_s; if (ident >=3D 0 && ident < joyGetNumDevs()) { os->js_id =3D JOYSTICKID1 + ident; open(); } else { num_axes =3D 0; setError(); } } joyGetNumDevs() is documented here: = http://msdn2.microsoft.com/en-us/library/ms709351.aspx Thanks, -Jonah (sourceforge account "jw_rit") |