[Plib-devel] Number of buttons on a joystick
Brought to you by:
sjbaker
From: Trammell H. <hud...@sw...> - 2006-01-26 13:30:40
|
I see in the plib 1.8.4 release that there is a protected data member named 'num_buttons' in the jsJoystick class, but nothing that exposes this to the user of the class. For a joystick configuration tool I need to know how many buttons can be configured and can get it by inheriting from jsJoystick and writing my own accessor. This works great for me under Linux, although I'd prefer not to depend that closely on an implementation detail. More problematic, however, is that it looks like the Windows version doesn't fill in this member. Is there a way to portably get the number of buttons? Thanks, -- Trammell |