org.jagatoo.input.localization.mappings
Interface Mapping

All Known Implementing Classes:
MappingFrance, MappingGermany

public interface Mapping

This is used to map modified chars to unmodified ones.


Method Summary
 Key getLocalizedKey(char keyChar)
           
 java.lang.String getLocalizedKeyName(DeviceComponent key)
          Searches for a localized name for the given Key.
 Key getLowerYZKey()
           
 char getModifiedChar(Key key, char unmodChar, int modifierMask)
          Must return the char, that is assotiated to the key with the given key-code when the given modifier is pressed.
 Key getUpperYZKey()
           
 

Method Detail

getUpperYZKey

Key getUpperYZKey()
Returns:
the key or {Y, Z}, which is the upper one. On a German keyboard this is the Z key on US or UK keyboard this is the Y key.

getLowerYZKey

Key getLowerYZKey()
Returns:
the key or {Y, Z}, which is the lower one. On a German keyboard this is the Y key on US or UK keyboard this is the Z key.

getModifiedChar

char getModifiedChar(Key key,
                     char unmodChar,
                     int modifierMask)
Must return the char, that is assotiated to the key with the given key-code when the given modifier is pressed.

Parameters:
key - the queried key
unmodChar -
modifier - this is one of Keys#MODIFIER_SHIFT, Keys#MODIFIER_ALT, Keys#MODIFIER_ALT_GR
Returns:
the modified char.

getLocalizedKey

Key getLocalizedKey(char keyChar)

getLocalizedKeyName

java.lang.String getLocalizedKeyName(DeviceComponent key)
Searches for a localized name for the given Key.
If none was found, the result of key.getName() is returned.

Parameters:
key -
Returns:
the localized key-name.