scan code

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
eL JeDi

scan code

Post 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.
frank

Re:scan code

Post 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
User avatar
df
Member
Member
Posts: 1076
Joined: Fri Oct 22, 2004 11:00 pm
Contact:

Re:scan code

Post 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
-- Stu --
eL JeDi

Re:scan code

Post 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.
Slasher

Re:scan code

Post 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.
frank

Re:scan code

Post 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
frank

Re:scan code

Post 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
Post Reply