Subversion Repositories HelenOS

Rev

Rev 4239 | Rev 4285 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4239 Rev 4240
Line 34... Line 34...
34
#include <kbd.h>
34
#include <kbd.h>
35
#include <kbd/kbd.h>
35
#include <kbd/kbd.h>
36
#include <kbd/keycode.h>
36
#include <kbd/keycode.h>
37
#include <layout.h>
37
#include <layout.h>
38
 
38
 
-
 
39
static wchar_t layout_parse_ev(kbd_event_t *ev);
-
 
40
 
-
 
41
layout_op_t cz_op = {
-
 
42
    layout_parse_ev
-
 
43
};
-
 
44
 
39
static wchar_t map_lcase[] = {
45
static wchar_t map_lcase[] = {
40
    [KC_2] = L'ě',
46
    [KC_2] = L'ě',
41
    [KC_3] = L'š',
47
    [KC_3] = L'š',
42
    [KC_4] = L'č',
48
    [KC_4] = L'č',
43
    [KC_5] = L'ř',
49
    [KC_5] = L'ř',
Line 199... Line 205...
199
    if (key >= map_length)
205
    if (key >= map_length)
200
        return 0;
206
        return 0;
201
    return map[key];
207
    return map[key];
202
}
208
}
203
 
209
 
204
wchar_t layout_parse_ev(kbd_event_t *ev)
210
static wchar_t layout_parse_ev(kbd_event_t *ev)
205
{
211
{
206
    wchar_t c;
212
    wchar_t c;
207
 
213
 
208
    /* Produce no characters when Ctrl or Alt is pressed. */
214
    /* Produce no characters when Ctrl or Alt is pressed. */
209
    if ((ev->mods & (KM_CTRL | KM_ALT)) != 0)
215
    if ((ev->mods & (KM_CTRL | KM_ALT)) != 0)