]> git.saurik.com Git - wxWidgets.git/commitdiff
fix typo (missing closing brackets); add some comments to wxKeyCode; no real change
authorFrancesco Montorsi <f18m_cpp217828@yahoo.it>
Fri, 30 Jan 2009 16:07:19 +0000 (16:07 +0000)
committerFrancesco Montorsi <f18m_cpp217828@yahoo.it>
Fri, 30 Jan 2009 16:07:19 +0000 (16:07 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58521 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/defs.h

index 5db80e86af360f582b235420e81d232d55ef83c8..50be6dfdeb46b1a6784c8c8f52519d454c9b4897 100644 (file)
@@ -1166,8 +1166,8 @@ inline void *wxUIntToPtr(wxUIntPtr p)
 
 
 /*  base floating point types */
-/*  wxFloat32: 32 bit IEEE float ( 1 sign, 8 exponent bits, 23 fraction bits */
-/*  wxFloat64: 64 bit IEEE float ( 1 sign, 11 exponent bits, 52 fraction bits */
+/*  wxFloat32: 32 bit IEEE float ( 1 sign, 8 exponent bits, 23 fraction bits */
+/*  wxFloat64: 64 bit IEEE float ( 1 sign, 11 exponent bits, 52 fraction bits */
 /*  wxDouble: native fastest representation that has at least wxFloat64 */
 /*            precision, so use the IEEE types for storage, and this for */
 /*            calculations */
@@ -2196,13 +2196,20 @@ enum wxDataFormatId
 /*  Virtual keycodes */
 enum wxKeyCode
 {
-    WXK_BACK    =    8,
+    WXK_BACK    =    8, // backspace
     WXK_TAB     =    9,
     WXK_RETURN  =    13,
     WXK_ESCAPE  =    27,
+
+    /* values from 33 to 126 are reserved for the standard ASCII characters */
+
     WXK_SPACE   =    32,
     WXK_DELETE  =    127,
 
+    /* values from 128 to 255 are reserved for ASCII extended characters
+       (note that there isn't a real widely used standard for the meaning
+       of these values; avoid them in portable apps!) */
+
     /* These are, by design, not compatible with unicode characters.
        If you want to get a unicode character from a key event, use
        wxKeyEvent::GetUnicodeKey instead.                           */