/// <summary>Loads the key character maps for the keyboard with the specified device id. /// </summary> /// <remarks>Loads the key character maps for the keyboard with the specified device id. /// </remarks> /// <param name="deviceId">The device id of the keyboard.</param> /// <returns>The associated key character map.</returns> /// <exception> /// {@link UnavailableException} if the key character map /// could not be loaded because it was malformed or the default key character map /// is missing from the system. /// </exception> public static KeyCharacterMap load(int deviceId) { lock (sInstances) { KeyCharacterMap map = sInstances.get(deviceId); if (map == null) { map = new KeyCharacterMap(deviceId); sInstances.put(deviceId, map); } return(map); } }
public virtual bool getFallbackAction (int keyCode, int metaState, KeyCharacterMap .FallbackAction outFallbackAction) { if (outFallbackAction == null) { throw new System.ArgumentException ("fallbackAction must not be null"); } metaState = KeyEvent.normalizeMetaState (metaState); throw new NotImplementedException (); }
public virtual bool getKeyData (int keyCode, KeyCharacterMap.KeyData results) { throw new NotImplementedException (); }
/// <summary>Loads the key character maps for the keyboard with the specified device id. /// </summary> /// <remarks>Loads the key character maps for the keyboard with the specified device id. /// </remarks> /// <param name="deviceId">The device id of the keyboard.</param> /// <returns>The associated key character map.</returns> /// <exception> /// {@link UnavailableException} if the key character map /// could not be loaded because it was malformed or the default key character map /// is missing from the system. /// </exception> public static KeyCharacterMap load (int deviceId) { lock (sInstances) { KeyCharacterMap map = sInstances.get (deviceId); if (map == null) { map = new KeyCharacterMap (deviceId); sInstances.put (deviceId, map); } return map; } }