Re: [Plib-devel] Saitek X52 joystick with 34 buttons
Brought to you by:
sjbaker
From: Andy R. <an...@pl...> - 2005-05-04 17:02:40
|
Bram Stolk wrote: > 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? The subject came up recently on the FlightGear list, and the upshot is that everyone but Microsoft supports the stdint.h header in recent compiler versions. MSVC does, however, have 64 bit integer types, so what we did is something to the effect of: #ifdef _WIN32 typedef unsigned long long uint64_t; #else #include <stdint.h> #endif etc... In this case, though, I wonder if perhaps the joystick bitmask could just be stored in a unsigned char array instead rather than playing portability games with the preprocessor. Andy |