commit dec023d

uint  ·  2026-06-06 00:50:45 +0000 UTC
parent 9fa116e
Separate keys to logical and physical
1 files changed,  +4, -2
M maus.h
M maus.h
+4, -2
 1@@ -5,6 +5,8 @@
 2 #include <stdio.h>
 3 #include <stdint.h>
 4 
 5+#include "maus_keys.h"
 6+
 7 /* auto selection */
 8 #if !defined(BACKEND_WIN) && !defined(BACKEND_MAC) && \
 9     !defined(BACKEND_X11) && !defined(BACKEND_WAY)
10@@ -51,8 +53,8 @@ typedef struct {
11 
12 	union {
13 		struct {
14-			uint32_t  code;
15-			/*  sym */
16+			uint32_t  code; /* raw, backend keycode */
17+			MausKey   key;  /* logical, mapped key */
18 			bool      pressed;
19 		} key;
20