Changeset 334

Show
Ignore:
Timestamp:
10/16/07 22:52:24 (15 months ago)
Author:
tomoyo
Message:

JIS配列のキーボードのProductIDを認識するようにした。

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • Apple Wireless Keyboard Helper/trunk/Misuzilla.Applications.AppleWirelessKeyboardHelper/Helper.cs

    r320 r334  
    2525 
    2626        private const UInt32 VIDApple = 0x5ac; 
    27         private const UInt32 PIDAppleWirelessKeyboard = 0x22c; 
     27        private const UInt32 PIDAppleWirelessKeyboardUS = 0x22c; 
     28        private const UInt32 PIDAppleWirelessKeyboardJIS = 0x22e; 
    2829 
    2930        /// <summary> 
     
    6061                    { 
    6162                        Debug.WriteLine(String.Format("VendorID:{0:x}, ProductID:{1:x}, VersionNumber:{2:x}", attrib.VendorID, attrib.ProductID, attrib.VersionNumber)); 
    62                         if (attrib.VendorID == VIDApple && attrib.ProductID == PIDAppleWirelessKeyboard) 
     63                        if (attrib.VendorID == VIDApple && 
     64                           (attrib.ProductID == PIDAppleWirelessKeyboard || attrib.ProductID == PIDAppleWirelessKeyboardJIS)) 
    6365                        { 
    6466                            _stream = new FileStream(mHandle, FileAccess.ReadWrite, 22, true);