I will check the doc to see if I can write that kind of code.
#define KMETER 0x00040000 #define KSET 0x00002000 void kbd_fetch_data(long *dst){ static int ktimer=0; static int keymask=0xFFFFFFFF; _GetKbdState(dst); _kbd_read_keys_r2(dst); if ((*dst & KMETER)==0) { if (ktimer<0) ktimer=0; ktimer++ ; if (ktimer>100) *dst = (*dst | KMETER) & ~KSET; else *dst = *dst | KMETER; } else { if (ktimer>0) { if ( ktimer > 100 ) keymask = KSET ; else keymask = KMETER ; ktimer = -6; } if (ktimer<0) { *dst = *dst & ~keymask ; ktimer++ ; } }}
Started by Wilson « 1 2 » Feature Requests
Started by smirnov992 Hello, I'm a NEWBIE - HELP!! (Newbies assistance, User Guides and thank you notes)
Started by CNW Script Writing
Started by reyalp General Discussion and Assistance
Started by lapser General Discussion and Assistance