Code covered by the BSD License  

Highlights from
Chess with "Greedy Edi"

image thumbnail
from Chess with "Greedy Edi" by Wolfgang Garn
Play chess against "Greedy Edi".

cursorListener

cursorListener

cursorListener Activate the cursor.

Contents

Syntax

cursorListener(hObject, eventdata, handles)

Description

Each figure calls this function, via the Buttond down Callback.

Inputs:

  • hObject ... currently not used
  • eventdata ... currently not used
  • handles ... currently not used
  • global board ... chess board and related information
  • global game ... status of the game

Outputs:

  • WindowButtonUpFcn ... sets the Callback for the mouse button up function
  • WindowButtonMotionFcn ... sets the Callback for the mouse motion function

Example

Set the callback function of the current object to the cursorListener set(gco,'ButtonDownFcn','cursorListener');

See also

setCursor, stopCursor, reset_cursor

Signature

  • Copyright 2006 W.Garn

Contact us at files@mathworks.com