Use firm_gettime() (in dev/sun/vuid_event.h) to adapt
changes in chiristos-time_t.
This commit is contained in:
parent
ac2053000c
commit
691579f364
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: kbd.c,v 1.35 2008/06/25 08:14:59 isaki Exp $ */
|
||||
/* $NetBSD: kbd.c,v 1.36 2009/01/17 03:26:31 isaki Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1982, 1986, 1990 The Regents of the University of California.
|
||||
|
@ -30,7 +30,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: kbd.c,v 1.35 2008/06/25 08:14:59 isaki Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: kbd.c,v 1.36 2009/01/17 03:26:31 isaki Exp $");
|
||||
|
||||
#include "ite.h"
|
||||
#include "bell.h"
|
||||
|
@ -348,7 +348,7 @@ kbdintr(void *arg)
|
|||
}
|
||||
fe->id = KEY_CODE(c);
|
||||
fe->value = KEY_UP(c) ? VKEY_UP : VKEY_DOWN;
|
||||
getmicrotime(&fe->time);
|
||||
firm_gettime(fe);
|
||||
sc->sc_events.ev_put = put;
|
||||
EV_WAKEUP(&sc->sc_events);
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: ms.c,v 1.29 2008/06/25 08:19:37 isaki Exp $ */
|
||||
/* $NetBSD: ms.c,v 1.30 2009/01/17 03:26:31 isaki Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1992, 1993
|
||||
|
@ -45,7 +45,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: ms.c,v 1.29 2008/06/25 08:19:37 isaki Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: ms.c,v 1.30 2009/01/17 03:26:31 isaki Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/conf.h>
|
||||
|
@ -428,7 +428,7 @@ ms_input(struct ms_softc *ms, int c)
|
|||
d = to_one[d - 1]; /* from 1..7 to {1,2,4} */
|
||||
fe->id = to_id[d - 1]; /* from {1,2,4} to ID */
|
||||
fe->value = mb & d ? VKEY_DOWN : VKEY_UP;
|
||||
getmicrotime(&fe->time);
|
||||
firm_gettime(fe);
|
||||
ADVANCE;
|
||||
ub ^= d;
|
||||
any++;
|
||||
|
@ -437,7 +437,7 @@ ms_input(struct ms_softc *ms, int c)
|
|||
NEXT;
|
||||
fe->id = LOC_X_DELTA;
|
||||
fe->value = ms->ms_dx;
|
||||
getmicrotime(&fe->time);
|
||||
firm_gettime(fe);
|
||||
ADVANCE;
|
||||
ms->ms_dx = 0;
|
||||
any++;
|
||||
|
@ -446,7 +446,7 @@ ms_input(struct ms_softc *ms, int c)
|
|||
NEXT;
|
||||
fe->id = LOC_Y_DELTA;
|
||||
fe->value = -ms->ms_dy; /* XXX? */
|
||||
getmicrotime(&fe->time);
|
||||
firm_gettime(fe);
|
||||
ADVANCE;
|
||||
ms->ms_dy = 0;
|
||||
any++;
|
||||
|
|
Loading…
Reference in New Issue