CVSROOT: /sources/gnash Module name: gnash Changes by: Zou Lunkai <zoulunkai> 07/09/16 05:55:30
Modified files: . : ChangeLog server : gnash.h Log message: * server/gnash.h: add gnashCharacter code for proper key handling. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.4325&r2=1.4326 http://cvs.savannah.gnu.org/viewcvs/gnash/server/gnash.h?cvsroot=gnash&r1=1.103&r2=1.104 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.4325 retrieving revision 1.4326 diff -u -b -r1.4325 -r1.4326 --- ChangeLog 15 Sep 2007 17:53:08 -0000 1.4325 +++ ChangeLog 16 Sep 2007 05:55:30 -0000 1.4326 @@ -1,3 +1,7 @@ +2007-09-16 Zou Lunkai <[EMAIL PROTECTED]> + + * server/gnash.h: add gnashCharacter code for proper key handling. + 2007-09-15 Rob Savoye <[EMAIL PROTECTED]> * libbase/test.as: Only execute tests if the Lirc extension is Index: server/gnash.h =================================================================== RCS file: /sources/gnash/gnash/server/gnash.h,v retrieving revision 1.103 retrieving revision 1.104 diff -u -b -r1.103 -r1.104 --- server/gnash.h 11 Sep 2007 15:35:42 -0000 1.103 +++ server/gnash.h 16 Sep 2007 05:55:30 -0000 1.104 @@ -550,6 +550,172 @@ MOD_CONTROL = 2, MOD_ALT = 4 }; + +// Gnash character codes. Each code represents a single character on the keyboard. +// The first 128 code are ordered by their correspond ASCII value. +enum gnashChar +{ + CH_INVALID = 0, + CH_UNKOWN1, + CH_UNKOWN2, + CH_UNKOWN3, + CH_UNKOWN4, + CH_UNKOWN5, + CH_UNKOWN6, + CH_UNKOWN7, + CH_BACkSPACE = 8, + CH_TAB = 9, + CH_UNKOWN10, + CH_UNKOWN11, + CH_CLEAR = 12, + CH_ENTER = 13, + CH_UNKOWN14, + CH_UNKOWN15, + CH_SHIFT = 16, + CH_CONTROL = 17, + CH_ALT = 18, + CH_UNKOWN19, + CH_CAPSLOCK = 20, + CH_UNKOWN21, + CH_UNKOWN22, + CH_UNKOWN23, + CH_UNKOWN24, + CH_UNKOWN25, + CH_UNKOWN26, + CH_ESC = 27, + CH_UNKOWN28, + CH_UNKOWN29, + CH_UNKOWN30, + CH_UNKOWN31, + CH_SPACE = 32, + CH_EXCLAM = 33, + CH_DOUBLE_QUOTE = 34, + CH_HASH = 35, + CH_DOLLAR = 36, + CH_PERCENT = 37, + CH_AMPERSAND = 38 , + CH_SINGLE_QUOTE = 39, + CH_PAREN_LEFT = 40, + CH_PAREN_RIGHT = 41, + CH_ASTERISK = 42, + CH_PLUS = 43, + CH_COMMA = 44, + CH_MINUS = 45, + CH_PERIOD = 46, + CH_SLASH =47, + + CH_0 = 48, + CH_1, + CH_2, + CH_3, + CH_4, + CH_5, + CH_6, + CH_7, + CH_8, + CH_9 = 57, + + CH_COLON = 58, + CH_SEMICOLON = 59, + CH_LESS = 60, + CH_EQUAL = 61, + CH_MORE = 62, + CH_QUESTION = 63, + CH_AT = 64, + + CH_A = 65, + CH_B, + CH_C, + CH_D, + CH_E, + CH_F, + CH_G, + CH_H, + CH_I, + CH_J, + CH_K, + CH_L, + CH_M, + CH_N, + CH_O, + CH_P, + CH_Q, + CH_R, + CH_S, + CH_T, + CH_U, + CH_V, + CH_W, + CH_X, + CH_Y, + CH_Z = 90, + + CH_LEFT_BRACKET = 91, + CH_BACKSLASH =92, + CH_RIGHT_BRACKET = 93, + CH_ASCIICIRCUM = 94, + CH_UNDERSCORE = 95, + CH_BACKTICK = 96, + + CH_a = 97, + CH_b, + CH_c, + CH_d, + CH_e, + CH_f, + CH_g, + CH_h, + CH_i, + CH_j, + CH_k, + CH_l, + CH_m, + CH_n, + CH_o, + CH_p, + CH_q, + CH_r, + CH_s, + CH_t, + CH_u, + CH_v, + CH_w, + CH_x, + CH_y, + CH_z = 122, + + CH_LEFT_CURLY = 123, + CH_PIPE = 124, + CH_RIGHT_CURLY = 125, + CH_ASCIITILDE = 126, + CH_DELETE = 127, + + CH_LEFT_ARROW = 128, + CH_RIGHT_ARROW = 129, + CH_UP_ARROW = 130, + CH_DOWN_ARROW = 131, + CH_HOME = 132, + CH_END = 133, + + CH_NUMLOCK = 134, + + CH_KP_0 =135, + CH_KP_1, + CH_KP_2, + CH_KP_3, + CH_KP_4, + CH_KP_5, + CH_KP_6, + CH_KP_7, + CH_KP_8, + CH_KP_9, + CH_KP_ADD, + CH_KP_SUBTRACT, + CH_KP_MULITPLY, + CH_KP_DEVIDE, + CH_KP_DECIMAL +}; + } // end namespace key /// Some optional helpers. _______________________________________________ Gnash-commit mailing list Gnash-commit@gnu.org http://lists.gnu.org/mailman/listinfo/gnash-commit