Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/syscons/scmouse.c
Show First 20 Lines • Show All 663 Lines • ▼ Show 20 Lines | sc_mouse_ioctl(struct tty *tp, u_long cmd, caddr_t data, struct thread *td) | ||||
switch (cmd) { | switch (cmd) { | ||||
case CONS_MOUSECTL: /* control mouse arrow */ | case CONS_MOUSECTL: /* control mouse arrow */ | ||||
case OLD_CONS_MOUSECTL: | case OLD_CONS_MOUSECTL: | ||||
mouse = (mouse_info_t*)data; | mouse = (mouse_info_t*)data; | ||||
random_harvest_queue(mouse, sizeof(mouse_info_t), 2, RANDOM_MOUSE); | random_harvest_queue(mouse, sizeof(mouse_info_t), RANDOM_MOUSE); | ||||
if (cmd == OLD_CONS_MOUSECTL) { | if (cmd == OLD_CONS_MOUSECTL) { | ||||
static u_char swapb[] = { 0, 4, 2, 6, 1, 5, 3, 7 }; | static u_char swapb[] = { 0, 4, 2, 6, 1, 5, 3, 7 }; | ||||
old_mouse_info_t *old_mouse = (old_mouse_info_t *)data; | old_mouse_info_t *old_mouse = (old_mouse_info_t *)data; | ||||
mouse = &buf; | mouse = &buf; | ||||
mouse->operation = old_mouse->operation; | mouse->operation = old_mouse->operation; | ||||
switch (mouse->operation) { | switch (mouse->operation) { | ||||
▲ Show 20 Lines • Show All 281 Lines • Show Last 20 Lines |