Chameleon

Chameleon Svn Source Tree

Root/branches/Chimera/i386/modules/Keylayout/Keylayout.h

1/*
2 * Keylayout.h
3 * Chameleon
4 *
5 * Created by JrCs on 28/8/11.
6 * Copyright 2011. All rights reserved.
7 *
8 */
9
10
11#ifndef __KEYLAYOUT_H
12#define __KEYLAYOUT_H
13
14#define KEYBOARD_LAYOUTS_MAGIC "CHAMLAYT"
15#define KEYBOARD_LAYOUTS_MAGIC_SIZE (sizeof(KEYBOARD_LAYOUTS_MAGIC) - 1)
16#define KEYBOARD_LAYOUTS_VERSION 3
17#define KEYBOARD_LAYOUTS_MAP_OFFSET 0x10 // 0x10 offset of the map in layout file
18
19#define KEYBOARD_MAP_SIZE 0x38
20
21struct keyboard_layout
22{
23uint16_t keyboard_map[KEYBOARD_MAP_SIZE];
24uint16_t keyboard_map_shift[KEYBOARD_MAP_SIZE];
25uint16_t keyboard_map_alt[KEYBOARD_MAP_SIZE];
26uint16_t keyboard_map_shift_alt[KEYBOARD_MAP_SIZE];
27};
28
29#endif
30

Archive Download this file

Revision: HEAD