| 1 | /* |
| 2 | * repeater.h |
| 3 | * |
| 4 | * [Generated from repeater, 25 September 1996] |
| 5 | */ |
| 6 | |
| 7 | #if !defined(__CC_NORCROFT) || !defined(__arm) |
| 8 | #error You must use the Norcroft ARM Compiler for Sapphire programs |
| 9 | #endif |
| 10 | |
| 11 | #pragma include_only_once |
| 12 | #pragma force_top_level |
| 13 | |
| 14 | #ifndef __repeater_h |
| 15 | #define __repeater_h |
| 16 | |
| 17 | #ifndef __sapphire_h |
| 18 | #include "sapphire.h" |
| 19 | #endif |
| 20 | |
| 21 | /*----- Overview ----------------------------------------------------------* |
| 22 | * |
| 23 | * Functions provided: |
| 24 | * |
| 25 | * repeater |
| 26 | * rpt_end |
| 27 | */ |
| 28 | |
| 29 | /* --- repeater --- * |
| 30 | * |
| 31 | * On entry: R0 == pointer to routine to call |
| 32 | * R1 == R10 value to pass to routine |
| 33 | * R2 == R12 value to pass to routine |
| 34 | * |
| 35 | * On exit: -- |
| 36 | * |
| 37 | * Use: Calls a routine (a) immediately, (b) after the configured |
| 38 | * keyboard delay rate and (c) repeatedly after the configured |
| 39 | * keyboard repeat rate. Calls stop when the user stops |
| 40 | * pressing the mouse button. |
| 41 | * |
| 42 | * The routine is called with R0 containing either the number |
| 43 | * of missed calls since the last one (normally this is 1) -- |
| 44 | * this is intended to be used to implement a kind of buffering |
| 45 | * of repeats if the operation being performed is a lengthy one |
| 46 | * -- and with 0 to indicate that the operation is now |
| 47 | * completed. |
| 48 | */ |
| 49 | |
| 50 | extern routine repeater; |
| 51 | |
| 52 | /* --- rpt_end --- * |
| 53 | * |
| 54 | * On entry: -- |
| 55 | * |
| 56 | * On exit: -- |
| 57 | * |
| 58 | * Use: Ends a repeater before the drag is released. No final |
| 59 | * 0 is sent to the handler. |
| 60 | */ |
| 61 | |
| 62 | extern routine rpt_end; |
| 63 | |
| 64 | /*----- That's all, folks -------------------------------------------------*/ |
| 65 | |
| 66 | #endif |