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. |
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 ++; |