fn refine_vk(&self, vk: VkCode, mut scan_code: u32) -> VkCode {
        match vk as INT {
            0 | VK_SHIFT | VK_CONTROL | VK_MENU => {
                if scan_code >= 0x100 {
                    scan_code += 0xE000 - 0x100;
                }
                unsafe { MapVirtualKeyExW(scan_code, MAPVK_VSC_TO_VK_EX, self.hkl) as u8 }
            }
            _ => vk,
        }
    }
/// Refine a virtual key code to distinguish left and right.
///
/// This only does the mapping if the original code is ambiguous, as otherwise the
/// virtual key code reported in `wparam` is more reliable.
Refine a virtual key code to distinguish left and right.
This only does the mapping if the original code is ambiguous, as otherwise the
virtual key code reported in `wparam` is more reliable.
Refine a virtual key code to distinguish left and right . This only does the mapping if the original code is ambiguous as otherwise the virtual key code reported in ` wparam ` is more reliable .
fn refine_vk(&self, vk: VkCode, mut scan_code: u32) -> VkCode {
        match vk as INT {
            0 | VK_SHIFT | VK_CONTROL | VK_MENU => {
                if scan_code >= 0x100 {
                    scan_code += 0xE000 - 0x100;
                }
                unsafe { MapVirtualKeyExW(scan_code, MAPVK_VSC_TO_VK_EX, self.hkl) as u8 }
            }
            _ => vk,
        }
    }
fn refine_vk ( & self , vk : VkCode , mut scan_code : u32 ) -> VkCode { match vk as INT { 0 | VK_SHIFT | VK_CONTROL | VK_MENU => { if scan_code >= 0x100 { scan_code += 0xE000 - 0x100 ; } unsafe { MapVirtualKeyExW ( scan_code , MAPVK_VSC_TO_VK_EX , self . hkl ) as u8 } } _ => vk , } }
Refine a virtual key code to distinguish left and right.
Refine a virtual key code to distinguish left and right .
&self
vk
VkCode
scan_code
u32
&self
vk
VkCode
scan_code
u32