Kernel - Split key translation out of PS2Keyboard
[tpg/acess2.git] / KernelLand / Modules / Input / Keyboard / keymap_int.h
diff --git a/KernelLand/Modules/Input/Keyboard/keymap_int.h b/KernelLand/Modules/Input/Keyboard/keymap_int.h
new file mode 100644 (file)
index 0000000..50da0ba
--- /dev/null
@@ -0,0 +1,41 @@
+/*
+ * Acess2 Kernel - Keyboard Character Mappings
+ * - By John Hodge (thePowersGang)
+ *
+ * keymap.h
+ * - Core keymap "library" header
+ */
+#ifndef _KEYMAP__KEYMAP_INT_H_
+#define _KEYMAP__KEYMAP_INT_H_
+
+typedef struct sKeymap tKeymap;
+typedef struct sKeymapLayer    tKeymapLayer;
+
+struct sKeymapLayer
+{
+        int    nSyms;
+       Uint32  Sym[];
+};
+
+struct sKeymap
+{
+       char    *Name;
+        int    nLayers;
+       tKeymapLayer    *Layers[];
+};
+
+struct sKeyboard
+{
+       struct sKeyboard        *Next;
+       char    *Name;
+       struct sVFS_Node        *Node;
+
+       tKeymap *Keymap;        
+
+       Uint32  State;
+        int    MaxKeysym;
+       Uint8   KeyStates[];
+};
+
+#endif
+

UCC git Repository :: git.ucc.asn.au