Re: [Plib-users] js_demo->Btns
Brought to you by:
sjbaker
From: Adam <ada...@ho...> - 2001-06-29 23:08:44
|
On Fri, 29 Jun 2001, Steve Baker wrote: > Adam wrote: > > > > Hi, > > Has anyone noticed this before? When you do the supplied > > js_demo program, making one of those hex-numbers=3D'f' then it prints= as > > '0'. I don't think it's printf's fault. (it has worked for me) If > > this hasn't been fixed already, I'll give it a try. > > So are you saying that if I press four joystick buttons down at once > (A,B,C,D for example) then those four bits will make an 'f' in hex and > that doesn't get printed out correctly? > > Well, that particular test works just fine for me... > > src/js> ./js_demo > > <steve presses A,B,C and D all at once> > > Joystick test program. > ~~~~~~~~~~~~~~~~~~~~~~ > Joystick 1 not detected > +---------------JS.0-----------------+---------------JS.1--------------= ---+ > | Btns Ax:0 Ax:1 | ~~~ Not Detected ~~~ = | > +------------------------------------+---------------------------------= ---+ > | 000f +0.0 +1.0 . . . . | . . . . . . . . = . | > > ...no problem! > > What OS are you using? linux. Here's my example (sorry, different PROMPT) <1> ./js_demo /work/adam/plib_examples-1.4.0/src/js <adam presses A,B,C and D all at once> Joystick test program. ~~~~~~~~~~~~~~~~~~~~~~ Joystick 1 not detected +---------------JS.0-----------------+---------------JS.1----------------= -+ | Btns Ax:0 Ax:1 | ~~~ Not Detected ~~~ = | +------------------------------------+-----------------------------------= -+ | 0000 +0.0 +0.0 . . . . | . . . . . . . . .= | (note: I tar'd it in /work/adam)...where's the 'f'? If it's just something that's not displaying right, (ie, *working* right, but not *displaying* right) then I'm happy. But it's haunting..... --=20 There's no easy quick way out, we're gonna have to live through our whole lives, win, lose, or draw. -- Walt Kelly /|| name..............................Adam Seyfarth ||\ /=AB|| email...........<mailto:ada...@ho...> ||=BB\ \=AB|| <http://tuxaqfh.sf.net> <http://tuxkart.sf.net> ||=BB/ \|| <http://plib.sf.net> <http://vim.sf.net> ||/ |