Subversion Repositories HelenOS

Rev

Rev 4419 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4419 Rev 4537
Line 30... Line 30...
30
 * @brief US Dvorak Simplified Keyboard layout.
30
 * @brief US Dvorak Simplified Keyboard layout.
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_dvorak_op = {
42
layout_op_t us_dvorak_op = {
43
    layout_reset,
43
    layout_reset,
44
    layout_parse_ev
44
    layout_parse_ev
45
};
45
};
Line 207... Line 207...
207
 
207
 
208
static void layout_reset(void)
208
static void layout_reset(void)
209
{
209
{
210
}
210
}
211
 
211
 
212
static wchar_t layout_parse_ev(kbd_event_t *ev)
212
static wchar_t layout_parse_ev(console_event_t *ev)
213
{
213
{
214
    wchar_t c;
214
    wchar_t c;
215
 
215
 
216
    /* Produce no characters when Ctrl or Alt is pressed. */
216
    /* Produce no characters when Ctrl or Alt is pressed. */
217
    if ((ev->mods & (KM_CTRL | KM_ALT)) != 0)
217
    if ((ev->mods & (KM_CTRL | KM_ALT)) != 0)