464 |
} |
} |
465 |
if (event->uChar.AsciiChar == 0) |
if (event->uChar.AsciiChar == 0) |
466 |
return 0; |
return 0; |
467 |
XSETINT (emacs_ev->code, event->uChar.AsciiChar); |
emacs_ev->code = event->uChar.AsciiChar; |
468 |
} |
} |
469 |
else |
else |
470 |
{ |
{ |
471 |
emacs_ev->kind = NON_ASCII_KEYSTROKE_EVENT; |
emacs_ev->kind = NON_ASCII_KEYSTROKE_EVENT; |
472 |
XSETINT (emacs_ev->code, event->wVirtualKeyCode); |
emacs_ev->code = event->wVirtualKeyCode; |
473 |
} |
} |
474 |
|
|
475 |
XSETFRAME (emacs_ev->frame_or_window, get_frame ()); |
XSETFRAME (emacs_ev->frame_or_window, get_frame ()); |
524 |
*part = 0; |
*part = 0; |
525 |
SELECTED_FRAME ()->mouse_moved = 0; |
SELECTED_FRAME ()->mouse_moved = 0; |
526 |
|
|
527 |
*x = movement_pos.X; |
XSETINT(*x, movement_pos.X); |
528 |
*y = movement_pos.Y; |
XSETINT(*y, movement_pos.Y); |
529 |
*time = movement_time; |
*time = movement_time; |
530 |
|
|
531 |
UNBLOCK_INPUT; |
UNBLOCK_INPUT; |
593 |
if (but_change & mask) |
if (but_change & mask) |
594 |
{ |
{ |
595 |
if (i < NUM_TRANSLATED_MOUSE_BUTTONS) |
if (i < NUM_TRANSLATED_MOUSE_BUTTONS) |
596 |
XSETINT (emacs_ev->code, emacs_button_translation[i]); |
emacs_ev->code = emacs_button_translation[i]; |
597 |
else |
else |
598 |
XSETINT (emacs_ev->code, i); |
emacs_ev->code = i; |
599 |
break; |
break; |
600 |
} |
} |
601 |
|
|