Path: chuka.playstation.co.uk!scea!peter_alau@playstation.sony.com From: Michael Briere Newsgroups: scea.yaroze.beginners Subject: Re: JOYSTICK FUNCTION Date: Sun, 19 Jul 1998 21:33:20 -0400 Organization: SCEA News Server Lines: 39 Message-ID: <35B29E5F.EB2D1284@accessv.com> References: <35AF83F8.4DDB67D@accessv.com> <35AF9512.8AE0DE7D@jps.net> <35AFD6E4.6BDB3993@accessv.com> <35B196C4.D8C2330@shell.jps.net> NNTP-Posting-Host: 30.209.135.84.dialup.accessv.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.04 [en] (Win95; I) That's allright! Thanks again for all your help. I'm starting to get a good feel for it with your help. As I've said before. I really want to understand everything that's going on in the program and not just copy chunks of code because I know the code works. :) Elliott Lee wrote: > 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 .:: > ''' '''