/[gxemul]/trunk/src/devices/lk201.c
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/src/devices/lk201.c

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

revision 21 by dpavlin, Mon Oct 8 16:18:00 2007 UTC revision 22 by dpavlin, Mon Oct 8 16:19:37 2007 UTC
# Line 25  Line 25 
25   *  SUCH DAMAGE.   *  SUCH DAMAGE.
26   *     *  
27   *   *
28   *  $Id: lk201.c,v 1.24 2005/02/13 11:40:58 debug Exp $   *  $Id: lk201.c,v 1.25 2005/12/26 14:14:38 debug Exp $
29   *     *  
30   *  LK201 keyboard and mouse specifics, used by the dc7085 and scc serial   *  LK201 keyboard and mouse specifics, used by the dc7085 and scc serial
31   *  controller devices.   *  controller devices.
# Line 53  void lk201_convert_ascii_to_keybcode(str Line 53  void lk201_convert_ascii_to_keybcode(str
53  {  {
54          int i, found=-1, shifted = 0, controlled = 0;          int i, found=-1, shifted = 0, controlled = 0;
55    
56          if (d->keyb_buf_pos > 0 && d->keyb_buf_pos < sizeof(d->keyb_buf)) {          if (d->keyb_buf_pos > 0 && d->keyb_buf_pos < (int)sizeof(d->keyb_buf)) {
57                  /*  Escape sequence:  */                  /*  Escape sequence:  */
58                  d->keyb_buf[d->keyb_buf_pos] = ch;                  d->keyb_buf[d->keyb_buf_pos] = ch;
59                  d->keyb_buf_pos ++;                  d->keyb_buf_pos ++;

Legend:
Removed from v.21  
changed lines
  Added in v.22

  ViewVC Help
Powered by ViewVC 1.1.26