October, 2007

As someone on comp.sys.apple2.programmer recently put it, the Joystick was just not "Mac" enough to warrant inclusion in the Toolbox routines. Well, this may be so, but thanks to a number of individuals, especially to David Empson whose routines I shamelessly employed, the Joystick can now be accessed from within Complete Pascal 2 (and/or TML Pascal II). I have taken the original assembly routines and incorporated the machine code into inline functions using a method developed by some talented French IIgs programmers who contributed to the Toolbox Mag. Their ASMandPas unit makes incorporating machine code fairly easy, and even allows for you to comment what the code does - line by line.

So, without further ado, here is my Joystick unit that comes complete with a simple demonstration program:

 

Downloads

 

 

Back to Pascal Programming Page



Copyright © 2007-2018 by Michael Stephens