Ignore:
Timestamp:
09/04/12 16:12:06 (12 years ago)
Author:
sherbold
Message:
  • complete rewrite of keyboard interaction sorting. As a result, the command cleanupKeyInteractions is deprecated.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/quest-core-events/src/main/java/de/ugoe/cs/quest/eventcore/gui/TextInputDetector.java

    r751 r765  
    228228            event = sequence.get(i); 
    229229             
    230             if (event.getType() instanceof KeyPressed) { 
    231                 VirtualKey key = ((KeyPressed) event.getType()).getKey(); 
     230            if (event.getType() instanceof KeyPressed || event.getType() instanceof KeyTyped) { 
     231                VirtualKey key = ((KeyInteraction) event.getType()).getKey(); 
    232232 
    233233                pressedKeys.add(key); 
     
    251251                } 
    252252            } 
    253             else if (event.getType() instanceof KeyReleased) { 
    254                 pressedKeys.remove(((KeyReleased) event.getType()).getKey()); 
     253            else if (event.getType() instanceof KeyReleased || event.getType() instanceof KeyTyped) { 
     254                pressedKeys.remove(((KeyInteraction) event.getType()).getKey()); 
    255255            } 
    256256            else { 
Note: See TracChangeset for help on using the changeset viewer.