aboutsummaryrefslogtreecommitdiff
path: root/include/06.keyboard
diff options
context:
space:
mode:
authorAleksa Vučković <aleksav013@gmail.com>2022-05-28 23:54:02 +0200
committerAleksa Vučković <aleksav013@gmail.com>2022-05-28 23:55:03 +0200
commite9424374b0f33c53d41ec4f5bbe13c9c9b1319f5 (patch)
tree8e92a6f98ee02a03b48ab61881cb9bc5a4a2f45d /include/06.keyboard
parent1abaec702595623d6d00f33d6e78494ccec1db86 (diff)
glavna funkcija
Diffstat (limited to 'include/06.keyboard')
-rw-r--r--include/06.keyboard/keyboard.c1
-rw-r--r--include/06.keyboard/keyboard17.c8
-rw-r--r--include/06.keyboard/keyboard18.c15
-rw-r--r--include/06.keyboard/keyboard19.c7
4 files changed, 16 insertions, 15 deletions
diff --git a/include/06.keyboard/keyboard.c b/include/06.keyboard/keyboard.c
index ab31315..5242bb0 100644
--- a/include/06.keyboard/keyboard.c
+++ b/include/06.keyboard/keyboard.c
@@ -150,6 +150,7 @@ void keyboard_handler()
{
c=shift_charcode[keycode];
}
+
if(buffer_index<BUFFER_SIZE)
{
buffer[buffer_current][buffer_index++]=c;
diff --git a/include/06.keyboard/keyboard17.c b/include/06.keyboard/keyboard17.c
index 171088f..e82af45 100644
--- a/include/06.keyboard/keyboard17.c
+++ b/include/06.keyboard/keyboard17.c
@@ -15,11 +15,3 @@
{
c=shift_charcode[keycode];
}
- if(buffer_index<BUFFER_SIZE)
- {
- buffer[buffer_current][buffer_index++]=c;
- printf("%c",c);
- }
- }
- break;
- }
diff --git a/include/06.keyboard/keyboard18.c b/include/06.keyboard/keyboard18.c
index d594130..367841a 100644
--- a/include/06.keyboard/keyboard18.c
+++ b/include/06.keyboard/keyboard18.c
@@ -1,7 +1,8 @@
- }
- else
- {
- ispressed[keycode-0x80]=0;
- }
- }
-}
+ if(buffer_index<BUFFER_SIZE)
+ {
+ buffer[buffer_current][buffer_index++]=c;
+ printf("%c",c);
+ }
+ }
+ break;
+ }
diff --git a/include/06.keyboard/keyboard19.c b/include/06.keyboard/keyboard19.c
new file mode 100644
index 0000000..d594130
--- /dev/null
+++ b/include/06.keyboard/keyboard19.c
@@ -0,0 +1,7 @@
+ }
+ else
+ {
+ ispressed[keycode-0x80]=0;
+ }
+ }
+}