appletkb.h

Go to the documentation of this file.
00001 
00002 /*  $Id: appletkb.h 355 2005-01-11 22:48:55Z andreradke $    */
00003 
00004 /* copyright 1991-96 UserLand Software, Inc. All Rights Reserved.*/
00005 
00006 
00007 #define kbinclude /*so other includes can tell if we've been loaded*/
00008 
00009 
00010 #ifndef appletdefsinclude
00011 
00012     #include "appletdefs.h"
00013     
00014 #endif
00015 
00016 
00017 
00018 
00019 typedef struct tykeystrokerecord {
00020 
00021     char chkb;
00022     
00023     byte flshiftkey, flcmdkey, floptionkey, flalphalock, flcontrolkey;
00024         
00025     short ctmodifiers; /*the number of booleans that are on*/
00026 
00027     short keycode; /*see Toolbox Event Manager -- this is the hardware key code*/
00028     
00029     byte flkeypad: 1; /*if true, keystroke comes from numeric keypad*/
00030     
00031     byte flautokey: 1; /*if true, keystroke is an automatic key*/
00032     
00033     tydirection keydirection; 
00034     } tykeystrokerecord, *ptrkeystrokerecord, **hdlkeystrokerecord;
00035 
00036 
00037 extern tykeystrokerecord keyboardstatus;
00038 
00039 
00040 tydirection keystroketodirection (char ch); 
00041 
00042 boolean arrowkey (char);
00043 
00044 tydirection keystroketodirection (char);
00045 
00046 void setkeyboardstatus (long, long, long);
00047 
00048 void keyboardclearescape (void);
00049 
00050 void keyboardsetescape (void);
00051 
00052 boolean keyboardescape (void);
00053 
00054 void keyboardpeek (tykeystrokerecord *);
00055 
00056 boolean enterkeydown (void);
00057 
00058 boolean optionkeydown (void);
00059 
00060 boolean cmdkeydown (void);
00061 
00062 boolean shiftkeydown (void);
00063 
00064 boolean returnkeydown (void);
00065 
00066 

Generated on Wed May 31 18:19:42 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6