from
Chess with "Greedy Edi"
by Wolfgang Garn
Play chess against "Greedy Edi".
|
| cursorListener |
cursorListener
cursorListener Activate the cursor.
Contents
SyntaxcursorListener(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
|
|
Contact us at files@mathworks.com