home *** CD-ROM | disk | FTP | other *** search
-
-
- RD_STK. V1.1
-
- ( Turbo C ) Joy Stick Toolbox
-
-
- Earle Cooley
- 2268 Glenmoor Rd S
- Clearwater Florida 34624
-
-
-
- INTRODUCTION
- ------------
-
- RD_STK is a software "toolbox" of routines for programs written in
- BORLAND's TURBO C.There only two function calls that are used to
- read the game port & they are described below. Also included is a
- function to control the cursor.
-
- Distribution List
- ----------------------
-
- 1.0 RD_STK.ZIP
-
- The distribution you have received should contain the
- following:
-
- o RD_DEMO.C Source code for sample program.
-
- o RD_DEMO.EXE A sample program that uses RD_STK.
-
- o RD_DEMO.PRJ Project file for Demo.c .
-
- o RD_STK.DOC This document
-
- o RD_STK.H The header file to be included at the top
- of all C source files that reference
- RD_STK functions
- (Contains function prototypes & constants).
-
- o RD_STK.OBJ Turbo C object code by which the RD_STK
- get it's functions from.
-
-
-
- 2.0 Adding RD_STK to your Turbo C programs
-
- To use RD_STK in your own TURBO C programs simply include the
- object file RD_STK.OBJ at the end of your project file and call
- the RD_STK functions described below from within your application
- program.
-
-
- 2.1 GET_JOYBUTTON
-
- 2.1.1 DESCRIPTION:
-
- GET_JOYBUTTON - Gets the current activation of the Joy Stick(s)
- Buttons & returns them.
-
- 2.1.2 PROTOTYPE:
-
- void get_joybutton(int stk1_b1,int stk1_b2,int stk2_b1,int stk2_b2)
-
- 2.1.3 ARGUMENTS:
- stk1_b1 == 0 ( joystick A button one is off)
- stk1_b1 == 1 ( joystick A button one is on )
- stk1_b2 == 0 ( joystick A button one is off)
- stk1_b2 == 1 ( joystick A button one is on )
-
- stk2_b1 == 0 ( joystick B button one is off )
- stk2_b1 == 1 ( joystick B button one is on )
- stk2_b1 == 0 ( joystick B button one is off )
- stk2_b1 == 1 ( joystick B button one is on )
-
- 2.1.4 SAMPLE USAGE:
-
- get_joybutton(&stk1_b1,&stk1_b2,&stk2_b1,&stk2_b2);
-
- 2.2 GET_JOY_POS()
-
- 2.2.1 DESCRIPTION:
-
- GET_JOY_POS - Gets the current count accumulated from the Joy Stick(s)
- and returns them.
-
- 2.2.2 PROTOTYPE:
-
- void get_ joy_pos(int stk1_x,int stk1_y,int stk2_x,int stk2_y)
-
-
- 2.2.3 ARGUMENTS:
-
- stk1_x = joystick A X axis count
- stk1_y = joystick A Y axis count
- stk2_x = joystick B X axis count
- stk2_y = joystick B Y axis count
-
- 2.2.4 SAMPLE USAGE:
-
- get_joypos(&stk1_x, &stk1_y, &stk2_x, &stk2_y );
-
-
-
- 2.3 SET_CURSOR
-
- 2.3.1 DESCRIPTION:
- SET_CURSOR - sets the cursor style. This is required
- to remove the cursor from the display & when quitting
- your program to leave the cursor set on the screen.
-
- 2.3.2 PROTOTYPE:
-
- void setcursor(int cursor);
-
- 2.3.3 ARGUMENTS:
- cursor = OFF for a hidden cursor,
- cursor = ON_L for an underscore cursor
- cursor = ON_T for a block cursor.
-
- (The constants OFF, ON_L, ON_B are defined in RD_STK.H.)
-
- 2.3.4 SAMPLE USAGE:
- set_cursor(OFF);
-
-
-
- (C)Copyright 1989, EC Systems
- All Rights Reserved
- LICENSE AGREEMENT
-
- This program is distributed "as is", without guarantee or
- warranty of any kind. Furthermore, EC Systems and its author
- do not warrant or guarantee the accuracy, the use, or the results
- of the use of this program or its associated documentation.
- All warranties are disclaimed.
-
- EC Systems grants you permission to evaluate, use, reproduce,and
- distribute this "shareware" version of this Utility Program on
- the express condition that this program remain in their original
- state.It is not permitted to modify or change in any way the files
- associated with this software package nor is it permissible to
- receive any payment, or benefit from, the reproduction or
- distribution of this software or its documentation. All
- comments and suggestions for enhancements will be considered and
- greatly appreciated.
-
- Registration
-
- This copy of RD_STK is a SHAREWARE evaluation copy which you are
- encouraged to experiment with. If you find this program to be useful
- you are encouraged to register your evaluation copy with EC Systems,
- who will in turn provide you with the following:
-
- 1. Complete, carefully commented source code to RD_STK
- 2. This code is optimized for a 70 % faster response time.
- 3. Technical support via CompuServ Easyplex mail.
-
- Registration is $12.00 which includes return shipping .
- A registration form is provided for your convenience as the
- last page of this document.
-
- REGISTRATION FORM
-
- RD_STK V1.1
-
- ( Turbo C ) Joy Stick Toolbox
-
-
- NAME ____________________________________________
-
- STREET ADDRESS ____________________________________________
-
- CITY, STATE ____________________________________________
-
- ZIP CODE ____________________________________________
-
- COMPUSERVE ID. ____________________________________________
-
- FILE DATE __________________
-
- ------------------------------------------------------------------------------
- CUT ON DOTTED LINE
-
- Please send above registration form and $12.00 to:
-
- Earle Cooley
- 2268 Glenmoor Rd S.
- CLEARWATER, FL. 34624
-