Path: chuka.playstation.co.uk!scea!peter_alau@playstation.sony.com From: Elliott Lee Newsgroups: scea.yaroze.beginners Subject: Re: JOYSTICK FUNCTION Date: Sat, 18 Jul 1998 23:48:36 -0700 Organization: SCEA News Server Lines: 29 Message-ID: <35B196C4.D8C2330@shell.jps.net> References: <35AF83F8.4DDB67D@accessv.com> <35AF9512.8AE0DE7D@jps.net> <35AFD6E4.6BDB3993@accessv.com> NNTP-Posting-Host: svalliap-isdn1.cisco.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.05 [en] (Win95; U) Michael Briere wrote: > Hi Elliott! Thanks for your help! I really like your joystick lib as it does > include the diagonal combinations. I also like your suggestion of using > printfs to see the math behind this. I am confused though about what you've > put in your reply to me and what you have in your padstuff.h header file. > > In your reply you say that controller 1 uses bits 16 to 31 and controller 2 > uses bits 0 to 15, yet in your header file when you assign buttons to bits > it's the reverse. Am I missing something here? I know I have to do some more > reading on bitwise operators to get all of this, so I wouldn't be surprised > if I'm the one who's getting it wrong. I've got to take a good look at your > padstuff now. Thank you! Oh...hehehe... I've not been getting much sleep lately due to other projects but you're right, I goofed in my example. Whatever is in the padstuff.h is correct---I know this because I use it all the time. The lower 16 bits should be controller 1. Shift the #defines left 16 and you got controller 2. ^_^ (I think I mislabled them because I wrote the bits in MSB on the left but was thinking "controller 1 then controller 2".) *yawn* Mata ne, ... ... - e! ::' tenchi@shell.jps.net ':: (Protocol) :: ACiD -/- ACS -/- pHluid -/- Yaroze :: (Tenchikun) ::. http://www.jps.net/tenchi .:: ''' '''