/[emacs]/emacs/src/w32inevt.c
ViewVC logotype

Diff of /emacs/src/w32inevt.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.27.4.3 by miles, Sat Feb 28 05:42:01 2004 UTC revision 1.27.4.4 by miles, Tue Jul 6 09:14:38 2004 UTC
# Line 464  key_event (KEY_EVENT_RECORD *event, stru Line 464  key_event (KEY_EVENT_RECORD *event, stru
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 ());
# Line 524  w32_console_mouse_position (FRAME_PTR *f Line 524  w32_console_mouse_position (FRAME_PTR *f
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;
# Line 593  do_mouse_event (MOUSE_EVENT_RECORD *even Line 593  do_mouse_event (MOUSE_EVENT_RECORD *even
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    

Legend:
Removed from v.1.27.4.3  
changed lines
  Added in v.1.27.4.4

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26