Re: [Plib-devel] Saitek X52 joystick with 34 buttons
Brought to you by:
sjbaker
From: Trammell H. <hud...@sw...> - 2005-05-04 16:39:40
|
On Wed, May 04, 2005 at 06:24:50PM +0200, Bram Stolk wrote: > 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. [...] > > Hi Trammell! Don't we know each other from somewhere else? > I'll be happy to commit your changes to CVS. > However, before I do that, I need to check for portability. > > jsLinux.cxx is pretty safe to adapt. > However, js.h is cross-platform, and I wonder about the > portability of uint64_t. Do all plib platforms know uint64_t ? It is defined in C99 and many platforms have supported it as part of the C9X preliminary standard for the past five years. I can't speak to anything other than Unix like platforms, all of which support it (Linux, BSD, Cygwin and OS X). I only ever use gcc compilers, so this answered the question for me: http://gcc.gnu.org/c99status.html > It seems to be defined by stdint.h, which is included in inttypes.h I don't believe plib is targetting any non-hosted, free standing environments, so you should be safe to include the larger <inttypes.h> header, which also provides formatting macros, etc. Trammell |