[Plib-devel] arbitrarily many buttons
Brought to you by:
sjbaker
From: John D. <sf...@av...> - 2007-01-03 05:55:27
|
On 01/02/2007 11:41 AM, I wrote: > With the amount of effort people have spent arguing about whether > it's a bug or not, we could have fixed the bug already. If anyone doubts this point, take a look at http://www.av8n.com/fly/fgfs/js.h http://www.av8n.com/fly/fgfs/js.cxx http://www.av8n.com/fly/fgfs/jsLinux.cxx The new features are there, notably support for arbitrarily many buttons. The old interface is still there and is upward-compatible. The only change is that for buttons numbered 32 and higher, their actions are silently discarded by the legacy interface. (In contrast all previous versions produced an undefined result in response to high-numbered buttons.) For regression testing of the old features, you can use whatever old programs you like. Obviously I haven't had time for extensive testing, but I did some basic "smoke tests" using the js_demo program that comes in the FlightGear package. There shouldn't be any change except the bugfix noted above. A example/test program that exercises the _new_ features can be found at: http://www.av8n.com/fly/fgfs/js_test.cxx If there is any doubt of how to compile js_test, all you need to know is that it is a descendant of js_demo. I didn't touch (or even look at) jsWindows or jsMacOS. I can't imagine there will be any trouble with those, because the stuff I touched wasn't machine dependent. On 01/02/2007 05:10 PM, steve wrote: >> only one guy with only one application needs it False. The archives indicate that this topic has come up more than once. Previous guys got the brush-off. >> the rest of us can't test the code, Also false, indeed absurd. We have here an entire community of simulation aficionados; perhaps "somebody" might figure out a way of /simulating/ the existence of high-numbered buttons. Forsooth, if you look at the new js.h you will find some DfT (Design for Test) features already built in, along with a brief explanation of how to use them. The JS_SHIFT parameter allows folks to test arbitrarily high-numbered buttons using only modest, generic hardware. DfT is important. If you want to have a polite discussion of DfT, we can discuss it. |