Subversion Repositories HelenOS

Rev

Rev 4240 | Rev 4462 | 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_qwerty_op = {
42
layout_op_t us_qwerty_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_Q] = 'q',
48
    [KC_Q] = 'q',
Line 195... Line 197...
195
    if (key >= map_length)
197
    if (key >= map_length)
196
        return 0;
198
        return 0;
197
    return map[key];
199
    return map[key];
198
}
200
}
199
 
201
 
-
 
202
static void layout_reset(void)
-
 
203
{
-
 
204
}
-
 
205
 
200
static wchar_t layout_parse_ev(kbd_event_t *ev)
206
static wchar_t layout_parse_ev(kbd_event_t *ev)
201
{
207
{
202
    wchar_t c;
208
    wchar_t c;
203
 
209
 
204
    /* Produce no characters when Ctrl or Alt is pressed. */
210
    /* Produce no characters when Ctrl or Alt is pressed. */