37,6 → 37,7 |
|
#include <ipc/ipc.h> |
#include <ipc/services.h> |
#include <sysinfo.h> |
#include <stdio.h> |
#include <unistd.h> |
#include <stdlib.h> |
66,6 → 67,9 |
/** Currently pressed lock keys. We track these to tackle autorepeat. */ |
static unsigned lock_keys; |
|
int cir_service = 0; |
int cir_phone = -1; |
|
void kbd_push_scancode(int scancode) |
{ |
/* printf("scancode: 0x%x\n", scancode);*/ |
172,6 → 176,16 |
|
ipcarg_t phonead; |
|
if (sysinfo_value("kbd.cir.fhc") == 1) |
cir_service = SERVICE_FHC; |
|
if (cir_service) { |
while (cir_phone < 0) { |
cir_phone = ipc_connect_me_to(PHONE_NS, cir_service, |
0, 0); |
} |
} |
|
/* Initialize port driver. */ |
if (kbd_port_init()) |
return -1; |