/// <summary> /// This is the required call to start /// the mouse receiving interrupts. /// </summary> public override void Initialize() { SendCommand(Command.Reset); mPS2Controller.WaitForDeviceReset(); if (mMouseID == 0) { mMouseID = TryToEnableScrollWheel(); mDebugger.SendInternal("(PS/2 Mouse) Mouse ID: " + mMouseID); if (mMouseID == 3) { mMouseID = TryToEnableAdditionalButtons(); } mDebugger.SendInternal("(PS/2 Mouse) Mouse ID: " + mMouseID); } //SendCommand(Command.SetDefaults); //mPS2Controller.WaitForAck(); INTs.SetIrqHandler(12, HandleMouse); SendCommand(Command.EnablePacketStreaming); mPS2Controller.WaitForAck(); }
public override void Initialize() { SendCommand(Command.Reset); mPS2Controller.WaitForDeviceReset(); //VMWare doesn't support the Get/SetScanCode command //mDebugger.SendInternal("(PS/2 Keyboard) Current scan code set: " + GetScanCodeSet()); //SetScanCodeSet(1); //mDebugger.SendInternal("(PS/2 Keyboard) Current scan code set: " + GetScanCodeSet()); INTs.SetIrqHandler(1, HandleIRQ); SendCommand(Command.EnableScanning); Global.mDebugger.SendInternal("(PS/2 Keyboard) Initialized"); }
public override void Initialize() { SendCommand(Command.Reset); mPS2Controller.WaitForDeviceReset(); if (PCI.GetDevice((VendorID)0x80EE, (DeviceID)0xBEEF) == null && PCI.GetDevice((VendorID)0x15AD, (DeviceID)0x0405) == null) { SetScanCodeSet(1); } //VMware doesn't support the Get/SetScanCode command //mDebugger.SendInternal("(PS/2 Keyboard) Current scan code set: " + GetScanCodeSet()); //SetScanCodeSet(1); //mDebugger.SendInternal("(PS/2 Keyboard) Current scan code set: " + GetScanCodeSet()); INTs.SetIrqHandler(1, HandleIRQ); SendCommand(Command.EnableScanning); Global.mDebugger.SendInternal("(PS/2 Keyboard) Initialized"); }