comparison src/de/mud/terminal/VDUInput.java @ 104:171e0a977544

cleanup keystroke handling
author Carl Byington <carl@five-ten-sg.com>
date Wed, 18 Jun 2014 10:10:14 -0700
parents 0ce5cc452d02
children
comparison
equal deleted inserted replaced
103:1a34365fab9b 104:171e0a977544
70 * @param codes a properties object containing key code definitions 70 * @param codes a properties object containing key code definitions
71 */ 71 */
72 void setKeyCodes(Properties codes); 72 void setKeyCodes(Properties codes);
73 73
74 /** 74 /**
75 * main keytyping event handler... 75 * keytyping event handler for all the special function and modifier keys
76 * @param keyCode the key code 76 * @param keyCode the key code
77 * @param keyChar the character represented by the key 77 * @param keyChar the character represented by the key
78 * @param modifiers shift/alt/control modifiers 78 * @param modifiers shift/alt/control modifiers
79 */ 79 */
80 void keyPressed(int keyCode, char keyChar, int modifiers); 80 void keyPressed(int keyCode, char keyChar, int modifiers);
81 81
82 /**
83 * Handle key Typed events for the terminal, this will get
84 * all normal key types, but no shift/alt/control/numlock.
85 * @param keyCode the key code
86 * @param keyChar the character represented by the key
87 * @param modifiers shift/alt/control modifiers
88 */
89 void keyTyped(int keyCode, char keyChar, int modifiers);
90 } 82 }