Page 1 of 1

scan code

Posted: Fri Jan 10, 2003 1:00 pm
by eL JeDi
Hi everyone


I'm working on my keyboard driver. I thinks its all ok. I said i think 'cos my keyboard is a spanish keyboard, and I've done a driver using US scan code.

I haven't found othe. Anyone knows where can i get spanish and other scancodes for the keyboard??


Thanks.

Re:scan code

Posted: Fri Jan 10, 2003 1:15 pm
by frank
- Find the codes out yourself (using a program/read them and print output on screen)
- The author website of your spanish keyboard
- google? :)

Best,
Frank

Re:scan code

Posted: Fri Jan 10, 2003 1:41 pm
by df
is there spanish keyboard layout somewhere I can get?
i have uk english + us english, adding a spanish keymap would be cool :) or duth/german/etc :) heheeh

i think i will poke around on the net

Re:scan code

Posted: Fri Jan 10, 2003 1:46 pm
by eL JeDi
Hi frank,

I have search yet in google. and nothing. ( serach: scan+code+spanish ; spanish+scan )

So i will try on the author website.

Re:scan code

Posted: Fri Jan 10, 2003 1:46 pm
by Slasher
hi,
I found the scan code out for myself, this is how i did it.
In my OS, i wrote the keyboard ISR which just read the 0x60 port, and placed the scan code in a buffer(you can put it in ax) then call a print_number function that accepts a number in ax and prints it. This way, for each key you press you can record(on paper for later use in a key mapping table) its Ascii char on the key with the returned scan code.

Re:scan code

Posted: Sat Jan 11, 2003 2:58 am
by frank
by df:
or dutch
many dutch people use uk/english keyboards :p
(I use a qwerty trust wi**** 98 keyboard)

there are dutch keyboards, don't know where to find them and I don't want them. ;D

when I was in spain (holiday) they had different keyboards. (+scancodes)
The backslash and forslash were on the wrong place.

Best,
Frank

Re:scan code

Posted: Sat Jan 11, 2003 2:45 pm
by frank
ah, I got you some stuff....

some linux keymap info, how to get the keycodes, where the keymaps are stored...
http://hints.linuxfromscratch.org/hints ... _us2es.txt]
http://en.tldp.org/HOWTO/Keyboard-and-C ... TO-15.html

some other stuff:
http://www.win.tue.nl/~aeb/linux/kbd/scancodes.html
http://library.n0i.net/linux-unix/programming/ke-scan/

I'm not sure if you (or I) can use / trust that stuff :)
I'll try to find some keymaps on my disk (linux) and post them here. (soon, I'm on my fathers windows box right now)

hmm, I feel like coding on my os again... but I also want to code on my game... so much things, so less time..

Best,
Frank