aboutsummaryrefslogtreecommitdiff
path: root/include/06.keyboard/keyboard17.c
blob: 171088f9ebfb899ace226b45021ba5440969a995 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
                default:
                    if(c!=' ')
                    {
                        if(ispressed[lctrl]||ispressed[rctrl])
                        {
                            if(c=='l')
                            {
                                clear();
                                prompt();
                                printf("%s",buffer[buffer_current]);
                                return;
                            }
                        }
                        if(ispressed[lshift]||ispressed[rshift])
                        {
                            c=shift_charcode[keycode];
                        }
                        if(buffer_index<BUFFER_SIZE)
                        {
                            buffer[buffer_current][buffer_index++]=c;
                            printf("%c",c);
                        }
                    }
                    break;
            }