From 03035c98b4ba3297b837e96080e78e0aac1e86db Mon Sep 17 00:00:00 2001 From: Aleksa Vučković Date: Mon, 31 Jan 2022 11:16:38 +0100 Subject: Promene --- include/06.keyboard/keyboard17.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 include/06.keyboard/keyboard17.c (limited to 'include/06.keyboard/keyboard17.c') diff --git a/include/06.keyboard/keyboard17.c b/include/06.keyboard/keyboard17.c new file mode 100644 index 0000000..359ba30 --- /dev/null +++ b/include/06.keyboard/keyboard17.c @@ -0,0 +1,22 @@ + 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]; + } + buffer[buffer_current][buffer_index++]=c; + printf("%c",c); + } + break; + } -- cgit v1.2.3