Osinitkeyinitdelay - Texas Instruments TI-89 Developer's Manual

Graphing calculator
Hide thumbs Also See for TI-89:
Table of Contents

Advertisement

Appendix A: System Routines — Keyboard

OSInitKeyInitDelay

Declaration:
WORD OSInitKeyInitDelay (WORD val )
Category(ies):
Keyboard
Description:
Sets the delay between the time that a key is pressed and the time that
keypress is scanned. Use of this routine may destabilize key scans for
other applications. Be sure to restore the original delay values.
Inputs:
val — Number of system ticks to delay after pushing the first key, before
Outputs:
Value that the key initial delay was previously set to.
Assumptions:
None
Side Effects:
None
Availability:
All versions of the TI-89 / TI-92 Plus.
TI-89 / TI-92 Plus
The system tick is based on the system clock, which may vary across
Differences:
platforms. If you must change these values, it is recommended that you
first query the system to see what the delay is set at, then set the delay to
some fraction or multiple of the system default value.
See Also:
OSBetweenKeyDelay, OSFastArrows
Example:
WORD sysDelay;
/* Dummy call to get the system default value */
sysDelay = OSInitKeyInitDelay( 0 );
/* Set the delay to 4/3 the system's value */
OSInitKeyInitDelay ( sysDelay * 4 / 3 ) ;
// Your code goes here
/* Set the delay back to system default before swapping out or quitting the app */
OSInitKeyInitDelay( sysDelay );
TI-89 / TI-92 Plus Developer Guide
pushing the next key value.
Not for Distribution
649
Beta Version January 26, 2001

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ti-92 plusTi-92 plus

Table of Contents