Inheritance: java.lang.Object
 /// <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);
     }
 }
Exemple #2
0
		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 ();
		}
Exemple #3
0
		public virtual bool getKeyData (int keyCode, KeyCharacterMap.KeyData results)
		{
			throw new NotImplementedException ();
		}
Exemple #4
0
		/// <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;
			}
		}