~ubuntu-branches/ubuntu/karmic/fltk1.1/karmic

« back to all changes in this revision

Viewing changes to src/Fl_win32.cxx

  • Committer: Bazaar Package Importer
  • Author(s): Aaron M. Ucko
  • Date: 2005-05-22 13:57:06 UTC
  • mfrom: (2.1.1 hoary)
  • Revision ID: james.westby@ubuntu.com-20050522135706-mchag24yf42lu7bu
Tags: 1.1.6-5
* Revert previous change, which seems to have been ineffective for some
  reason, in favor of commenting out the problematic Makefile rule
  altogether.  (Closes: #310151.)
* debian/control: Go back to specifying the URL as part of the
  description rather than via a non-standard field that doesn't seem to
  have caught on.  (Closes: #310240.)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
//
2
 
// "$Id: Fl_win32.cxx,v 1.33.2.37.2.48 2004/04/11 04:38:59 easysw Exp $"
 
2
// "$Id: Fl_win32.cxx,v 1.33.2.37.2.51 2004/10/19 18:21:52 easysw Exp $"
3
3
//
4
4
// WIN32-specific code for the Fast Light Tool Kit (FLTK).
5
5
//
30
30
#include <FL/Fl.H>
31
31
#include <FL/x.H>
32
32
#include <FL/Fl_Window.H>
 
33
#include <FL/Enumerations.H>
33
34
#include "flstring.h"
34
35
#include <stdio.h>
35
36
#include <stdlib.h>
727
728
      buffer[0] = char(wParam);
728
729
      Fl::e_length = 1;
729
730
    } else if (Fl::e_keysym >= FL_KP && Fl::e_keysym <= FL_KP_Last) {
730
 
      buffer[0] = Fl::e_keysym-FL_KP;
731
 
      Fl::e_length = 1;
 
731
      if (state & FL_NUM_LOCK) {
 
732
        // Convert to regular keypress...
 
733
        buffer[0] = Fl::e_keysym-FL_KP;
 
734
        Fl::e_length = 1;
 
735
      } else {
 
736
        // Convert to special keypress...
 
737
        buffer[0] = 0;
 
738
        Fl::e_length = 0;
 
739
        switch (Fl::e_keysym) {
 
740
          case FL_KP + '0' :
 
741
            Fl::e_keysym = FL_Insert;
 
742
            break;
 
743
          case FL_KP + '1' :
 
744
            Fl::e_keysym = FL_End;
 
745
            break;
 
746
          case FL_KP + '2' :
 
747
            Fl::e_keysym = FL_Down;
 
748
            break;
 
749
          case FL_KP + '3' :
 
750
            Fl::e_keysym = FL_Page_Down;
 
751
            break;
 
752
          case FL_KP + '4' :
 
753
            Fl::e_keysym = FL_Left;
 
754
            break;
 
755
          case FL_KP + '6' :
 
756
            Fl::e_keysym = FL_Right;
 
757
            break;
 
758
          case FL_KP + '7' :
 
759
            Fl::e_keysym = FL_Home;
 
760
            break;
 
761
          case FL_KP + '8' :
 
762
            Fl::e_keysym = FL_Up;
 
763
            break;
 
764
          case FL_KP + '9' :
 
765
            Fl::e_keysym = FL_Page_Up;
 
766
            break;
 
767
          case FL_KP + '.' :
 
768
            Fl::e_keysym = FL_Delete;
 
769
            break;
 
770
          case FL_KP + '/' :
 
771
          case FL_KP + '*' :
 
772
          case FL_KP + '-' :
 
773
          case FL_KP + '+' :
 
774
            buffer[0] = Fl::e_keysym-FL_KP;
 
775
            Fl::e_length = 1;
 
776
            break;
 
777
        }
 
778
      }
732
779
    } else {
733
780
      buffer[0] = 0;
734
781
      Fl::e_length = 0;
1195
1242
}
1196
1243
 
1197
1244
//
1198
 
// End of "$Id: Fl_win32.cxx,v 1.33.2.37.2.48 2004/04/11 04:38:59 easysw Exp $".
 
1245
// End of "$Id: Fl_win32.cxx,v 1.33.2.37.2.51 2004/10/19 18:21:52 easysw Exp $".
1199
1246
//