summaryrefslogtreecommitdiff
path: root/fbgl.h
diff options
context:
space:
mode:
authorLevent Kaya <levent.kaya@codefirst.io>2024-11-27 10:54:00 +0300
committerLevent Kaya <levent.kaya@codefirst.io>2024-11-27 10:54:00 +0300
commitdd6b09d59074c13ebe60c06f658f4f8c2b5a8a0e (patch)
tree85ebd7d8cac9cdbed449237c322a5cd9ea28ab8c /fbgl.h
parentaf77eae9c95c98f39395513f8d3d5a7e02583f74 (diff)
[refactor] keyboard related code deleted
Diffstat (limited to 'fbgl.h')
-rw-r--r--fbgl.h28
1 files changed, 0 insertions, 28 deletions
diff --git a/fbgl.h b/fbgl.h
index 34fe44c..f8939f1 100644
--- a/fbgl.h
+++ b/fbgl.h
@@ -91,40 +91,12 @@ typedef struct fbgl_psf1_font {
uint16_t char_width; // Character width in pixels (always 8 for PSF1)
} fbgl_psf1_font_t;
-typedef struct fbgl_keyboard {
- bool keys[FBGL_MAX_KEYS]; // Current state of each key
- bool prev_keys[FBGL_MAX_KEYS]; // Previous state of each key
- bool is_initialized; // Track if keyboard is initialized
-} fbgl_keyboard_t;
-
/**
* Key state function and variables
*
*/
-static struct termios orig_termios;
-static fbgl_keyboard_t keyboard = { 0 };
static struct timespec previous_frame_time = { 0 };
-#ifdef FBGL_HIDE_CURSOR
-#include <linux/kd.h>
-int fbgl_hide_cursor(int fd)
-{
- int tty_fd = open("/dev/tty0", O_RDWR);
- if (tty_fd == -1) {
- perror("Error opening /dev/tty0");
- return -1;
- }
-
- if (ioctl(tty_fd, KDSETMODE, KD_GRAPHICS) == -1) {
- perror("Error setting graphics mode");
- close(tty_fd);
- return -1;
- }
-
- close(tty_fd);
- return 0;
-}
-#endif // FBGL_HIDE_CURSOR
#ifdef __cplusplus
extern "C" {