From 7ceadd79db71cee6b2ae7f89f992e896fd11c02c Mon Sep 17 00:00:00 2001 From: Dave Chapman Date: Fri, 3 Mar 2006 15:01:37 +0000 Subject: Patch #4736 for Chessbox from Miguel A. Arévalo - Added support for user interaction while thinking, you can force move now with PLAY and quit with OFF (iRiver example). Yield only on Search as any Evaluate will be preceded by a Search. Plus some minor code policing from me to remove tabs in both the patch and the original code MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8896 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/chessbox/gnuchess.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'apps/plugins/chessbox/gnuchess.h') diff --git a/apps/plugins/chessbox/gnuchess.h b/apps/plugins/chessbox/gnuchess.h index 68ef9f9a81..e94748919a 100644 --- a/apps/plugins/chessbox/gnuchess.h +++ b/apps/plugins/chessbox/gnuchess.h @@ -26,6 +26,7 @@ extern short board[64]; extern short color[64]; extern long Level; extern short TCflag,TCmoves,TCminutes; +extern short timeout; /* ---- RockBox integration ---- */ extern struct plugin_api* rb; @@ -33,8 +34,7 @@ extern struct plugin_api* rb; /* ---- The beginning of a GNUChess v2 APIfication ---- */ void SetTimeControl(void); void GNUChess_Initialize(void); -int VerifyMove(char s[],short iop,unsigned short *mv); -int SelectMove ( short side, short iop); - +int VerifyMove(char s[],short iop,unsigned short *mv); +int SelectMove ( short side, short iop , void (*callback)(void) ); #endif -- cgit v1.2.3