Changeset 342

Show
Ignore:
Timestamp:
10/23/07 22:26:35 (15 months ago)
Author:
tomoyo
Message:

* コードの見た目的修正
* Any CPUのセットでx86をビルドするようにした

Location:
Apple Wireless Keyboard Helper/trunk
Files:
3 modified

Legend:

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

    r326 r342  
    1818                {A4D4C6B9-6641-4B3D-A023-27C8EC699F9C}.Debug|x86.ActiveCfg = Debug|x86 
    1919                {A4D4C6B9-6641-4B3D-A023-27C8EC699F9C}.Debug|x86.Build.0 = Debug|x86 
    20                 {A4D4C6B9-6641-4B3D-A023-27C8EC699F9C}.Release|Any CPU.ActiveCfg = Release|Any CPU 
    21                 {A4D4C6B9-6641-4B3D-A023-27C8EC699F9C}.Release|Any CPU.Build.0 = Release|Any CPU 
     20                {A4D4C6B9-6641-4B3D-A023-27C8EC699F9C}.Release|Any CPU.ActiveCfg = Release|x86 
     21                {A4D4C6B9-6641-4B3D-A023-27C8EC699F9C}.Release|Any CPU.Build.0 = Release|x86 
    2222                {A4D4C6B9-6641-4B3D-A023-27C8EC699F9C}.Release|x86.ActiveCfg = Release|x86 
    2323                {A4D4C6B9-6641-4B3D-A023-27C8EC699F9C}.Release|x86.Build.0 = Release|x86 
  • Apple Wireless Keyboard Helper/trunk/Misuzilla.Applications.AppleWirelessKeyboardHelper/Helper.cs

    r335 r342  
    11using System; 
    2 using System.Collections.Generic; 
    3 using System.Text; 
     2using System.Diagnostics; 
    43using System.IO; 
    5 using System.Diagnostics; 
     4using System.Runtime.InteropServices; 
    65using System.Windows.Forms; 
    7 using System.Runtime.InteropServices; 
    86using Microsoft.Win32.SafeHandles; 
    9  
    107using WiimoteLib; 
    118 
     
    4744            { 
    4845                HIDImports.SP_DEVICE_INTERFACE_DETAIL_DATA diDetail = new HIDImports.SP_DEVICE_INTERFACE_DETAIL_DATA(); 
    49                 diDetail.cbSize = (IntPtr.Size == 8) ? (UInt32)8 : (UInt32)5; // x64:8, x86:5 
    50  
    51                 UInt32 size = 0; 
     46                diDetail.cbSize = (IntPtr.Size == 8) ? (UInt32)8 : 5; // x64:8, x86:5 
     47 
     48                UInt32 size; 
    5249                HIDImports.SetupDiGetDeviceInterfaceDetail(hDevInfo, ref diData, IntPtr.Zero, 0, out size, IntPtr.Zero); 
    5350                if (HIDImports.SetupDiGetDeviceInterfaceDetail(hDevInfo, ref diData, ref diDetail, size, out size, IntPtr.Zero)) 
     
    162159            } 
    163160 
    164              
    165161            Byte[] buffer = ar.AsyncState as Byte[]; 
    166  
    167162            foreach (Byte b in buffer) 
    168163                Debug.Write(String.Format("{0:x2} ", b)); 
     
    170165            if (buffer[0] == 0x11) 
    171166            { 
    172                 Debug.Write((AppleKeyboardKeys)buffer[1]); 
    173                 CurrentKeyState = (AppleKeyboardKeys)buffer[1]; 
     167                Debug.Write((AppleKeyboardKeys) buffer[1]); 
     168                CurrentKeyState = (AppleKeyboardKeys) buffer[1]; 
    174169            } 
    175170            else if (buffer[0] == 0x13) 
  • Apple Wireless Keyboard Helper/trunk/Misuzilla.Applications.AppleWirelessKeyboardHelper/Program.cs

    r340 r342  
    11using System; 
     2using System.Diagnostics; 
    23using System.IO; 
     4using System.Reflection; 
    35using System.Text; 
    4 using System.Collections.Generic; 
    5 using System.Diagnostics; 
    6 using System.Runtime.InteropServices; 
    7 using System.Reflection; 
    86using System.Windows.Forms; 
    9  
    107using IronPython; 
    118using Microsoft.Scripting; 
     
    2320         
    2421        //[STAThread] 
    25         static void Main(string[] args) 
     22        static void Main() 
    2623        { 
    2724            using (Helper helper = new Helper()) 
     
    5552                }; 
    5653 
    57                 helper.Disconnected += delegate(Object sender, EventArgs e) 
     54                helper.Disconnected += delegate 
    5855                { 
    5956                    ShowBalloonTip(Resources.Strings.KeyboardDisconnected, ToolTipIcon.Warning); 
     
    175172            _notifyIcon.Visible = true; 
    176173            _notifyIcon.ContextMenu = new ContextMenu(new MenuItem[]{ 
    177                 new MenuItem(Resources.Strings.MenuItemReloadScripts, delegate (Object sender, EventArgs e) { 
     174                new MenuItem(Resources.Strings.MenuItemReloadScripts, delegate { 
    178175                    LoadScripts(); 
    179176                }) 
    180177                , new MenuItem("-") 
    181                 , new MenuItem(Resources.Strings.MenuItemExit, delegate (Object sender, EventArgs e) { 
     178                , new MenuItem(Resources.Strings.MenuItemExit, delegate { 
    182179                    Application.Exit(); 
    183180                })