~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

Linux Cross Reference
Tina4/src/PCwin/mousestate.cpp

Version: ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* tv_screen_mousestate.c: Simple description of current mouse event. */
  2 
  3 
  4 #include <stdio.h>
  5 
  6 #include <dibapi.h>
  7 
  8 #ifdef __cplusplus
  9 extern "C" {
 10 #endif  /* __cplusplus */
 11 #include <tina/sys.h>
 12 #include <tina/sysfuncs.h>
 13 #include <tina/math.h>
 14 #include <tina/tv.h>
 15 #include <tina/tv_screen.h>
 16 #ifdef __cplusplus
 17 }
 18 #endif  /* __cplusplus */
 19 
 20 extern void (*screen_text) (char *);
 21 #define Print(x)  if(screen_text!=NULL) screen_text(x)
 22 
 23 
 24 extern "C" void format_mousestate(int state)
 25 {
 26     switch (state)
 27     {
 28         case LEFT_DOWN:
 29         format("LEFT_DOWN\n");
 30         break;
 31     case LEFT_DRAG:
 32         format("LEFT_DRAG\n");
 33         break;
 34     case LEFT_UP:
 35         format("LEFT_UP\n");
 36         break;
 37     case MIDDLE_DOWN:
 38         format("MIDDLE_DOWN\n");
 39         break;
 40     case MIDDLE_DRAG:
 41         format("MIDDLE_DRAG\n");
 42         break;
 43     case MIDDLE_UP:
 44         format("MIDDLE_UP\n");
 45         break;
 46     case RIGHT_DOWN:
 47         format("RIGHT_DOWN\n");
 48         break;
 49     case RIGHT_DRAG:
 50         format("RIGHT_DRAG\n");
 51         break;
 52     case RIGHT_UP:
 53         format("RIGHT_UP\n");
 54         break;
 55     case WAIT_STATE:
 56         format("WAIT_STATE\n");
 57         break;
 58     case BAD_STATE:
 59         format("BAD_STATE\n");
 60         break;
 61     default:
 62         format("STRANGE_STATE\n");
 63         break;
 64     }
 65 }
 66 
 67 /*
 68 extern "C" int mouse_get_state(WINevent * event, Ipos * pos)
 69 {
 70     static int mouse_state = BAD_STATE;
 71 
 72 
 73     Print("mouse_get_state?");
 74     return (mouse_state);
 75 }
 76 */
 77 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

This page was automatically generated by the LXR engine.
Visit the LXR main site for more information.