Inheritance: IInputDriver2, IMouseDriver2, IKeyboardDriver2, IJoystickDriver2
示例#1
0
        private void DeviceValueReceived(IntPtr context, IntPtr res, IntPtr sender, IntPtr val)
        {
            MouseState state1;

            if (this.MouseDevices.TryGetValue(sender, out state1))
            {
                this.MouseDevices[sender] = HIDInput.UpdateMouse(state1, val);
            }
            else
            {
                KeyboardState state2;
                if (!this.KeyboardDevices.TryGetValue(sender, out state2))
                {
                    return;
                }
                this.KeyboardDevices[sender] = HIDInput.UpdateKeyboard(state2, val);
            }
        }
示例#2
0
文件: HIDInput.cs 项目: tanis2000/FEZ
 public static double IOHIDValueGetScaledValue(IntPtr value, HIDInput.IOHIDValueScaleType type);
示例#3
0
文件: HIDInput.cs 项目: tanis2000/FEZ
 public static void IOHIDManagerRegisterDeviceRemovalCallback(IntPtr inIOHIDManagerRef, HIDInput.NativeMethods.IOHIDDeviceCallback inIOHIDDeviceCallback, IntPtr inContext);
示例#4
0
文件: HIDInput.cs 项目: tanis2000/FEZ
 public static void IOHIDDeviceRegisterInputValueCallback(IntPtr device, HIDInput.NativeMethods.IOHIDValueCallback callback, IntPtr context);
示例#5
0
文件: HIDInput.cs 项目: tanis2000/FEZ
 public static bool IOHIDDeviceConformsTo(IntPtr inIOHIDDeviceRef, HIDInput.HIDPage inUsagePage, int inUsage);