Linux ÐéÄâÊó±ê£¬¼üÅÌ Ö®Ò»¡£
Linux ÓÐ×Ô¼ºµÄ input ×Óϵͳ£¬¿ÉÒÔͳһ¹ÜÀíÊó±êºÍ¼üÅÌʼþ¡£
»ùÓÚÊäÈë×Óϵͳ ʵÏÖµÄ uinput ¿ÉÒÔ·½±ãµÄÔÚÓû§¿Õ¼äÄ£ÄâÊó±êºÍ¼üÅÌʼþ¡£
µ±È»£¬Ò²¿ÉÒÔ×Ô¼ºÔìÂÖ×Ó£¬ ×öÒ»¸ö×Ö·ûÉ豸½ÓÊÕÓû§ÊäÈ룬¸ù¾ÝÊäÈ룬ͶµÝ input ʼþ¡£
»¹ÓÐÒ»ÖÖ·½Ê½¾ÍÊÇÖ±½Ó Íù evnent ÀïдÈëÊý¾Ý£¬ ¶¼¿ÉÒÔ´ïµ½¿ØÖÆÊó±ê¼üÅ̵ŦÄÜ¡£
±¾ÆªÎÄÕ¾ÍÊÇÑÝʾֱ½ÓдÈë event µÄ·½·¨¡£
linux/input.hÖÐÓж¨Ò壬Õâ¸öÎļþ»¹¶¨ÒåÁ˱ê×¼°´¼üµÄ±àÂëµÈ
struct input_event {
struct timeval time; //°´¼üʱ¼ä
__u16 type; //ÀàÐÍ£¬ÔÚÏÂÃæÓж¨Òå
__u16 code; //ҪģÄâ³Éʲô°´¼ü
__s32 value;//ÊÇ°´Ï»¹ÊÇÊÍ·Å
};
code£º
ʼþµÄ´úÂë.Èç¹ûʼþµÄÀàÐÍ´úÂëÊÇEV_KEY,¸Ã´úÂëcodeΪÉ豸¼üÅÌ´úÂë.´úÂëÖ²0~127Ϊ¼üÅÌÉϵİ´¼ü´úÂë, 0x110~0x116 ΪÊó±êÉÏ°´¼ü´úÂë,ÆäÖÐ0x110(BTN_ LEFT)ΪÊó±ê×ó¼ü,0x111(BTN_RIGHT)ΪÊó±êÓÒ¼ü,0x112(BTN_ MIDDLE)ΪÊó±êÖмü.ÆäËü´úÂ뺬ÒåÇë²Î¿´include/linux /input.hÎļþ. Èç¹ûʼþµÄÀàÐÍ´úÂëÊÇEV_REL,codeÖµ±íʾ¹ì¼£µÄÀàÐÍ.ÈçָʾÊó±êµÄXÖá·½Ïò REL_X (´úÂëΪ0x00),ָʾÊó±êµÄYÖá·½ÏòREL_Y(´úÂëΪ0x01),ָʾÊó±êÖÐÂÖ×Ó·½ÏòREL_WHEEL(´úÂëΪ0x08).
type:
EV_KEY,¼üÅÌ
EV_REL,Ïà¶Ô×ø±ê
EV_ABS,¾ø¶Ô×ø±ê
value£º
ʼþµÄÖµ.Èç¹ûʼþµÄÀàÐÍ´úÂëÊÇEV_KEY,µ±°´¼ü°´ÏÂʱֵΪ1,ËÉ¿ªÊ±ÖµÎª0;Èç¹ûʼþµÄÀàÐÍ´úÂëÊÇEV_ REL,valueµÄÕýÊýÖµºÍ¸ºÊýÖµ·Ö±ð´ú±íÁ½¸ö²»Í¬·½ÏòµÄÖµ.
/*
* Event types
*/
#define EV_SYN 0x00
#define EV_KEY 0x01 //°´¼ü
#define EV_REL 0x02 //Ïà¶Ô×ø±ê(¹ì¼£Çò)
#define EV_ABS 0x03 //¾ø¶Ô×ø±ê
#define EV_MSC 0x04 //ÆäËû
#define EV_SW 0x05
#define EV_LED 0x11 //LED
#define EV_SND &
Ïà¹ØÎĵµ£º
1.1 LinuxµÄÆðÔ´ºÍ·¢Õ¹
LinuxÆðÔ´ºÍ·¢Õ¹ÊÇÒ»¶ÎÁîÈË×ÅÃÔµÄÀúÊ·¡£ÕâÀïÃæ°üº¬×ÅÌ«¶àµß¸²“³£À픵ÄʼþºÍ˼Ï룬´Ù³ÉLinux³É³¤×³´óµÄ“ÉñÆæ”Á¦Á¿×ÜÊDZ»È˽ò½òÀÖµÀ£¬LinuxËù´´ÔìµÄ´«ÆæÓÐʱºòÈóõ´Î½Ó´¥ËüµÄÈ˸е½²»¿É˼Òé¡£
1.1.1 LinuxµÄÆðÔ´
1991Ä꣬һ¸öÃû²»¼û¾´«µÄ·ÒÀ¼Ñо¿Éú¹ºÂòÁË×Ô¼ ......
1.3 LinuxµÄ·¢Ðа汾
Ñϸñ˵À´£¬LinuxÕâ¸ö´Ê²¢²»ÄÜÖ¸´ú±¾ÊéËùÒª½éÉܵÄÕâ¸ö£¨»òÕß˵¼¸¸ö£©²Ù×÷ϵͳ¡£Linuxʵ¼ÊÉÏÖ»¶¨ÒåÁËÒ»¸ö²Ù×÷ϵͳÄںˣ¬Õâ¸öÄÚºËÓÉkernel.org¸ºÔðά»¤¡£²»Í¬µÄÆóÒµºÍ×éÖ¯ÔÚ´Ë»ù´¡ÉÏ¿ª·¢ÁËһϵÁи¨ÖúÈí¼þ£¬´ò°ü·¢²¼×Ô¼ºµÄ“·¢Ðа汾”¡£¸÷ÖÖ·¢Ðа汾¿ÉÒÔ“·Ç³£²»Í¬”£¬È´Êǽ¨Á ......
ÈüÃÅÌú¿ËÍƳöаæBackupExec System Recovery 2010(BERS 2010)£¬Ö§³ÖLinuxϵͳÊý¾Ý±¸·Ý»¹Ô¹¦ÄÜ£¬²¢ÌṩÃâ·ÑBERS Management Solution 2010¹ÜÀí¹¤¾ß¡£¡¡¡¡
аæBERS 2010¿ÉÖ§³Ö΢ÈíExchange¡¢SharePoint¡¢Active
Directory¡¢Windows Server¡¢SQL
ServerÓëVMwareESXÐéÄâ»úÌṩ×Ô¶¯»¯Åų̵ÄÊý¾Ý±¸·Ý¡¢»¹Ô¹¦ÄÜ¡£³ý¸üÐÂ΢Èí ......
µÚ3Õ Linux»ù±¾ÅäÖÃ
°²×°Íê²Ù×÷ϵͳºó£¬³£³£ÐèÒª×öһЩ»ù±¾ÅäÖã¬ÒÔÂú×ã×Ô¼ºµÄÐèÇó¡£Ëæ×ÅLinux×ÀÃæµÄÈÕÇ÷³ÉÊìºÍÈËÐÔ»¯£¬ÕâÖÖËùνµÄ“»ù±¾ÅäÖÔÒѾԽÀ´Ô½ÉÙÁË¡£±¾ÕÂÑ¡ÔñÁËÈëÃÅÓû§×î³£Îʵ½µÄһЩÎÊÌ⣬ÒÔ±ã¶ÁÕßÄܹ»¾¡¿ìÉÏÊÖ¡£ ......
1.ÊÖÍ·ÓÐÒ»±¾ºÃµÄÈëÃŽ̲Ä
ÂòÄÇЩһ¿ªÊ¼¾Í´Óϵͳ»ù±¾»ú¹¹»ù±¾ÃüÁʼ½²½âµÄÊé¼®£¬Ò»¿ªÊ¼ÄãҪѡ¶¨Ò»±¾ÈëÃŽ̲Ä,µ«ÊDz»ÄÜÖ»¿´Ò»±¾,ÒòΪÓÐЩÊéÉϽ²µÄ,¿ÉÄÜÊÇÁíÍâµÄÊéÉÏûÓеÄ.Òò´Ë,ÖصãÑ¡Ò»±¾½Ì²Ä¿´Íê.È»ºóÔÙ¿´Á½Èý±¾ÈëÃŽ̲Ää¯ÀÀÒ»ÏÂ.×÷Ϊ¶ÔµÚÒ»±¾ÊéµÄ֪ʶµÄÀ©³äºÍ¹®¹Ì¡£
2.¿´Íêϵͳ×Ô´øµÄÎĵµ
¾ø´ ......