From d8967087af559a43f1801e3e89411d570cbb3110 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Sun, 22 Sep 2013 17:14:55 +0000 Subject: plugins cleanup git-svn-id: http://svn.miranda-ng.org/main/trunk@6185 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/KeyboardNotify/src/keyboard.cpp | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'plugins/KeyboardNotify/src/keyboard.cpp') diff --git a/plugins/KeyboardNotify/src/keyboard.cpp b/plugins/KeyboardNotify/src/keyboard.cpp index b0a6761738..3ce6d8cba3 100644 --- a/plugins/KeyboardNotify/src/keyboard.cpp +++ b/plugins/KeyboardNotify/src/keyboard.cpp @@ -19,7 +19,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "Common.h" // Globals -extern BOOL bWindowsNT; extern BYTE bEmulateKeypresses; HANDLE hKbdDev[10] = {INVALID_HANDLE_VALUE, INVALID_HANDLE_VALUE, INVALID_HANDLE_VALUE, INVALID_HANDLE_VALUE, INVALID_HANDLE_VALUE, INVALID_HANDLE_VALUE, INVALID_HANDLE_VALUE, INVALID_HANDLE_VALUE, INVALID_HANDLE_VALUE, INVALID_HANDLE_VALUE}; @@ -51,9 +50,6 @@ BOOL OpenKeyboardDevice() int i = 0; TCHAR aux1[MAX_PATH+1], aux2[MAX_PATH+1]; - if (!bWindowsNT) - return TRUE; - do { mir_sntprintf(aux1, SIZEOF(aux1), _T("Kbd%d"), i); mir_sntprintf(aux2, SIZEOF(aux2), _T("\\Device\\KeyboardClass%d"), i); @@ -77,13 +73,6 @@ BOOL ToggleKeyboardLights(BYTE byte) if (bEmulateKeypresses) return keypresses_ToggleKeyboardLights(byte); - if (!bWindowsNT) { - outportb(0x60, 0xED); - Sleep(10); - outportb(0x60, byte); - return TRUE; - } - InputBuffer.UnitId = 0; InputBuffer.LedFlags = byte; @@ -98,9 +87,6 @@ void CloseKeyboardDevice() int i = 0; TCHAR aux[MAX_PATH+1]; - if (!bWindowsNT) - return; - do { if (hKbdDev[i] != INVALID_HANDLE_VALUE) CloseHandle(hKbdDev[i]); -- cgit v1.2.3