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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? wexcursr.c

?? vxworks下windml的一些demo程序
?? C
?? 第 1 頁 / 共 2 頁
字號(hào):
/* 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;        /*

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美一区二区三区视频免费播放 | 丝袜美腿亚洲一区二区图片| 精品福利一二区| 欧美一级夜夜爽| 亚洲精品一区二区三区福利| 久久久久高清精品| 国产精品视频yy9299一区| 综合亚洲深深色噜噜狠狠网站| 亚洲欧洲三级电影| 亚洲一区二区在线观看视频| 午夜电影一区二区| 狠狠狠色丁香婷婷综合久久五月| 国产美女在线观看一区| 成人激情校园春色| 欧美视频日韩视频| 在线观看91精品国产麻豆| 精品国产乱码久久久久久牛牛| 久久人人爽爽爽人久久久| 国产精品欧美一区二区三区| 亚洲综合视频在线| 免费在线看一区| 成人网页在线观看| av亚洲精华国产精华| 欧美二区三区的天堂| 91精品国产欧美日韩| 国产喷白浆一区二区三区| 亚洲色图另类专区| 奇米在线7777在线精品| 国产91丝袜在线观看| 91成人免费电影| 欧美精品tushy高清| 国产欧美日韩综合精品一区二区| 一区二区三区中文字幕精品精品| 无吗不卡中文字幕| 国产成人亚洲综合a∨婷婷| 91激情五月电影| 精品国产不卡一区二区三区| 18欧美亚洲精品| 麻豆国产91在线播放| 波多野结衣的一区二区三区| 欧美一级专区免费大片| 国产精品乱子久久久久| 亚洲精品视频免费看| 久久精品国产精品亚洲红杏| 色系网站成人免费| 26uuu精品一区二区| 一区二区三区不卡在线观看| 国内不卡的二区三区中文字幕| 97aⅴ精品视频一二三区| 日韩欧美一区二区久久婷婷| 亚洲视频一区二区免费在线观看| 老汉av免费一区二区三区| 91丨porny丨蝌蚪视频| 久久久一区二区| 天堂精品中文字幕在线| 成人高清视频免费观看| 欧美成人在线直播| 亚洲精品免费一二三区| 国产一区二三区好的| 91精品久久久久久久91蜜桃| 欧美国产国产综合| 精品在线免费视频| 制服.丝袜.亚洲.中文.综合| 亚洲美女视频在线| 成人精品亚洲人成在线| 精品日产卡一卡二卡麻豆| 亚洲国产美国国产综合一区二区| 久久99久久久欧美国产| 欧美日韩国产一级| 亚洲摸摸操操av| 国产**成人网毛片九色| 7777精品伊人久久久大香线蕉最新版| 久久精品人人做人人爽97| 青椒成人免费视频| 欧美二区在线观看| 亚洲国产aⅴ成人精品无吗| 国产专区综合网| 精品国产免费人成电影在线观看四季| 日韩和欧美一区二区三区| 色综合av在线| 亚洲视频 欧洲视频| proumb性欧美在线观看| 国产欧美一区二区精品婷婷 | 成人做爰69片免费看网站| 欧美精品一区二区在线观看| 日本在线不卡视频| 欧美久久久久久久久中文字幕| 亚洲在线成人精品| 色婷婷亚洲精品| 亚洲精品ww久久久久久p站| av在线不卡电影| 亚洲欧美综合网| 欧美日韩亚洲综合在线 欧美亚洲特黄一级| 欧美一区二区三区四区久久| 日本 国产 欧美色综合| 日韩视频一区二区在线观看| 国产美女精品一区二区三区| 国产精品欧美综合在线| 91蜜桃网址入口| 亚洲国产毛片aaaaa无费看| 日韩亚洲欧美中文三级| 国产成人自拍高清视频在线免费播放| 国产欧美日产一区| 色琪琪一区二区三区亚洲区| 三级一区在线视频先锋| 久久久久久久久久久99999| a4yy欧美一区二区三区| 午夜视频一区在线观看| 欧美成人video| a美女胸又www黄视频久久| 亚洲午夜精品网| 久久中文娱乐网| 色噜噜狠狠成人网p站| 裸体歌舞表演一区二区| 国产精品人妖ts系列视频| 欧美日韩免费在线视频| 国内不卡的二区三区中文字幕| 1024成人网色www| 日韩视频中午一区| 91蜜桃婷婷狠狠久久综合9色| 美女脱光内衣内裤视频久久影院| 亚洲国产成人一区二区三区| 欧美午夜在线观看| 国产精品综合一区二区三区| 亚洲精品写真福利| 久久影院午夜论| 在线观看www91| 国产剧情在线观看一区二区| 亚洲精选视频免费看| 2023国产精品视频| 欧美日精品一区视频| 国产乱对白刺激视频不卡| 午夜视频在线观看一区二区三区| 日本一区免费视频| 欧美一区二区视频在线观看2022| 成人av手机在线观看| 麻豆freexxxx性91精品| 夜夜亚洲天天久久| 精品国产乱码久久| 欧美视频第二页| 成人动漫视频在线| 美女视频黄免费的久久| 亚洲成人一区在线| 国产精品嫩草影院com| 91精品国产欧美一区二区18| 色欧美片视频在线观看| 国产精品亚洲成人| 日本三级韩国三级欧美三级| 亚洲精品国产第一综合99久久 | 国产一区二区三区在线观看免费| 亚洲综合一区二区三区| 中文字幕一区二区三| 久久久三级国产网站| 91麻豆精品国产| 欧美日韩在线播放三区四区| 成人黄色大片在线观看| 国产高清不卡二三区| 九色|91porny| 开心九九激情九九欧美日韩精美视频电影 | 天天色天天爱天天射综合| 亚洲视频一区二区在线| 国产精品久久久一区麻豆最新章节| 精品久久久网站| 欧美一区二区三区公司| 欧美日韩久久久久久| 91激情五月电影| 在线视频欧美区| 99久精品国产| 99精品视频在线播放观看| 风间由美一区二区av101| 国产馆精品极品| 国产成人精品一区二区三区网站观看 | 91麻豆免费看片| 99久久免费国产| av男人天堂一区| 成人激情校园春色| 99视频在线精品| 97久久精品人人澡人人爽| 不卡高清视频专区| a亚洲天堂av| 日本韩国欧美三级| 在线观看日韩电影| 欧美日韩免费一区二区三区| 精品视频123区在线观看| 欧美三级蜜桃2在线观看| 欧美乱妇23p| 欧美一区欧美二区| 日韩精品一区二区三区在线观看 | 国产美女视频91| 一区二区三区四区在线| 色综合久久久久综合体桃花网| 国产精品成人在线观看| 99精品国产一区二区三区不卡| 中文文精品字幕一区二区| 色综合久久综合网| 97久久精品人人做人人爽50路| 美国十次综合导航| 91猫先生在线| 国产欧美日韩久久| 婷婷成人激情在线网|