summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXEvent.h
diff options
context:
space:
mode:
authorwolfsuit <wolfsuit>2003-02-19 19:27:43 (GMT)
committerwolfsuit <wolfsuit>2003-02-19 19:27:43 (GMT)
commite891595e16225fe441b40805b6bc3f1e9ff7cc75 (patch)
treee88ef97ca29843dc17db985018abfbbb170e7a5d /macosx/tkMacOSXEvent.h
parent6e2cd243ccc9bd454ae118549066ad2669c00160 (diff)
downloadtk-e891595e16225fe441b40805b6bc3f1e9ff7cc75.zip
tk-e891595e16225fe441b40805b6bc3f1e9ff7cc75.tar.gz
tk-e891595e16225fe441b40805b6bc3f1e9ff7cc75.tar.bz2
This submission contains a slightly reworked & cleaned up version of
two parts of the patches in Patch Tracker #622582 - new-evthdlng.2003-02-12.diff and basic-keyboard.2003-02-10.diff. The second part puts translation of MacOS X keycodes to characters on a better footing. The first part relaxs Tk's policy of consuming all events unless it can see they go to windows it didn't create. This change gets the little traffic lights working, and should make things like QuickTimeTcl easier to implement.
Diffstat (limited to 'macosx/tkMacOSXEvent.h')
-rw-r--r--macosx/tkMacOSXEvent.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/macosx/tkMacOSXEvent.h b/macosx/tkMacOSXEvent.h
index 2ce339b..4c5ad59 100644
--- a/macosx/tkMacOSXEvent.h
+++ b/macosx/tkMacOSXEvent.h
@@ -62,7 +62,7 @@ enum {
};
typedef struct {
- int handledByTk;
+ int stopProcessing;
int err;
char errMsg[1024];
} MacEventStatus;
@@ -83,4 +83,11 @@ int TkMacOSXProcessWindowEvent(TkMacOSXEvent * e, MacEventStatus * statusPtr);
int TkMacOSXProcessKeyboardEvent(TkMacOSXEvent * e, MacEventStatus * statusPtr);
int TkMacOSXProcessApplicationEvent(TkMacOSXEvent * e, MacEventStatus * statusPtr);
+int TkMacOSXKeycodeToUnicode(
+ UniChar * uniChars, int maxChars,
+ EventKind eKind,
+ UInt32 keycode, UInt32 modifiers,
+ UInt32 * deadKeyStatePtr);
+
+
#endif