Files
mop3/libkb/kb.c
kamkow1 02e77b5c90
All checks were successful
Build documentation / build-and-deploy (push) Successful in 2m36s
CE interactive shell
2026-02-21 22:14:16 +01:00

16 lines
275 B
C

#include <kb.h>
#include <m/kb_device.h>
#include <m/status.h>
#include <stdint.h>
#include <system.h>
int kb_read_key (void) {
char ch = 0;
int r = device_do (KB_DEVICE, KB_READ_KEY, &ch, NULL, NULL, NULL);
if (r == ST_OK)
return (int)ch;
else
return r;
}