blaksilk8 / javascript-joystick

Automatically exported from code.google.com/p/javascript-joystick
0 stars 0 forks source link

Win API function UINT 'joyGetNumDevs(void)' Missing and Needed #5

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Write a loop over 'var i' that calls setDevice(i), in order to notice 
joysticks having been plugged in, or having been unplugged. The upper bound of 
'i' is unknowable with the current API.
2.
3.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?

Please provide any additional information below.
As far as I can see, the windows joystick API function  

                 UINT joyGetNumDevs(void);

is unavailabloe. It's needed to know the upper bound.

Andreas

Original issue reported on code.google.com by Paep...@gmail.com on 13 Jun 2010 at 6:38

GoogleCodeExporter commented 8 years ago
The old Windows MMAPI had an upper bound of eight, as far as I remember, which 
is why I never added an option to query the number of devices. This should have 
been in the documentation though. The Mac version, on the other hand, works in 
a different way so I really should add something for this.

Original comment by cwoffen...@gmail.com on 15 Jun 2010 at 8:31

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
getNumDevices() returns maximum number of devices the underlying API can handle.

Original comment by cwoffen...@gmail.com on 10 Oct 2011 at 1:48