Esempio n. 1
0
 private void Dispose(bool disposing)
 {
     if (this.IsDisposed)
     {
         return;
     }
     LocalizedKeyboardState.UnloadKeyboardLayout(this.Handle);
     this.IsDisposed = true;
 }
Esempio n. 2
0
 public static Keys USEnglishToLocal(Keys key)
 {
     return((Keys)LocalizedKeyboardState.MapVirtualKeyEx(LocalizedKeyboardState.MapVirtualKeyEx((uint)key, LocalizedKeyboardState.MAPVK.VK_TO_VSC, LocalizedKeyboardState.KeyboardLayout.US_English.Handle), LocalizedKeyboardState.MAPVK.VSC_TO_VK, LocalizedKeyboardState.KeyboardLayout.Active.Handle));
 }
Esempio n. 3
0
 public KeyboardLayout(string keyboardLayoutID)
     : this(LocalizedKeyboardState.LoadKeyboardLayout(keyboardLayoutID, 128U))
 {
 }
Esempio n. 4
0
 internal static uint MapVirtualKeyEx(uint key, LocalizedKeyboardState.MAPVK mappingType, IntPtr keyboardLayout);