- // just to get sure we are still in this loop
- //wtf? _CPU_ISR_Enable() // don't know why this is needed...
- udelay(100000);
- printf("x");
+ memset(str, '\0', 8);
+ j=0;
+ k = usb_hidkb_getChars();
+ for(i=0; k->keys[i]>0; i++) {
+ if(x>650) {
+ x = 20;
+ y += 15;
+ }
+ if(y>440) {
+ y=20;
+ }
+ if((k->keys[i] >= 4) && k->keys[i] <= 4+'z'-'a') {
+ str[j] = k->keys[i] - 4 + (k->mod & MOD_lshift || k->mod & MOD_rshift ? 'A' : 'a');
+ } else if ((k->keys[i] >= 0x1e) && (k->keys[i] <= 0x26)) {
+ str[j] = k->keys[i] - 0x1e + '1';
+ } else if (k->keys[i] == 0x27) {
+ str[j] = '0';
+ }
+ else if (k->keys[i] == 0x28) {
+ y += 15;
+ x = 20;
+ }
+ j++;
+ }
+ if(j > 0) {
+ print_str_noscroll(x, y, str);
+ printf("y: %d\n", y);
+ }
+ while(j--) {
+ x += 13;
+ }