include/alp/keysym.h

Go to the documentation of this file.
00001 /***************************************************************************************  
00002  * Copyright (c) 1999-2008 ACCESS CO., LTD. All rights reserved.
00003  * Copyright (c) 2006 PalmSource, Inc (an ACCESS company). All rights reserved.
00004  ***************************************************************************************/
00013 #ifndef __ALP_KEYSYM_H_
00014 #define __ALP_KEYSYM_H_
00015 
00016 #define XK_PUBLISHING
00017 #include <X11/keysym.h>
00018 #include <X11/XF86keysym.h>
00019 
00020 #include <alp/config.h>
00021 
00022 #ifdef __cplusplus
00023 extern "C" {
00024 #endif
00025 
00033 // The non-overridable system keys:
00034 #define ALP_KEY_HOME    XF86XK_VendorHome
00035 
00036 // All other keys are overridable by the current app.
00037 
00038 // Many devices have no distinct power key, instead On-Hook serves that purpose.
00039 #define ALP_KEY_POWER   XF86XK_PowerDown
00040 
00041 #define ALP_KEY_JUMP    XF86XK_LaunchF
00042 #define ALP_KEY_HOTSYNC XF86XK_LaunchE
00043 
00044 // The "red" & "green" On & Off hook keys
00045 #define ALP_KEY_ON_HOOK XF86XK_Close
00046 #define ALP_KEY_OFF_HOOK        XF86XK_Phone
00047 
00048 
00049 // App-defined "soft keys", usually above the 5-way nav, just below the screen.
00050 #define ALP_KEY_SOFTKEY_LEFT            XF86XK_ApplicationLeft
00051 #define ALP_KEY_SOFTKEY_RIGHT           XF86XK_ApplicationRight
00052 
00053 
00054 // App launch keys.  
00055 // Typically, the first four are the hard keys for the PIM apps, and any 
00056 // available soft keys are mapped to the later ones (i.e., for launcher and 
00057 // calculator on PalmOS devices).
00058 // We do not use the specific keysyms (XF86XK_Calendar, XF86XK_Memo, etc.)
00059 // since the buttons are able to be remapped by end users and licensees,
00060 // so the label would likely be wrong.
00061 
00062 #define ALP_KEY_LAUNCH_0        XF86XK_Launch0
00063 #define ALP_KEY_LAUNCH_1        XF86XK_Launch1
00064 #define ALP_KEY_LAUNCH_2        XF86XK_Launch2
00065 #define ALP_KEY_LAUNCH_3        XF86XK_Launch3
00066 #define ALP_KEY_LAUNCH_4        XF86XK_Launch4
00067 #define ALP_KEY_LAUNCH_5        XF86XK_Launch5
00068 #define ALP_KEY_LAUNCH_6        XF86XK_Launch6
00069 #define ALP_KEY_LAUNCH_7        XF86XK_Launch7
00070 
00071 
00072 // Media playback & recording related keys
00073 #define ALP_KEY_MEDIA_PLAY      XF86XK_AudioPlay
00074 #define ALP_KEY_MEDIA_STOP      XF86XK_AudioStop
00075 #define ALP_KEY_MEDIA_PREV      XF86XK_AudioPrev
00076 #define ALP_KEY_MEDIA_NEXT      XF86XK_AudioNext
00077 #define ALP_KEY_MEDIA_RECORD    XF86XK_AudioRecord
00078 
00079 // Volume adjustment
00080 #define ALP_KEY_VOLUME_LOWER    XF86XK_AudioLowerVolume
00081 #define ALP_KEY_VOLUME_MUTE     XF86XK_AudioMute
00082 #define ALP_KEY_VOLUME_RAISE    XF86XK_AudioRaiseVolume
00083 
00084 
00085 // Telephone 12-key numeric keypad.
00086 // We use the "KP" variants whenever possible so as to differentiate between
00087 // the phone's keypad and the similarly marked keys on a full keyboard.
00088 // Although both have a "*" and "#", for example, the keys often have
00089 // quite different behavior.
00090 
00091 #define ALP_KEY_KP_0    XK_KP_0
00092 #define ALP_KEY_KP_1    XK_KP_1
00093 #define ALP_KEY_KP_2    XK_KP_2
00094 #define ALP_KEY_KP_3    XK_KP_3
00095 #define ALP_KEY_KP_4    XK_KP_4
00096 #define ALP_KEY_KP_5    XK_KP_5
00097 #define ALP_KEY_KP_6    XK_KP_6
00098 #define ALP_KEY_KP_7    XK_KP_7
00099 #define ALP_KEY_KP_8    XK_KP_8
00100 #define ALP_KEY_KP_9    XK_KP_9
00101 #define ALP_KEY_KP_NUMBER       XK_KP_Divide
00102 #define ALP_KEY_KP_STAR XK_KP_Multiply
00103 
00104 
00105 // 5-way nav
00106 // Devices which have only an up/down rocker or scroll wheel should still emit 
00107 // these keysyms.
00108 #define ALP_KEY_LEFT    XK_Left
00109 #define ALP_KEY_UP              XK_Up
00110 #define ALP_KEY_RIGHT   XK_Right
00111 #define ALP_KEY_DOWN    XK_Down
00112 #define ALP_KEY_CENTER  XK_KP_Enter
00113 
00114 // OBSOLETE - Only left in to avoid breaking apps, which are on a different build schedule.
00115 #define ALP_KEY_SELECT  ALP_KEY_CENTER
00116 
00117 
00118 // Miscellaneous keys
00119 #define ALP_KEY_CONTRAST                XF86XK_ContrastAdjust
00120 #define ALP_KEY_BRIGHTNESS      XF86XK_BrightnessAdjust
00121 #define ALP_KEY_SEARCH          XF86XK_Search           // Global system find
00122 #define ALP_KEY_MENU            XF86XK_MenuKB           // GTK+'s window-oriented menu key
00123 
00124 #define ALP_KEY_SCROLLWHEEL_CW 0x10090001 /* Clockwise */
00125 #define ALP_KEY_SCROLLWHEEL_CCW 0x10090002 /* Counter Clockwise */
00126 
00127 #define ALP_KEY_EAR_JACK_BUTTON         XF86XK_Send
00128 
00134 #ifdef __cplusplus
00135 }       // extern "C"
00136 #endif
00137 
00138 #endif // __ALP_KEYSYM_H_
00139 
00140 

Generated on Wed Jul 30 07:06:39 2008 by Doxygen 1.4.6 for ALP SDK + Hiker Documentation

Copyright © 1999-2008 ACCESS CO., LTD. All rights reserved.