[Message Prev][Message Next][Thread Prev][Thread Next][Message Index][Thread Index]
Re: HP-UX
- To: rdesktop@xxxxxxxx
- Subject: Re: HP-UX
- From: "Paul Killingley" <paul.killingley@xxxxxxxxxxx>
- Date: Thu, 30 Nov 2000 18:25:07 GMT
- Delivered-To: mailing list rdesktop@cifs.org
- Mailing-List: contact rdesktop-help@cifs.org; run by ezmlm
Replace the function xwin_translate_key in xwin.c with the following
and most of the keyboard works. I hope there is a tidyer way that gets
all the keys but this works.
---------
static uint8 xwin_translate_key(unsigned long key)
{
DEBUG("KEY(code=0x%lx)\n", key);
switch (key)
{
case 0x11: return 0x01; case 0x1f: return 0x02;
case 0x27: return 0x03; case 0x2f: return 0x04;
case 0x2e: return 0x05; case 0x37: return 0x06;
case 0x3f: return 0x07; case 0x46: return 0x08;
case 0x47: return 0x09; case 0x4f: return 0x0A;
case 0x4e: return 0x0B; case 0x57: return 0x0C;
case 0x5e: return 0x0D; case 0x6f: return 0x0E;
case 0x16: return 0x0F; case 0x1e: return 0x10;
case 0x26: return 0x11; case 0x2d: return 0x12;
case 0x36: return 0x13; case 0x35: return 0x14;
case 0x3e: return 0x15; case 0x45: return 0x16;
case 0x4c: return 0x17; case 0x4d: return 0x18;
case 0x56: return 0x19; case 0x5d: return 0x1A;
case 0x64: return 0x1B; case 0x63: return 0x1C;
case 0x1d: return 0x1D; case 0x25: return 0x1E;
case 0x24: return 0x1F; case 0x2c: return 0x20;
case 0x34: return 0x21; case 0x3d: return 0x22;
case 0x3c: return 0x23; case 0x44: return 0x24;
case 0x4b: return 0x25; case 0x54: return 0x26;
case 0x55: return 0x27; case 0x5b: return 0x28;
case 0x5c: return 0x29; case 0x1b: return 0x2A;
case 0x1c: return 0x2B; case 0x23: return 0x2C;
case 0x2b: return 0x2D; case 0x2a: return 0x2E;
case 0x33: return 0x2F; case 0x3b: return 0x30;
case 0x3a: return 0x31; case 0x43: return 0x32;
case 0x4a: return 0x33; case 0x52: return 0x34;
case 0x53: return 0x35; case 0x62: return 0x36;
case 0x1a: return 0x37; case 0x22: return 0x38;
case 0x32: return 0x39; case 0x42: return 0x3A;
case 0x61: return 0x3B;
}
return 0;
}
---------
My problem is that the fonts keep on reversing from left to right, and
bits of windows don't update properly. Is there a fix for this?
Regards,
Paul Killingley