o Remove include of sys/mouse.h, it is included from vt.h now.
o Call vt_mouse_event method, to notify VT(9) about mouse events. o Add empty MOUSE_MOUSECHAR ioctl handler. o Remove trailing whitespace. Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
b8f44376b1
commit
5c96d5741b
@ -41,7 +41,6 @@ __FBSDID("$FreeBSD$");
|
||||
#include <sys/filio.h>
|
||||
#include <sys/kernel.h>
|
||||
#include <sys/malloc.h>
|
||||
#include <sys/mouse.h>
|
||||
#include <sys/poll.h>
|
||||
#include <sys/random.h>
|
||||
#include <sys/selinfo.h>
|
||||
@ -172,6 +171,8 @@ sysmouse_process_event(mouse_info_t *mi)
|
||||
if (sysmouse_status.flags == 0)
|
||||
goto done;
|
||||
|
||||
vt_mouse_event(mi->operation, x, y, mi->u.event.id, mi->u.event.value);
|
||||
|
||||
/* The first five bytes are compatible with MouseSystems. */
|
||||
buf[0] = MOUSE_MSC_SYNC |
|
||||
buttonmap[sysmouse_status.button & MOUSE_STDBUTTONS];
|
||||
@ -358,6 +359,8 @@ sysmouse_ioctl(struct cdev *dev, u_long cmd, caddr_t data, int flag,
|
||||
|
||||
return (0);
|
||||
}
|
||||
case MOUSE_MOUSECHAR:
|
||||
return (0);
|
||||
default:
|
||||
printf("sysmouse: unknown ioctl: %c:%lx\n",
|
||||
(char)IOCGROUP(cmd), IOCBASECMD(cmd));
|
||||
|
Loading…
Reference in New Issue
Block a user