Diff for /np2/x11/kbdmng.c between versions 1.2 and 1.4

version 1.2, 2004/07/02 15:03:02 version 1.4, 2011/12/17 18:43:06
Line 10 Line 10
  * 2. Redistributions in binary form must reproduce the above copyright   * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the   *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.   *    documentation and/or other materials provided with the distribution.
  * 3. The name of the author may not be used to endorse or promote products  
  *    derived from this software without specific prior written permission.  
  *   *
  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR   * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES   * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
Line 33 Line 31
   
 #include "kbdmng.h"  #include "kbdmng.h"
   
 static const BYTE kbdmng_f12keys[] = { 0x61, 0x60, 0x4f, 0x4d, 0x76, 0x77 };  static const BYTE kbdmng_f12keys[] = {
           0x61,   /* Copy */
           0x60,   /* Stop */
           0x4f,   /* tenkey [,] */
           0x4d,   /* tenkey [=] */
           0x76,   /* User1 */
           0x77,   /* User2 */
           0x3f,   /* End */
   };
   
 BYTE  BYTE
 kbdmng_getf12key(void)  kbdmng_getf12key(void)
 {  {
         int key;          int key;
   
         key = np2oscfg.F12KEY - 1;          key = np2oscfg.F12KEY - 1; /* 0 is Mouse mode */
         if (key < NELEMENTS(kbdmng_f12keys))          if (key >= 0 && key < NELEMENTS(kbdmng_f12keys))
                 return kbdmng_f12keys[key];                  return kbdmng_f12keys[key];
         return KEYBOARD_KC_NC;          return KEYBOARD_KC_NC;
 }  }

Removed from v.1.2  
changed lines
  Added in v.1.4


RetroPC.NET-CVS <cvs@retropc.net>