Kb_89 - Texas Instruments TI-89 Developer's Manual

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

Advertisement

Appendix A: System Routines — Utilities

KB_89

Declaration:
USHORT KB_89 (USHORT ch )
Category(ies):
Utilities
Description:
Translates TI-92 Plus keys to TI-89 keys.
If this routine is running on a TI-89, then ch is returned unchanged. If this
routine is running on a TI-92 Plus, the cursor arrow key codes are
translated into TI-89 cursor arrow key codes.
This routine is useful for writing one source to run on both platforms.
Inputs:
ch — Character from the CM_KEY_PRESS event or the ngetchx
Outputs:
Returns translated character.
Assumptions:
None
Side Effects:
None
Availability:
All versions of the TI-89 / TI-92 Plus.
TI-89 / TI-92 Plus
Differences:
None
See Also:
Not applicable.
Example:
switch (event->command)
{
USHORT key;
.
.
.
case CM_KEY_PRESS:
key = KB_89(event->info.keyInfo.keyCode);
/* process translated key press */
.
.
.
}
TI-89 / TI-92 Plus Developer Guide
routine.
Not for Distribution
1105
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