appletkb.c File Reference

#include "appletmemory.h"
#include "appletcursor.h"
#include "appletkb.h"

Include dependency graph for appletkb.c:

Go to the source code of this file.

Defines

#define keycodeclear   71
#define keycodeminus   78
#define keycodeplus   69
#define keycodetimes   67
#define keycodeseven   89
#define keycodeeight   91
#define keycodenine   92
#define keycodedivide   77
#define keycodefour   86
#define keycodefive   87
#define keycodesix   88
#define keycodecomma   72
#define keycodeone   83
#define keycodetwo   84
#define keycodethree   85
#define keycodeenter   76
#define keycodezero   82
#define keycodeperiod   65

Functions

boolean arrowkey (char chkb)
tydirection keystroketodirection (char ch)
static void kbsetstatus (EventRecord ev, tykeystrokerecord *kbs)
void setkeyboardstatus (EventRecord ev)
void keyboardclearescape (void)
boolean keyboardescape (void)
void keyboardpeek (tykeystrokerecord *kbrecord)
static boolean keydown (short keycode)
boolean enterkeydown (void)
boolean optionkeydown (void)
boolean cmdkeydown (void)
boolean shiftkeydown (void)
boolean returnkeydown (void)

Variables

tykeystrokerecord keyboardstatus
static boolean flescapepending = false


Define Documentation

#define keycodeclear   71
 

Definition at line 13 of file appletkb.c.

Referenced by kbsetstatus().

#define keycodecomma   72
 

Definition at line 24 of file appletkb.c.

Referenced by kbsetstatus().

#define keycodedivide   77
 

Definition at line 20 of file appletkb.c.

Referenced by kbsetstatus().

#define keycodeeight   91
 

Definition at line 18 of file appletkb.c.

Referenced by kbsetstatus().

#define keycodeenter   76
 

Definition at line 28 of file appletkb.c.

Referenced by kbsetstatus().

#define keycodefive   87
 

Definition at line 22 of file appletkb.c.

Referenced by kbsetstatus().

#define keycodefour   86
 

Definition at line 21 of file appletkb.c.

Referenced by kbsetstatus().

#define keycodeminus   78
 

Definition at line 14 of file appletkb.c.

Referenced by kbsetstatus().

#define keycodenine   92
 

Definition at line 19 of file appletkb.c.

Referenced by kbsetstatus().

#define keycodeone   83
 

Definition at line 25 of file appletkb.c.

Referenced by kbsetstatus().

#define keycodeperiod   65
 

Definition at line 30 of file appletkb.c.

Referenced by kbsetstatus().

#define keycodeplus   69
 

Definition at line 15 of file appletkb.c.

Referenced by kbsetstatus().

#define keycodeseven   89
 

Definition at line 17 of file appletkb.c.

Referenced by kbsetstatus().

#define keycodesix   88
 

Definition at line 23 of file appletkb.c.

Referenced by kbsetstatus().

#define keycodethree   85
 

Definition at line 27 of file appletkb.c.

Referenced by kbsetstatus().

#define keycodetimes   67
 

Definition at line 16 of file appletkb.c.

Referenced by kbsetstatus().

#define keycodetwo   84
 

Definition at line 26 of file appletkb.c.

Referenced by kbsetstatus().

#define keycodezero   82
 

Definition at line 29 of file appletkb.c.

Referenced by kbsetstatus().


Function Documentation

boolean arrowkey char  chkb  ) 
 

Definition at line 40 of file appletkb.c.

References chdownarrow, chleftarrow, chrightarrow, and chuparrow.

boolean cmdkeydown void   ) 
 

Definition at line 294 of file appletkb.c.

References keydown().

Here is the call graph for this function:

boolean enterkeydown void   ) 
 

Definition at line 282 of file appletkb.c.

References keydown().

Here is the call graph for this function:

static void kbsetstatus EventRecord  ev,
tykeystrokerecord kbs
[static]
 

Definition at line 76 of file appletkb.c.

References autoKey, tykeystrokerecord::chkb, chnul, ct, tykeystrokerecord::ctmodifiers, tykeystrokerecord::flalphalock, tykeystrokerecord::flautokey, tykeystrokerecord::flcmdkey, tykeystrokerecord::flcontrolkey, tykeystrokerecord::flkeypad, tykeystrokerecord::floptionkey, tykeystrokerecord::flshiftkey, kbs, tykeystrokerecord::keycode, keycodeclear, keycodecomma, keycodedivide, keycodeeight, keycodeenter, keycodefive, keycodefour, keycodeminus, keycodenine, keycodeone, keycodeperiod, keycodeplus, keycodeseven, keycodesix, keycodethree, keycodetimes, keycodetwo, keycodezero, tykeystrokerecord::keydirection, keystroketodirection(), tyEventRecord::message, tyEventRecord::modifiers, mouseDown, nodirection, NULL, and tyEventRecord::what.

Here is the call graph for this function:

void keyboardclearescape void   ) 
 

Definition at line 187 of file appletkb.c.

References flescapepending.

boolean keyboardescape void   ) 
 

Definition at line 193 of file appletkb.c.

References chescape, tykeystrokerecord::chkb, EventAvail(), tykeystrokerecord::flcmdkey, flescapepending, iscmdperiodevent(), kbsetstatus(), keyboardsetescape(), keyDownMask, tyEventRecord::message, tyEventRecord::modifiers, NULL, rollbeachball(), and tyEventRecord::what.

Here is the call graph for this function:

void keyboardpeek tykeystrokerecord kbrecord  ) 
 

Definition at line 253 of file appletkb.c.

References clearbytes(), cmdkeydown(), controlkeydown(), keys, longsizeof, optionkeydown(), and shiftkeydown().

Here is the call graph for this function:

static boolean keydown short  keycode  )  [static]
 

Definition at line 272 of file appletkb.c.

References keys.

tydirection keystroketodirection char  ch  ) 
 

Definition at line 55 of file appletkb.c.

References chdownarrow, chleftarrow, chrightarrow, chuparrow, down, left, nodirection, right, and up.

boolean optionkeydown void   ) 
 

Definition at line 288 of file appletkb.c.

References keydown().

Here is the call graph for this function:

boolean returnkeydown void   ) 
 

Definition at line 306 of file appletkb.c.

References keydown().

Here is the call graph for this function:

void setkeyboardstatus EventRecord  ev  ) 
 

Definition at line 175 of file appletkb.c.

References kbsetstatus(), and keyboardstatus.

Here is the call graph for this function:

boolean shiftkeydown void   ) 
 

Definition at line 300 of file appletkb.c.

References keydown().

Here is the call graph for this function:


Variable Documentation

boolean flescapepending = false [static]
 

Definition at line 35 of file appletkb.c.

tykeystrokerecord keyboardstatus
 

Definition at line 33 of file appletkb.c.


Generated on Wed May 31 20:49:47 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6