}\\r
return 0;\\r
\r
-#define JAWS_KB_NAVIGATION \\r
+#define JAWS_KBDOWN_NAVIGATION \\r
\\r
- case WM_KEYDOWN:\\r
\\r
if(GetKeyState(VK_MENU) < 0 && GetKeyState(VK_CONTROL) < 0) {\\r
/* Control + Alt + letter used for speaking piece positions */\\r
KeyboardMove(hwnd, message, wParam, lParam);\\r
break;\\r
}\\r
- break;\\r
- case WM_KEYUP:\\r
+\r
+#define JAWS_KBUP_NAVIGATION \\r
switch (wParam) {\\r
case VK_SPACE:\\r
KeyboardMove(hwnd, message, wParam, lParam);\\r
break;\\r
}\\r
- break;\\r
\r
#define JAWS_MENU_ITEMS \\r
case IDM_PossibleAttackMove: /*What can I possible attack from here */\\r
#define JAWS_INIT\r
#define JAWS_ARGS\r
#define JAWS_ALT_INTERCEPT\r
-#define JAWS_KB_NAVIGATION\r
+#define JAWS_KBUP_NAVIGATION\r
+#define JAWS_KBDOWN_NAVIGATION\r
#define JAWS_MENU_ITEMS\r
#define JAWS_SILENCE\r
#define JAWS_REPLAY\r
char fileTitle[MSG_SIZ];\r
char buf[MSG_SIZ];\r
static SnapData sd;\r
+ static int peek=0;\r
\r
switch (message) {\r
\r
MouseEvent(hwnd, message, wParam, lParam);\r
break;\r
\r
- JAWS_KB_NAVIGATION\r
+ case WM_KEYUP:\r
+ if((char)wParam == '\b') {\r
+ ForwardEvent(); peek = 0;\r
+ }\r
+\r
+ JAWS_KBUP_NAVIGATION\r
+\r
+ break;\r
+\r
+ case WM_KEYDOWN:\r
+ if((char)wParam == '\b') {\r
+ if(!peek) BackwardEvent(), peek = 1;\r
+ }\r
+\r
+ JAWS_KBDOWN_NAVIGATION\r
+\r
+ break;\r
\r
case WM_CHAR:\r
\r