Re: [Plib-devel] Saitek X52 joystick with 34 buttons
Brought to you by:
sjbaker
From: John D. <sf...@av...> - 2007-01-02 15:41:22
|
On 01/02/2007 10:06 AM, Fay John F Dr CTR USAF AFSEO/SK wrote: > > The next step is to get Steve Baker's permission to add the > capability without breaking the old applications. And how do we do that? > Do you have one of these joysticks so that we can test the changes? Yes. > The step after that is actually to implement something. > > I have SVN access (hint: a year ago I didn't have CVS access) > and so things that need changing can get changed. It seems like the obvious approach is to represent the buttons and axes as vector<bool> and vector<float> respectively. If it had been done that way all along, we wouldn't be having the bugs we have now. Using vector<bool> is the c++ way of doing things. Indeed, one of the reasons for inventing the c++ language was to exterminate bugs of this kind, which are appallingly common in old-style c code. Does anybody have any better suggestions? |