From 60585faf7951cffb6046280bdd5f91275fb97d65 Mon Sep 17 00:00:00 2001 From: Jack Jamison Date: Sun, 12 Oct 2025 00:07:02 -0400 Subject: input buffer and key repeat --- state.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'state.h') diff --git a/state.h b/state.h index fec2cd3..352236d 100644 --- a/state.h +++ b/state.h @@ -9,39 +9,43 @@ #include #include #include +#include #include "./glad/glad.h" typedef struct { + // wayland struct wl_display* display; struct wl_registry* registry; struct wl_compositor* compositor; struct wl_surface* surface; - struct zwlr_layer_shell_v1* layer_shell; struct zwlr_layer_surface_v1* layer_surface; - struct wl_seat* seat; struct wl_keyboard* keyboard; struct wl_pointer* pointer; - struct wp_cursor_shape_manager_v1* cursor_shape_manager; struct wp_cursor_shape_device_v1* cursor_shape_device; + // xkb struct xkb_context* xkb_context; struct xkb_keymap* xkb_keymap; struct xkb_state* xkb_state; struct xkb_compose_state* xkb_compose_state; int key_repeat_rate, key_repeat_delay; + int key_repeat_timer_fd; + xkb_keysym_t repeat_key; + // egl struct wl_egl_window* egl_window; EGLDisplay egl_display; EGLSurface egl_surface; EGLConfig egl_config; EGLContext egl_context; + // state + char* input_buffer; uint32_t width, height; - bool running; } client_state; -- cgit v1.2.3