Subversion Repositories HelenOS

Rev

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

Rev 4419 Rev 4537
Line 30... Line 30...
30
 * @brief   US QWERTY leyout.
30
 * @brief   US QWERTY leyout.
31
 * @{
31
 * @{
32
 */
32
 */
33
 
33
 
34
#include <kbd.h>
34
#include <kbd.h>
35
#include <kbd/kbd.h>
35
#include <io/console.h>
36
#include <kbd/keycode.h>
36
#include <io/keycode.h>
37
#include <layout.h>
37
#include <layout.h>
38
 
38
 
39
static void layout_reset(void);
39
static void layout_reset(void);
40
static wchar_t layout_parse_ev(kbd_event_t *ev);
40
static wchar_t layout_parse_ev(console_event_t *ev);
41
 
41
 
42
layout_op_t us_qwerty_op = {
42
layout_op_t us_qwerty_op = {
43
    layout_reset,
43
    layout_reset,
44
    layout_parse_ev
44
    layout_parse_ev
45
};
45
};
Line 201... Line 201...
201
 
201
 
202
static void layout_reset(void)
202
static void layout_reset(void)
203
{
203
{
204
}
204
}
205
 
205
 
206
static wchar_t layout_parse_ev(kbd_event_t *ev)
206
static wchar_t layout_parse_ev(console_event_t *ev)
207
{
207
{
208
    wchar_t c;
208
    wchar_t c;
209
 
209
 
210
    /* Produce no characters when Ctrl or Alt is pressed. */
210
    /* Produce no characters when Ctrl or Alt is pressed. */
211
    if ((ev->mods & (KM_CTRL | KM_ALT)) != 0)
211
    if ((ev->mods & (KM_CTRL | KM_ALT)) != 0)