亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? wexcursr.c

?? vxworks下windml的一些demo程序
?? C
?? 第 1 頁 / 共 2 頁
字號:
/* wexcursr.c - WindML cursor example program *//* Copyright 2000 Wind River Systems, Inc. All Rights Reserved *//*modification history--------------------01n,22feb02,msr  Backward compatability for input API.01m,29jan02,rbp  Addition of support for Native Unix.01l,05nov01,gav  Fixed misnamed devIds01k,05nov01,gav  Change to new registry01j,05nov01,gav  Change to new registry01i,09oct01,msr  Ported to new UGL_Q_EVENT architecture.01h,19dec00,gav  Entry point identical to filename w/o extension.01g,18dec00,msr  Added color allocation for yellow.01f,27nov00,gav  Add pointing device button test.01e,27oct00,rfm  Added stdio usage01d,26oct00,rfm  Modified entry point01c,25oct00,rfm  Changed comments01b,25oct00,jlb  Fixed exit crash, added instructions, WRS coding stds01a,11sep00,gav written*//*************************************************************** DESCRIPTION** WindML Example - Cursor graphics and Mouse input** This example program demonstrates how a cursor is created,* repositioned on the display, and messages processed from the * pointer.   This program also tests the buttons (right, middle,* left) on the cursor.** To start the example:** -> ld < wexcursr_ugl.o* -> wexcursr <mode>** Cursor program is spawned and the cursor can now be moved. The* <mode> parameter identifies how the program is to be executed.* When it is absent or set to 0, then the cursor movement is* handled by received mouse messages.  When set to a positive * number the cursor movement is updated at the rate specified by* the parameter.* * To shut down the cursor test program, the following is * performed:** -> wexcursrStop***************************************************************//** Include the UGL header file to use UGL functions, etc.* The DIB header has defines specific to the use of DIBs.*/#include <ugl/ugl.h>#include <ugl/uglos.h>#include <ugl/ugldib.h>/** Include header file for the input features of WindML.  WindML's input* API provide the access to a pointing device and keyboard if they are * present and supported by a driver.*/#include <ugl/uglinput.h>/** Messages in WindML allow the application to work independently from the* input processing, while still having access to the input messages.*/#include <ugl/uglMsg.h>/** Include the standard I/O for printf's (of the type of pointing* device detected from the driver).*/#include <stdio.h>/* Defines */#define BLACK   		(0)#define BLUE			(1)#define LIGHTGRAY		(2)#define RED                     (3)#define YELLOW                  (4)#define WHITE                   (5)/* Global variables *//* A forward declaration for this program. */UGL_LOCAL int windMLExampleCursor (int mode);/* Control variable to signal when to stop program */UGL_LOCAL volatile UGL_BOOL stopWex;/* input service */UGL_INPUT_SERVICE_ID inputServiceId;/* Some graphics environment information */UGL_LOCAL int displayHeight, displayWidth;/* * The UGL Graphics Context (GC) is an important concept in UGL.* The GC contains data that various UGL functions can use.* If there were no such thing as a GC, most function calls* would require several more parameters to communicate that* information.*/UGL_GC_ID gc;/** The color table is where we define the colors we want* to have available.  The format is an array of* ARGB values paired with their allocated uglColor.  As* of this writing, we don't need to worry about Alpha* ("A") values unless we are using video.*/UGL_LOCAL struct _colorStruct    {    UGL_ARGB rgbColor;    UGL_COLOR uglColor;    }colorTable[] =    {    { UGL_MAKE_RGB(0, 0, 0), 0},       /* black     */    { UGL_MAKE_RGB(0, 0, 168), 0},     /* blue      */    { UGL_MAKE_RGB(168, 168, 168), 0}, /* lightgrey */    { UGL_MAKE_RGB(255, 0, 0), 0},     /* red */    { UGL_MAKE_RGB(255, 255, 84), 0},     /* yellow */    { UGL_MAKE_RGB(255, 255, 255), 0}  /* white */    };/** The cursor DIB is defined to use an 8-bit indexed palette with two* reserved indices for transparency and inversion.  The format is an array* of ARGB values.  Typically, the alpha would not be implemented.** Each indexed color DIB can have its own CLUT.  There is only one CLUT for* the display screen, though.  With a software cursor, the cursor and the* other displayed data must share the same CLUT.  Hardware cursors, though,* may use their own CLUTs or other color mechanisms independent of the frame* buffers CLUT.*/UGL_LOCAL UGL_ARGB cursorClut[] =    {    UGL_MAKE_RGB(0, 0, 0),            /* black     */    UGL_MAKE_RGB(255, 255, 84)        /* yellow    */    };/** The actual image data for the cursor.  This could be set up* as an array of numbers, or the like, but a more graphical* representation can be had using the #defines.*/UGL_LOCAL UGL_UINT8 cursorData[] =    {#define B 0,#define Y 1,#define T 255,#define I 254,    T T T T T T T T T T T T Y Y Y Y Y Y Y Y T T T T T T T T T T T T    T T T T T T T T T Y Y Y Y Y Y Y Y Y Y Y Y Y Y T T T T T T T T T    T T T T T T T Y Y Y Y T T T Y Y I I I I Y Y Y Y Y T T T T T T T    T T T T T T Y Y Y T T T T T Y Y I I I I I I Y Y Y Y T T T T T T    T T T T T Y Y Y T T T T T T Y Y I I I I I I I I I Y Y T T T T T    T T T T Y Y T T T T T T T B Y Y B I I I I I I I I Y Y Y T T T T    T T T Y Y T T T T T T B B B Y Y B B B I I I I I I I I Y Y T T T    T T Y Y Y T T T T T B B B T Y Y I B B B I I I I I I I Y Y Y T T    T T Y Y T T T T T B B T T T Y Y I I I B B I I I I I I I Y Y T T    T Y Y T T T T T B B T T T T Y Y I I I I B B I I I I I I I Y Y T    T Y Y T T T T B B T T T T T Y Y I I I I I B B I I I I I I Y Y T    T Y Y T T T T B B T T T T T Y Y I I I I I B B I I I I I I I Y Y    Y Y T T T T B B T T T T T T Y Y I I I I I I B B I I I I I I Y Y    Y Y T T T T B B T T T T T T Y Y I I I I I I B B I I I I I I Y Y    Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y    Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y    Y Y I I I I B B I I I I I I Y Y T T T T T T B B T T T T T T Y Y    Y Y I I I I B B I I I I I I Y Y T T T T T T B B T T T T T Y Y Y    Y Y Y I I I I B B I I I I I Y Y T T T T T B B T T T T T T Y Y Y    Y Y Y I I I I B B I I I I I Y Y T T T T T B B T T T T T T Y Y Y    T Y Y I I I I I B B I I I I Y Y T T T T B B T T T T T T T Y Y T    T Y Y I I I I I B B B B I I Y Y T T B B B T T T T T T T Y Y Y T    T Y Y Y I I I I I I B B B B Y Y B B B B T T T T T T T T Y Y Y T    T T Y Y I I I I I I I I B B Y Y B B T T T T T T T T T Y Y Y T T    T T Y Y Y I I I I I I I I I Y Y T T T T T T T T T T T Y Y Y T T    T T T Y Y Y I I I I I I I I Y Y T T T T T T T T T T Y Y Y T T T    T T T T Y Y Y I I I I I I I Y Y T T T T T T T T T Y Y Y T T T T    T T T T T Y Y Y I I I I I I Y Y T T T T T T T T Y Y Y T T T T T    T T T T T T Y Y Y Y I I I I Y Y T T T T T T T Y Y Y T T T T T T    T T T T T T T Y Y Y Y Y I I Y Y Y T T T Y Y Y Y Y T T T T T T T    T T T T T T T T T Y Y Y Y Y Y Y Y Y Y Y Y Y Y T T T T T T T T T    T T T T T T T T T T T T Y Y Y Y Y Y Y Y T T T T T T T T T T T T#undef B#undef Y#undef T#undef I    };/**************************************************************************** wexcursr - start of program** This routine starts the cursor test.** RETURNS: ** ERRNO: N/A** SEE ALSO:  **/#if defined(WINDML_NATIVE) && defined(__unix__)int main (int argc, char *argv [])    {    windMLExampleCursor(0);    return (0);    }#elif defined(WINDML_NATIVE) && defined(_WIN32)int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,                   LPSTR lpCmdLine, int nShowCmd)    {    uglWin32Parameters(hInstance, hPrevInstance, lpCmdLine, nShowCmd);    windMLExampleCursor(0);    return (0);    }#elsevoid wexcursr     (    int mode                  /* 0 when move based on message, otherwise                                 time delay between moves */    )    {    stopWex = 0;    printf("To stop wexcursr, type 'wexcursrStop'\n");    uglOSTaskCreate("tWindMLCurs", (UGL_FPTR)windMLExampleCursor, 110, 		    0, 10240, mode,0,0,0,0);    }#endif/**************************************************************************** wexcursrStop - stop of program** This routine causes the program to terminate.** RETURNS: ** ERRNO: N/A** SEE ALSO:  **/void wexcursrStop (void)    {    stopWex = 1;    }/**************************************************************************** wexPause - move the cursor and check for input** Wait for the signal to stop.  ** Now that we are accepting input from the pointing device, we can use the* buttons (if the pointing device has them) to signal an stop.  Otherwise,* the cursorStop function will work.** RETURNS: ** ERRNO: N/A** SEE ALSO:  **/UGL_LOCAL void wexPause    (    UGL_DEVICE_ID devId,            /* device specifier */    int mode                        /* mode = 0 wait for input, otherwise                                       move based on delay */    )    {    if (mode != 0)        {         /* Set up some coordinates to keep track of the cursor position. */        UGL_POS x = displayWidth / 2,y = displayHeight / 2, a =1,b=1;        /* Continue until we get a signal to stop from cursorStop. */            while (!stopWex)            {            uglCursorMove(devId, x, y);            /* Calculate a new position to which to move the cursor. */            x += a;            y += b;            /*             * Keep the cursor where we can see it.  The 16 offest is             * to account for the width and height from the hot spot.             */                    if ((x < 16) || (x > displayWidth - 16))                a *= -1;            if ((y < 16) || (y > displayHeight - 16))                b *= -1;                    /* Delay to slow the cursor movement. */                    uglOSTaskDelay (mode);            }        }     else        {        /* Someplace to hold a WindML message when we get it. */        UGL_MSG msg;        /*

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美精品一区二区久久久| 欧美性感一类影片在线播放| 欧美成人一区二区三区片免费 | 欧美疯狂做受xxxx富婆| 午夜欧美电影在线观看| 欧美一区二区在线播放| 激情综合五月婷婷| 国产精品国产三级国产有无不卡| 91免费在线看| 亚洲香肠在线观看| 日韩限制级电影在线观看| 国产高清在线观看免费不卡| 亚洲欧洲av另类| 欧美日韩极品在线观看一区| 精品制服美女久久| 国产精品久久久久影院亚瑟| 欧洲一区二区av| 免费观看成人av| 国产精品午夜春色av| 欧洲精品一区二区| 精品影视av免费| 国产精品毛片无遮挡高清| 欧美日韩精品福利| 国产大陆a不卡| 亚洲综合区在线| 精品国产乱码久久久久久免费 | 一区二区三区高清| 欧美xxxx老人做受| 91麻豆国产香蕉久久精品| 日韩 欧美一区二区三区| 国产精品无人区| 欧美日韩国产免费| 成人高清免费观看| 日韩黄色免费网站| 国产精品国产馆在线真实露脸| 在线播放日韩导航| 丁香激情综合五月| 麻豆精品视频在线| 一区二区三区欧美视频| 国产日韩精品一区二区三区在线| 欧美色爱综合网| 国产精品88av| 奇米一区二区三区| 亚洲激情在线播放| 久久精品这里都是精品| 欧美久久久久久久久中文字幕| 成人av资源在线观看| 日本麻豆一区二区三区视频| 1024亚洲合集| 国产日韩欧美a| 精品国产乱子伦一区| 欧美色图在线观看| 91美女视频网站| 国产成人精品免费网站| 蜜臀精品久久久久久蜜臀| 亚洲影院在线观看| 国产精品福利影院| 久久久www成人免费无遮挡大片| 欧美电影在哪看比较好| 欧洲精品视频在线观看| av不卡一区二区三区| 国产精品一卡二卡在线观看| 久久福利视频一区二区| 午夜在线成人av| 亚洲国产视频一区二区| 一区二区三区不卡视频在线观看| 国产精品高潮呻吟久久| 欧美—级在线免费片| 久久久久久亚洲综合| 精品福利一二区| 日韩欧美二区三区| 日韩小视频在线观看专区| 欧美一卡二卡在线| 欧美精品三级日韩久久| 欧美日本在线播放| 欧美裸体bbwbbwbbw| 欧美日韩国产精品成人| 欧美高清视频不卡网| 欧美剧情片在线观看| 欧美精品日韩精品| 日韩欧美中文字幕公布| 欧美一级黄色片| 日韩美女一区二区三区| 2020国产精品自拍| 久久久99免费| 国产精品网站在线观看| 亚洲日本电影在线| 亚洲v日本v欧美v久久精品| 五月天国产精品| 玖玖九九国产精品| 国内精品伊人久久久久影院对白| 国产经典欧美精品| av在线不卡电影| 在线免费精品视频| 欧美一级在线观看| 久久综合色婷婷| 欧美激情艳妇裸体舞| 亚洲欧美成人一区二区三区| 亚洲国产精品久久久久秋霞影院| 日韩精品欧美精品| 国产美女娇喘av呻吟久久| 成人免费看片app下载| 色噜噜狠狠色综合中国| 91精品国产手机| 国产三级精品视频| 亚洲在线成人精品| 国产在线精品不卡| 91蝌蚪porny九色| 4hu四虎永久在线影院成人| 久久久精品综合| 一区二区三区欧美在线观看| 免费成人在线观看| 99精品久久久久久| 日韩欧美一级精品久久| 中文字幕制服丝袜一区二区三区| 亚洲国产成人av| 国产精品18久久久| 欧美人伦禁忌dvd放荡欲情| 国产日韩欧美一区二区三区综合| 一区二区三区四区蜜桃| 韩国女主播成人在线观看| 99久久综合精品| 日韩一区二区三区电影在线观看 | 中国色在线观看另类| 一区二区在线电影| 国产在线视频一区二区| 91激情五月电影| 久久久一区二区三区| 亚洲国产成人高清精品| 成人免费视频一区二区| 制服.丝袜.亚洲.另类.中文| 国产精品久久久久影院老司| 免费高清在线视频一区·| 99精品热视频| 亚洲精品一区在线观看| 亚洲一区二区三区小说| 波多野结衣在线aⅴ中文字幕不卡| 日韩欧美一卡二卡| 亚洲va欧美va人人爽午夜| 成人免费观看视频| 日韩精品中文字幕一区二区三区| 最新国产の精品合集bt伙计| 久久se精品一区二区| 欧美日韩免费观看一区二区三区| 国产精品久久久久桃色tv| 久久不见久久见免费视频7| 欧美视频日韩视频| 亚洲精品中文在线观看| 国产高清视频一区| 久久免费美女视频| 免费观看一级特黄欧美大片| 欧美自拍偷拍一区| 中文字幕中文在线不卡住| 国产99精品国产| 久久夜色精品国产欧美乱极品| 日韩精品久久理论片| 欧美性色欧美a在线播放| 中文字幕欧美一| www.性欧美| 国产精品国产三级国产普通话三级| 国产主播一区二区| 26uuu国产在线精品一区二区| 日韩成人精品在线观看| 欧美日韩aaaaaa| 日本成人在线不卡视频| 欧美一级爆毛片| 久久精品国产999大香线蕉| 欧美一级二级三级蜜桃| 久久av中文字幕片| 2021国产精品久久精品| 国产乱子伦一区二区三区国色天香| 日韩精品一区二区三区蜜臀| 麻豆成人在线观看| 久久综合色一综合色88| 国产精品伊人色| 国产精品美女久久久久久久网站| hitomi一区二区三区精品| 中文在线免费一区三区高中清不卡| 丁香婷婷综合激情五月色| 欧美国产综合色视频| 97精品国产露脸对白| 一区二区三区蜜桃| 欧美一区二区三区啪啪| 久久er精品视频| 国产欧美日韩在线看| 99久久综合99久久综合网站| 亚洲主播在线观看| 日韩一级大片在线观看| 国产中文字幕精品| 中文字幕一区二区三区视频| 在线观看日韩国产| 蜜臀av亚洲一区中文字幕| 久久伊人蜜桃av一区二区| 风间由美一区二区av101| 亚洲欧美日韩系列| 91精品国产综合久久福利软件| 激情五月婷婷综合网| 中文字幕乱码久久午夜不卡| 在线精品视频免费播放| 麻豆国产91在线播放|