Re: [AD] Problems with keyboard

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On mié, oct 13, 2004 at 11:37:46 +1000, Peter Wang wrote:
> This is very strange indeed.  I really have no idea why the scancode 
> values are wrong.  Do you think you could recompile Allegro from 
> scratch, after making sure the old Allegro was completely uninstalled?  

OK, I uninstalled Allegro with `make uninstall', and `make
uninstall-shared`, and recompiled all again (from a fresh uncompressed
.tar file). And not, it's doing the same error.

> If that does not fix it, you could try to debug it by doing some printfs 
> in src/linux/lkeybd.c.  I would start at the line "mycode = 
> kernel_to_mycode[code]" in `process_keyboard_data'.

OK, I used the same TRACE line, here are the results (the more strange
thing is that code and mycode are the equal, like if kernel_to_mycode
does nothing):

Key pressed: <a>
  keypress: code= 30 mycode= 30 map= 0 kb_value=0b61
  readkey  = 0x00001e61 (7777)
  ascii    = 0x61 (97)
  scancode = 0x1e (30) [KEY 3]
Key pressed: <s>
  keypress: code= 31 mycode= 31 map= 0 kb_value=0b73
  readkey  = 0x00001f73 (8051)
  ascii    = 0x73 (115)
  scancode = 0x1f (31) [KEY 4]
Key pressed: <d>
  keypress: code= 32 mycode= 32 map= 0 kb_value=0b64
  readkey  = 0x00002064 (8292)
  ascii    = 0x64 (100)
  scancode = 0x20 (32) [KEY 5]
Key pressed: <f>
  keypress: code= 33 mycode= 33 map= 0 kb_value=0b66
  readkey  = 0x00002166 (8550)
  ascii    = 0x66 (102)
  scancode = 0x21 (33) [KEY 6]
Key pressed: <ESC>
  keypress: code=  1 mycode=  1 map= 0 kb_value=001b
  readkey  = 0x0000011b (283)
  ascii    = 0x1b (27)
  scancode = 0x01 (1) [KEY A]
Key pressed: <F1>
  keypress: code= 59 mycode= 59 map= 0 kb_value=0100
  readkey  = 0x00003b00 (15104)
  ascii    = 0x00 (0)
  scancode = 0x3b (59) [KEY ESC]

-- 
http://www.davidcapello.com.ar





Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/