Release 940405
[wine/gsoc-2012-control.git] / windows / keyboard.c
blob3738a41134792db50e74e2d4f41b40c5f75ce16d
1 /*
2 * Keyboard related functions
4 * Copyright 1993 Bob Amstadt
5 */
7 static char Copyright[] = "Copyright Bob Amstadt, 1993";
9 #include "win.h"
11 extern BOOL MouseButtonsStates[3];
13 /**********************************************************************
14 * GetKeyState (USER.106)
16 int GetKeyState(int keycode)
18 switch(keycode) {
19 case VK_LBUTTON:
20 return MouseButtonsStates[0];
21 case VK_MBUTTON:
22 return MouseButtonsStates[1];
23 case VK_RBUTTON:
24 return MouseButtonsStates[2];
25 default:
26 return 0;