示例#1
0
 public StringMapping(StringMappings stringMappings, byte b0, byte b1, byte b2, byte b3)
 {
     m_stringMappings   = stringMappings;
     m_registryScanCode = new byte[4] {
         b0, b1, b2, b3
     };
 }
示例#2
0
        public StringMapping(StringMappings stringMappings, int scanCodeFrom, int scanCodeTo)
        {
            var b0 = (byte)((scanCodeFrom & 0xff00) >> 8);
            var b1 = (byte)(scanCodeFrom & 0xff);
            var b2 = (byte)((scanCodeTo & 0xff00) >> 8);
            var b3 = (byte)(scanCodeTo & 0xff);

            m_stringMappings   = stringMappings;
            m_registryScanCode = new byte[4] {
                b3, b2, b1, b0
            };
        }
示例#3
0
 public void UpdateCurentRegistryBytes() => m_currentRegistryBytes = StringMappings.GetRegistryBytes();