Subversion Repositories HelenOS

Rev

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

Rev 4240 Rev 4285
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 void layout_reset(void);
39
static wchar_t layout_parse_ev(kbd_event_t *ev);
40
static wchar_t layout_parse_ev(kbd_event_t *ev);
40
 
41
 
41
layout_op_t us_dvorak_op = {
42
layout_op_t us_dvorak_op = {
-
 
43
    layout_reset,
42
    layout_parse_ev
44
    layout_parse_ev
43
};
45
};
44
 
46
 
45
static wchar_t map_lcase[] = {
47
static wchar_t map_lcase[] = {
46
    [KC_R] = 'p',
48
    [KC_R] = 'p',
Line 201... Line 203...
201
    if (key >= map_length)
203
    if (key >= map_length)
202
        return 0;
204
        return 0;
203
    return map[key];
205
    return map[key];
204
}
206
}
205
 
207
 
-
 
208
static void layout_reset(void)
-
 
209
{
-
 
210
}
-
 
211
 
206
static wchar_t layout_parse_ev(kbd_event_t *ev)
212
static wchar_t layout_parse_ev(kbd_event_t *ev)
207
{
213
{
208
    wchar_t c;
214
    wchar_t c;
209
 
215
 
210
    /* Produce no characters when Ctrl or Alt is pressed. */
216
    /* Produce no characters when Ctrl or Alt is pressed. */