Subversion Repositories HelenOS

Rev

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

Rev 3933 Rev 3942
Line 44... Line 44...
44
#include <ipc/ns.h>
44
#include <ipc/ns.h>
45
#include <async.h>
45
#include <async.h>
46
#include <errno.h>
46
#include <errno.h>
47
#include <libadt/fifo.h>
47
#include <libadt/fifo.h>
48
#include <kbd/kbd.h>
48
#include <kbd/kbd.h>
-
 
49
#include <kbd/keycode.h>
49
 
50
 
50
#include <kbd.h>
51
#include <kbd.h>
51
#include <key_buffer.h>
52
#include <key_buffer.h>
52
#include <kbd_port.h>
53
#include <kbd_port.h>
53
#include <kbd_ctl.h>
54
#include <kbd_ctl.h>
Line 58... Line 59...
58
int cons_connected = 0;
59
int cons_connected = 0;
59
int phone2cons = -1;
60
int phone2cons = -1;
60
keybuffer_t keybuffer;
61
keybuffer_t keybuffer;
61
 
62
 
62
/** Currently active modifiers. */
63
/** Currently active modifiers. */
63
static unsigned mods;
64
static unsigned mods = KM_NUM_LOCK;
64
 
65
 
65
void kbd_push_scancode(int scancode)
66
void kbd_push_scancode(int scancode)
66
{
67
{
67
    printf("scancode: 0x%x\n", scancode);
68
    printf("scancode: 0x%x\n", scancode);
68
    kbd_ctl_parse_scancode(scancode);
69
    kbd_ctl_parse_scancode(scancode);
69
}
70
}
70
 
71
 
71
#include <kbd/keycode.h>
-
 
72
void kbd_push_ev(int type, unsigned int key)
72
void kbd_push_ev(int type, unsigned int key)
73
{
73
{
74
    kbd_event_t ev;
74
    kbd_event_t ev;
75
    unsigned mod_mask;
75
    unsigned mod_mask;
76
 
76