예제 #1
0
파일: Input64.cs 프로젝트: EDOlsson/White
 /// <summary>
 /// Converts a 32bit Input to a 64bit Input
 /// </summary>
 /// <param name="input"></param>
 public Input64(Input input)
 {
     type = input.type;
     mi = input.mi;
     ki = input.ki;
     hi = input.hi;
 }
예제 #2
0
파일: Mouse.cs 프로젝트: EricBlack/White
 static extern int SendInput(uint numberOfInputs, ref Input input, int structSize);
예제 #3
0
파일: Mouse.cs 프로젝트: EricBlack/White
 private static void SendInput(Input input)
 {
     // Added check for 32/64 bit  
     if (IntPtr.Size == 4)
         SendInput(1, ref input, Marshal.SizeOf(typeof(Input)));
     else
     {
         var input64 = new Input64(input);
         SendInput64(1, ref input64, Marshal.SizeOf(typeof(Input)));
     }
 }