Changeset 765 for trunk/quest-core-events/src/main/java/de/ugoe
- Timestamp:
- 09/04/12 16:12:06 (12 years ago)
- Location:
- trunk/quest-core-events/src/main/java/de/ugoe/cs/quest/eventcore/gui
- Files:
-
- 2 added
- 2 deleted
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/quest-core-events/src/main/java/de/ugoe/cs/quest/eventcore/gui/TextInputDetector.java
r751 r765 228 228 event = sequence.get(i); 229 229 230 if (event.getType() instanceof KeyPressed ) {231 VirtualKey key = ((Key Pressed) event.getType()).getKey();230 if (event.getType() instanceof KeyPressed || event.getType() instanceof KeyTyped) { 231 VirtualKey key = ((KeyInteraction) event.getType()).getKey(); 232 232 233 233 pressedKeys.add(key); … … 251 251 } 252 252 } 253 else if (event.getType() instanceof KeyReleased ) {254 pressedKeys.remove(((Key Released) event.getType()).getKey());253 else if (event.getType() instanceof KeyReleased || event.getType() instanceof KeyTyped) { 254 pressedKeys.remove(((KeyInteraction) event.getType()).getKey()); 255 255 } 256 256 else {
Note: See TracChangeset
for help on using the changeset viewer.