API Guide Home (Online version only) |

# HsChars.h

Go to the documentation of this file.

    00001 /** @ingroup System
    00002  *
    00003  */
    00004 /**
    00005  * @file HsChars.h
    00006  *
    00007  * Definitions of Handspring's character codes.
    00008  * (see Palm's Chars.h)
    00009  *
    00010  * \license
    00011  *
    00012  * Copyright (c) 2002 Handspring Inc., All Rights Reserved
    00013  *
    00014  * $Id: //device/handheld/dev/sdk/2.2.2/incs/common/system/HsChars.h#3 $
    00015  *
    00016  ****************************************************************/
    00017
    00018 #ifndef __HSCHAR_H__
    00019 #define __HSCHAR_H__
    00020
    00021 // ------------------------------------------------------------------------------
    00022 //  Key codes and events
    00023 // ------------------------------------------------------------------------------
    00024
    00025 // Keycode range assigned to us from Palm
    00026 #define hsChrRangeMin                 0x1600  // vchrSlinkyMin
    00027 #define hsChrRangeMax                 0x16FF  // vchrSlinkyMax
    00028
    00029
    00030 // OBSOLETE - No more graffiti area so no more "dots"
    00031 // key codes for the "dot" soft icons
    00032 //#define hsChrMidLeftDot             0x1600
    00033 //#define hsChrMidRightDot            0x1601
    00034 //#define hsChrBotLeftDot             0x1602
    00035 //#define hsChrBotRightDot            0x1603
    00036
    00037 // OBSOLETE - we no longer detect the serial cradle
    00038 // The virtual cradle 2 character for notification of serial connection
    00039 //#define   hsChrCradle2OnChr         0x1604      // dock input level asserted
    00040 //#define   hsChrCradle2OffChr        0x1605      // dock input level de-asserted
    00041
    00042 // OBSOLETE - No more springboard
    00043 // card removed or inserted
    00044 //#define   hsChrCardStatusChg        0x1606
    00045
    00046 // DOLATER: OBSOLETE? - PhonePrefs checks it, but nobody enqueues it.
    00047 // no-op key event that is used to interrupt apps that are
    00048 // interrupted by key events...
    00049 #define hsChrNoop                     0x1607
    00050
    00051 // OBSOLETE - Replaced by Palm's vchrJogPush
    00052 // jog-in key
    00053 //#define hsChrJogScan                0x1608
    00054
    00055 // key that invokes ListType
    00056 #define hsChrSymbol                   0x1609
    00057 #define hsChrPostProcess              hsChrSymbol
    00058
    00059 // answer incoming call
    00060 #define hsChrAnswer                   0x160A
    00061
    00062 // the lid was either opened or closed
    00063 #define hsChrLidStatusChg             0x160B
    00064
    00065 // toggle the radio power
    00066 #define hsChrRadioPower               0x160C
    00067
    00068 // shift, option, or control (menu) - update the graffiti state indicator
    00069 #define hsChrModifierKey              0x160D    // was hsChrUpdateGrfIndicator
    00070
    00071 // shift + page-up
    00072 #define hsChrShiftPageUp              0x160E
    00073
    00074 // shift + page-down
    00075 #define hsChrShiftPageDown            0x160F
    00076
    00077 // please shut down netlib
    00078 #define hsChrShutdownNetlib           0x1610
    00079
    00080 // mute switch on or off
    00081 #define hsChrMuteOn                   0x1611
    00082 #define hsChrMuteOff                  0x1612
    00083
    00084
    00085 // 5-way rocker (see "Chars.h" section of HsNavCommon.h)
    00086 //#define vchrRockerUp                  0x0132      // 5-way rocker up
    00087 //#define vchrRockerDown                0x0133      // 5-way rocker down
    00088 //#define vchrRockerLeft                0x0134      // 5-way rocker left
    00089 //#define vchrRockerRight               0x0135      // 5-way rocker right
    00090 //#define vchrRockerCenter              0x0136      // 5-way rocker center/press
    00091
    00092 // opt + app
    00093 #define hsChrOptHard1                 vchrHard5
    00094 #define hsChrOptHard2                 vchrHard6
    00095 #define hsChrOptHard3                 vchrHard7
    00096 #define hsChrOptHard4                 vchrHard8
    00097 #define hsChrOptHardPower             vchrHard9
    00098 #define hsChrOptReserved              vchrHard10    // for future use
    00099 #define hsChrOptHard11                vchrHard12
    00100 #define hsChrOptHard13                vchrHard14
    00101
    00102 // AVAILABLE
    00103 //#define hsChrAvailable13            0x1613
    00104 //#define hsChrAvailable14            0x1614
    00105 //#define hsChrAvailable15            0x1615
    00106 //#define hsChrAvailable16            0x1616
    00107 //#define hsChrAvailable17            0x1617
    00108
    00109 // enqueued after the display is turned on
    00110 // (the display is usually still off for Palm's late wakeup)
    00111 #define hsChrWakeup                   0x1618
    00112
    00113 // causes the keyguard dialog to be displayed
    00114 // for internal use only... use hsAttrKeyboardLocked to programmatically enable/disable it
    00115 #define hsChrKeyboardLock             0x1619
    00116
    00117 // delete the word at the cursor in a text edit field
    00118 #define hsChrDeleteWord               0x161A
    00119
    00120 // we now define these audio volume up and down key events (original Treo used vchrJogUp and vchrJogDown)
    00121 #define hsChrVolumeUp                 0x161B
    00122 #define hsChrVolumeDown               0x161C
    00123
    00124 // this character is enqueued by NetMaster library when it needs to execute
    00125 // code from the UI task's context while handling a background login request
    00126 #define hsChrNetMasterUIExecute       0x161D
    00127
    00128 // This character is enqueued by our patch to EvtGetEvent when the device needs
    00129 //  to shutdown because the battery is too low.  If the battery countdown
    00130 //  dialog is able to handle the shutdown itself, then it will clear the
    00131 //  system's shutdown time and the system will not shutdown the device.  If the
    00132 //  battery countdown dialog is not able to handle the shutdown itself, the
    00133 //  system will handle the shutdown the next time EvtGetEvent is called.
    00134 #define hsChrLowBatteryShutdown       0x161E
    00135
    00136 // side button (below volume keys on Treo650)
    00137 #define hsChrSide                     0x161F
    00138
    00139 // Opt + RightShift == "dark mode" on Treo650
    00140 #define hsChrDarkMode                                     0x1620
    00141
    00142 // Used to rebroadcast the Send key to invoke the redial list
    00143 #define hsChrRedialList                                   0x1621
    00144
    00145 // Used in bug 217045
    00146 #define hsChrReserved1622                                    0x1622
    00147
    00148 // Characters in PSI's "hard-key" range.  We've received PSI's permission for these definitions.  PSI
    00149 //  will include these definitions in their next 5.x SDK release so we surround these definitions with
    00150 //  macros.
    00151
    00152 #ifndef vchrHard11
    00153 #define vchrHard11                  0x021A
    00154 #endif // vchrHard11
    00155
    00156 #ifndef vchrHard12
    00157 #define vchrHard12                  0x021B  // Alternative vchrHard11 action
    00158 #endif // vchrHard12
    00159
    00160 #ifndef vchrHard13
    00161 #define vchrHard13                  0x021C
    00162 #endif // vchrHard13
    00163
    00164 #ifndef vchrHard14
    00165 #define vchrHard14                  0x021D  // Alternative vchrHard14 action
    00166 #endif // vchrHard14
    00167
    00168 #endif  // __HSCHAR_H__
    00169
    00170

Top | Palm Developer Network © 2004-2008, Palm, Inc. All rights reserved. Generated on Fri Jun 13 10:06:53 2008 for Palm API Guide