home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 571.lha / AmigaPowerGloveHi-ResHack / readme < prev    next >
Text File  |  1991-10-19  |  3KB  |  65 lines

  1.  
  2.         Amiga PowerGlove Hi-Res Hack
  3.  
  4.  
  5. For all you Amiga users interested in the PowerGlove hi-res mode, here is
  6. my hack.  It uses the parallel port, with my own configuration (neither the
  7. BYTE hack nor the ST hack).  For everyone who has asked why I didn't use
  8. either of these "standards" or the AC Tech joystick hack, I have several
  9. reasons:  I don't have the AC Tech article so I don't know its pinouts, plus
  10. my RKM Hardware guide says enough nasty stuff about the timing of the
  11. joystick lines that I decided to avoid it.  As for not using pin 13 of the
  12. BYTE hack, the main reasons are that the DB-25 connector I had lying around
  13. already had most of the leads connected, with pin 13 not among them.  Plus,
  14. I already knew how to read pin 4 in software, but wasn't sure how to read
  15. pin 13.  That's what you get for only a few hours of software hacking.
  16.  
  17. See "glove.c" for the hardware connections.  I make no guarantees that you
  18. won't fry your Amiga or your glove with this hack.  I am not responsible for
  19. any typos in any of the files in this archive.  Double check everything
  20. before you hook it up to your Amiga.
  21.  
  22. The "glovehack" directory contains a more-or-less straight port
  23. of the original ST hack.  The "a0" framing byte shows up in a different
  24. place in my data packet than where the original docs says it should.  Other
  25. glove-list people reported a similar situation.  My code searches for the
  26. "a0" byte, so it shouldn't matter where it shows up.
  27.  
  28. The "fingers" directory contains some simple gesture recognition code that
  29. somebody made available recently.  This program includes "pwrglove.c" and
  30. "pwrglove.h" presenting a "standard" interface to the glove that somebody
  31. on the glove-list proposed.  You should be able to adapt this fairly easily
  32. for other uses.
  33.  
  34. I am releasing this code early so that others can get a chance to try it
  35. out.  It doesn't work in all situations, so read the following before you
  36. complain to me that it doesn't work with your setup...
  37.  
  38. This code works with both Workbench 1.3 and 2.0.  It uses CIAB Timer B in an
  39. operating system friendly manner.  IT BYPASSES THE OPERATING SYSTEM TO USE
  40. THE PARALLEL PORT HARDWARE DIRECTLY.  Someday I will do the appropriate
  41. resource allocation for the parallel port, but for now I make no guarantees.
  42. If you have any background tasks doing things with the printer port, you
  43. should probably get rid of them.
  44.  
  45. Timing is done with busy-waits, although the CIA timer is used in an attempt
  46. to make the waits independent of CPU speed.  I'll get rid of the busy waits
  47. in a couple of weeks.  The code works on an A500 and an A2000, but does not
  48. work on my A3000.  I should soon have time to work out the timing problems
  49. so that it will eventually work on all Amigas.
  50.  
  51. When you run either of the programs, sometimes the glove doesn't seem to
  52. get reset properly.  The glove will beep once when the program starts.
  53. If it doesn't beep, press ^C and run it again.
  54.  
  55. I've never seen the rotation value give any meaningful data.  The x,y,z
  56. coordinates are pretty bad in my setup, but someone else using this hack
  57. says his x,y,z works very well.  Buttons and finger movement works well.
  58.  
  59. See ya in cyberspace...
  60.  
  61.         Alan Bland 10/19/91
  62.         mab@druwy.att.com
  63.         Boulder Amiga Users Group BBS (303)939-9923
  64.  
  65.