⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 inputtyp.h

📁 eC++编译器源码
💻 H
字号:
/* RGM3-91 Added chord to Mouse and x, y, timestamp to Keyboard */
#pragma InputType

typedef struct {
    boolean event;       /* TRUE indicates an event has occurred,
                          FALSE otherwise. */
    unsigned int button; /* Which button was pressed.  Zero means no button. */
    int x, y ;           /* Window or screen position of the mouse. */
    long timeStamp;      /* Indication of the time of the mouse event. */
                         /* The time stamp is guaranteed to be in ascending
                            order for events that come after another in time.
                            A timeStamp of zero will be indicated if the mouse
                            goes from global to local scope while the mouse
                            is outside the window. */
    unsigned int chord;  /* For drag and position events, the buttons which
                          are currently pressed are stored in the set.
                          In the set, {1} indicates button 1, {2} indicates
                          button 2, and so on. */
  } Mouse;

typedef struct {
    unsigned int event;   /* 0 - No event occurred.  */
                         /* 1 - ascii event         */
    char key;          /* The character value of the keypress. */
    /* keys F1-F12 are encoded as 0B0H - 0BBH
            PageUp(C0) PageDown(C1) End(C2) Home(C3) Left(C4) Up(C5) Right(C6)
            Down(C7) Insert(C8) Delete(C9)
    int x, y;         /* Window or screen position of the mouse. */
    long timeStamp;  /* Indication of the time of the key event. */
  } Keyboard;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -