home *** CD-ROM | disk | FTP | other *** search
- 5 DIRTY INPUT
-
- 5.1 INTRODUCTION
-
- This directory contains four dirty input readers. The programs
- are all using the hardware registers and are therefore very
- fast and easy to use. Although it is a bit naughty to use the
- hardware registers are these programs still following all
- "rules". The reason why they can use the hardware registers and
- still be accepted is because they get the values through the
- global hardware structures "Custom" and "CIA".
-
- Please use these routines only in games and small programs. If
- you intend to write a large serious program you should use the
- more polite and nicer devices. See manual "Devices" for more
- information.
-
-
-
- 5.2 PROGRAMS
-
- Joystick
- Joystick() is a handy, easy and fast but naughty function
- that hits the hardware of the Amiga. It looks at either port
- 1 or port 2, and returns a bitfield containing the position
- of the stick and the present state of the button.
-
- Mouse
- Mouse() is a handy, easy and fast but naughty function that
- hits the hardware of the Amiga. It looks at either port 1 or
- port 2, and returns the (x and y) delta movement of the
- mouse, as well as a bitfield containing the present state of
- the three buttons. (A normal Amiga mouse has only two buttons
- (left and right), but it is possible to connect a mouse with
- three buttons, so why shouldn't we support it?)
-
- Keyboard
- Keyboard() is a handy, easy and fast but naughty function
- that hits the hardware of the Amiga. It checks the keyboard,
- and returns the Raw Key Code. (See appendix "SYSTEM DEFAULT
- CONSOLE KEY MAPPING" for the full list of Raw Key Codes.)
-
- Analogue
- This is an Analogue Joystick reader. It is handy, easy and
- fast but a bit naughty function since it reads directly from
- the hardware registers. It can read either port 1 ("the mouse
- port") or port 2 ("the joystick port"). Note that an Analogue
- Joystick can have two buttons.
-
-