comparison src/event-msw.c @ 225:12579d965149 r20-4b11

Import from CVS: tag r20-4b11
author cvs
date Mon, 13 Aug 2007 10:11:40 +0200
parents 2c611d1463a6
children 0e522484dd2a
comparison
equal deleted inserted replaced
224:4663b37daab6 225:12579d965149
85 static int 85 static int
86 mswindows_user_event_p (struct Lisp_Event* sevt) 86 mswindows_user_event_p (struct Lisp_Event* sevt)
87 { 87 {
88 return (sevt->event_type == key_press_event 88 return (sevt->event_type == key_press_event
89 || sevt->event_type == button_press_event 89 || sevt->event_type == button_press_event
90 || sevt->event_type == button_release_event 90 || sevt->event_type == button_release_event);
91 || sevt->event_type == pointer_motion_event);
92 } 91 }
93 92
94 /* 93 /*
95 * Add an emacs event to the proper dispatch queue 94 * Add an emacs event to the proper dispatch queue
96 */ 95 */
585 mswindows_event_stream->unselect_console_cb = emacs_mswindows_unselect_console; 584 mswindows_event_stream->unselect_console_cb = emacs_mswindows_unselect_console;
586 mswindows_event_stream->select_process_cb = emacs_mswindows_select_process; 585 mswindows_event_stream->select_process_cb = emacs_mswindows_select_process;
587 mswindows_event_stream->unselect_process_cb = emacs_mswindows_unselect_process; 586 mswindows_event_stream->unselect_process_cb = emacs_mswindows_unselect_process;
588 mswindows_event_stream->quit_p_cb = emacs_mswindows_quit_p; 587 mswindows_event_stream->quit_p_cb = emacs_mswindows_quit_p;
589 588
590 DEFVAR_BOOL ("w32-dynamic-frame-resize", &mswindows_dynamic_frame_resize /* 589 DEFVAR_BOOL ("mswindows-dynamic-frame-resize", &mswindows_dynamic_frame_resize /*
591 *Controls redrawing frame contents during mouse-drag or keyboard resize 590 *Controls redrawing frame contents during mouse-drag or keyboard resize
592 operation. When non-nil, the frame is redrawn while being resized. When 591 operation. When non-nil, the frame is redrawn while being resized. When
593 nil, frame is not redrawn, and exposed areas are filled with default 592 nil, frame is not redrawn, and exposed areas are filled with default
594 MDI application background color. Note that this option only has effect 593 MDI application background color. Note that this option only has effect
595 if "Show window contents while dragging" is on in system Display/Plus! 594 if "Show window contents while dragging" is on in system Display/Plus!
596 settings. 595 settings.
597 Default is t on fast machines, nil on slow. 596 Default is t on fast machines, nil on slow.
598 */ ); 597 */ );
599 598
600 /* The description copied verbatim from nt-emacs. (C) Geoff Voelker */ 599 /* The description copied verbatim from nt-emacs. (C) Geoff Voelker */
601 DEFVAR_INT ("w32-mouse-button-tolerance", &mswindows_button2_chord_time /* 600 DEFVAR_INT ("mswindows-mouse-button-tolerance", &mswindows_button2_chord_time /*
602 *Analogue of double click interval for faking middle mouse events. 601 *Analogue of double click interval for faking middle mouse events.
603 The value is the minimum time in milliseconds that must elapse between 602 The value is the minimum time in milliseconds that must elapse between
604 left/right button down events before they are considered distinct events. 603 left/right button down events before they are considered distinct events.
605 If both mouse buttons are depressed within this interval, a middle mouse 604 If both mouse buttons are depressed within this interval, a middle mouse
606 button down event is generated instead. 605 button down event is generated instead.
607 If negative or zero, currently set system default is used instead. 606 If negative or zero, currently set system default is used instead.
608 */ ); 607 */ );
609 608
610 /* The description copied verbatim from nt-emacs. (C) Geoff Voelker */ 609 /* The description copied verbatim from nt-emacs. (C) Geoff Voelker */
611 DEFVAR_INT ("w32-num-mouse-buttons", &mswindows_num_mouse_buttons /* 610 DEFVAR_INT ("mswindows-num-mouse-buttons", &mswindows_num_mouse_buttons /*
612 Number of physical mouse buttons. 611 Number of physical mouse buttons.
613 */ ); 612 */ );
614 613
615 DEFVAR_INT ("w32-mouse-button-max-skew-x", &mswindows_button2_max_skew_x /* 614 DEFVAR_INT ("mswindows-mouse-button-max-skew-x", &mswindows_button2_max_skew_x /*
616 *Maximum horizontal distance in pixels between points in which left and 615 *Maximum horizontal distance in pixels between points in which left and
617 right button clicks occured for them to be translated into single 616 right button clicks occured for them to be translated into single
618 middle button event. Clicks must occur in time not longer than defined 617 middle button event. Clicks must occur in time not longer than defined
619 by the variable w32-mouse-button-tolerance. 618 by the variable mswindows-mouse-button-tolerance.
620 If negative or zero, currently set system default is used instead. 619 If negative or zero, currently set system default is used instead.
621 */ ); 620 */ );
622 621
623 DEFVAR_INT ("w32-mouse-button-max-skew-y", &mswindows_button2_max_skew_y /* 622 DEFVAR_INT ("mswindows-mouse-button-max-skew-y", &mswindows_button2_max_skew_y /*
624 *Maximum vertical distance in pixels between points in which left and 623 *Maximum vertical distance in pixels between points in which left and
625 right button clicks occured for them to be translated into single 624 right button clicks occured for them to be translated into single
626 middle button event. Clicks must occur in time not longer than defined 625 middle button event. Clicks must occur in time not longer than defined
627 by the variable w32-mouse-button-tolerance. 626 by the variable mswindows-mouse-button-tolerance.
628 If negative or zero, currently set system default is used instead. 627 If negative or zero, currently set system default is used instead.
629 */ ); 628 */ );
630 629
631 mswindows_button2_max_skew_x = 0; 630 mswindows_button2_max_skew_x = 0;
632 mswindows_button2_max_skew_y = 0; 631 mswindows_button2_max_skew_y = 0;