RE: [Plib-devel] Saitek X52 joystick with 34 buttons
Brought to you by:
sjbaker
From: Fay J. F C. AAC/W. <joh...@eg...> - 2005-05-04 21:27:50
|
Heh, heh, you won't find _that_ getting into "freeglut" any time soon! What Steve didn't address--apart from the (at the moment) very limited application of a 34-button joystick--is the question of an interface extension: "jsJoystick::read64 ( ... )" and "jsJoystick::rawRead64 ( ... )". Those would not break any existing applications. John F. Fay joh...@eg... 850-729-6330 -----Original Message----- From: pli...@li... [mailto:pli...@li...] On Behalf Of Steve Baker Sent: Wednesday, May 04, 2005 6:13 PM To: pli...@li... Subject: Re: [Plib-devel] Saitek X52 joystick with 34 buttons Trammell Hudson wrote: > I've recently started using a Saitek X52 joystick with my Linux box and > have run into problems with plib's JS module limitation in the number > of supported buttons. It only supports up to 32 buttons due to the > MAX_BUTTONS definition and the fact that it uses an int to store the > button state, but the X52 has 34 buttons (and 12 axes). That's practically a keyboard! Changing PLIB to support more than 32 buttons would break 100% of joystick using applications. I personally find it very hard to believe that there are any applications out there that would actually use that many - so for now, I'm not inclined to change the interface to support more buttons. If there is a bug to fix in *limiting* the number of buttons to 32 - then we should fix that. > Changing tmp_buttons to a uint64_t, updating the arguments to > jsJoystick::rawRead and jsJoystick::read fixed that for me. But it would break other applications. We absolutely cannot do that. ---------------------------- Steve Baker ------------------------- HomeEmail: <sjb...@ai...> WorkEmail: <sj...@li...> HomePage : http://www.sjbaker.org Projects : http://plib.sf.net http://tuxaqfh.sf.net http://tuxkart.sf.net http://prettypoly.sf.net -----BEGIN GEEK CODE BLOCK----- GCS d-- s:+ a+ C++++$ UL+++$ P--- L++++$ E--- W+++ N o+ K? w--- !O M- V-- PS++ PE- Y-- PGP-- t+ 5 X R+++ tv b++ DI++ D G+ e++ h--(-) r+++ y++++ -----END GEEK CODE BLOCK----- ------------------------------------------------------- This SF.Net email is sponsored by: NEC IT Guy Games. Get your fingers limbered up and give it your best shot. 4 great events, 4 opportunities to win big! Highest score wins.NEC IT Guy Games. Play to win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20 _______________________________________________ plib-devel mailing list pli...@li... https://lists.sourceforge.net/lists/listinfo/plib-devel |