Atari ST series Technical Reference Manual page 372

Hide thumbs Also See for ST series:
Table of Contents

Advertisement

$19 Set Joystick Keycode Mode
T h is c o m m a n d p u t s t h e j o y s t i c k p o r t s i n t o k e y c o d e m o d e . I n th is m o d e ,
t h e I K B D s e n d s c u r s o r a r r o w k e y c o d e s w h e n e v e r jo y s t i c k 0 is m o v e d f r o m
t h e c e n t e r p o s i t i o n . T h e m a k e c o d e is f o l l o w e d im m e d i a t e l y b y t h e b r e a k
c o d e . T h i s m o d e h a s a v e l o c i t y f e a t u r e t h a t a l l o w s y o u s e n d th e k e y c o d e s
m u c h f a s t e r if t h e s tic k h a s b e e n h e l d in o n e d i r e c t i o n f o r l o n g e r t h a n th e
b r e a k p o i n t ti m e d u r a t i o n . U n til t h e b r e a k p o i n t is r e a c h e d , t h e k e y c o d e s r e ­
p e a t a t a s l o w e r r a t e , b u t a f t e r t h e b r e a k p o i n t is r e a c h e d , t h e y r e p e a t a t a
f a s t e r r a t e .
Input parameters
Byte
Number
Description
1
R X : T h e l e n g t h o f t i m e u n til t h e h o r i z o n t a l v e l o c i t y b r e a k p o i n t
is r e a c h e d , a n d t h e k e y r e p e a t s b e c o m e f a s t e r (in t e n t h s o f a
s e c o n d ) . B y s e t t i n g th i s t o 0 , t h e h o r i z o n t a l v e l o c i t y f e a t u r e is
d i s a b l e d , a n d V X is a l w a y s u s e d a s t h e ti m e b e t w e e n r e p e a t s .
2
R Y : T h e l e n g t h o f t i m e u n til t h e v e r t i c a l v e l o c i t y b r e a k p o i n t is
r e a c h e d , a n d t h e k e y r e p e a t s b e c o m e f a s t e r (in t e n t h s o f a
s e c o n d ) . B y s e t t i n g th i s t o 0 , t h e v e r t i c a l v e l o c i t y f e a t u r e is
d i s a b le d , a n d V Y is a l w a y s u s e d a s t h e t i m e b e t w e e n r e p e a t s .
3
T X : T h e l e n g t h o f t i m e b e t w e e n h o r i z o n t a l k e y r e p e a t s b e f o r e
t h e h o r i z o n t a l b r e a k p o i n t is r e a c h e d (in t e n t h s o f a s e c o n d ) .
4
T Y : T h e l e n g t h o f t i m e b e t w e e n v e r t i c a l k e y r e p e a t s b e f o r e th e
v e r t i c a l b r e a k p o i n t is r e a c h e d (in t e n t h s o f a s e c o n d ) .
3
V X : T h e l e n g t h o f t i m e b e t w e e n h o r i z o n t a l k e y r e p e a t s a f t e r th e
h o r i z o n t a l b r e a k p o i n t is r e a c h e d (in t e n t h s o f a s e c o n d ) .
3
V X : T h e l e n g t h o f t i m e b e t w e e n v e r t i c a l k e y r e p e a t s a f t e r t h e
h o r i z o n t a l b r e a k p o i n t is r e a c h e d (in t e n t h s o f a s e c o n d ) .
364
APPENDIX I

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents