Subversion Repositories HelenOS

Rev

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

Rev 4344 Rev 4346
Line 37... Line 37...
37
 
37
 
38
#include <kbd.h>
38
#include <kbd.h>
39
#include <kbd/kbd.h>
39
#include <kbd/kbd.h>
40
#include <kbd/keycode.h>
40
#include <kbd/keycode.h>
41
#include <kbd_ctl.h>
41
#include <kbd_ctl.h>
-
 
42
#include <gsp.h>
42
 
43
 
43
enum dec_state {
44
enum dec_state {
44
    ds_s,
45
    ds_s,
45
    ds_e
46
    ds_e
46
};
47
};
47
 
48
 
48
static enum dec_state ds = ds_s;
49
static enum dec_state ds;
49
 
50
 
50
static int scanmap_simple[] = {
51
static int scanmap_simple[] = {
51
 
52
 
52
    [0x29] = KC_BACKTICK,
53
    [0x29] = KC_BACKTICK,
53
 
54
 
Line 177... Line 178...
177
 
178
 
178
    [0x35] = KC_NSLASH,
179
    [0x35] = KC_NSLASH,
179
    [0x1c] = KC_NENTER
180
    [0x1c] = KC_NENTER
180
};
181
};
181
 
182
 
-
 
183
int kbd_ctl_init(void)
-
 
184
{
-
 
185
    ds = ds_s;
-
 
186
    return 0;
-
 
187
}
182
 
188
 
183
void kbd_ctl_parse_scancode(int scancode)
189
void kbd_ctl_parse_scancode(int scancode)
184
{
190
{
185
    kbd_ev_type_t type;
191
    kbd_ev_type_t type;
186
    unsigned int key;
192
    unsigned int key;