VOGONS


mapper or keyb problem?

Topic actions

First post, by jean

User metadata
Rank Newbie
Rank
Newbie

Hi
i use DOSBOX 7.0 with "Nec Note Keyboard with One-Touch start buttons"
i have a problem with some touchs like FS (->), GS (<-), RS, US,
I don't know if i must use mapper to resolv my problem or find a other file keyb?
I am french and my english is poor sorry
thanks for your help
regards

Reply 1 of 19, by wd

User metadata
Rank DOSBox Author
Rank
DOSBox Author

The keyboard layouts are only of use if you have a fully working keyboard
inside dosbox (that is US layout as at this point it is ignored what is printed
onto your real keys). Then you can switch to some layout you're familiar
with (so the output produced by the dosbox shell matches what you read
on your real keys).

Do the letters work (querty in the upper row) and the numbers?
What are those RS/US keys??

Reply 2 of 19, by jean

User metadata
Rank Newbie
Rank
Newbie

hi
i don't understand your answer.
i use azerty (fr keyb)
i want to use "up", "lft", "dwn","rgt" touchs . I see them in joystick layout mapper and under Del END PND mapper. So can i configure mapper ? or find (or create) a good keyboard file for my french portable-PC keyboard?
regards

Reply 3 of 19, by wd

User metadata
Rank DOSBox Author
Rank
DOSBox Author

Those are not touches (whatever those are) but belong to the joystick.

Is there any problem with the keyboard, or do you just want to
additionally have some functionality on those up/down touches?

Reply 4 of 19, by jean

User metadata
Rank Newbie
Rank
Newbie

hi
in my portable PC keyboard, there are <- and -> keys ( and up and down)
I think to use mapper.
how to know ascii codes link with keyboard key? any programm?
regards

Reply 5 of 19, by jean

User metadata
Rank Newbie
Rank
Newbie

hi again
I find : <- is -32 and 75 ascii code
can i emulate this ascii serie in mapper? (i not use graphic kyes)
regards

Reply 6 of 19, by wd

User metadata
Rank DOSBox Author
Rank
DOSBox Author

You're better off using the mapper window (hit ctrl-f1) where you
can remap the keys using a gui.
Look at the readme for a few examples and report back if something
doesn't work.

Reply 7 of 19, by jean

User metadata
Rank Newbie
Rank
Newbie

Hi
i go on
in my windows98 i have two <- keys (ascii code 75) and (ascii code -32 and ascii 75). My application works fine with theses two keys
now on my XP i have only key (ascii code -32 and ascii 75). My application doesn't work under dosbox but edit.exe works fine under dosbox.
So i don't know where is the problem! 🙁
Any idea?
Another question: with mapper can i put ascii code into key directly in event
(perhaps ascii(75) for example)?
regard

Reply 8 of 19, by wd

User metadata
Rank DOSBox Author
Rank
DOSBox Author

What exactly is code -32? Scancode 75 is left, that's correct.

What application is it? Does it behave different if you change
the numlock state?

Reply 10 of 19, by wd

User metadata
Rank DOSBox Author
Rank
DOSBox Author

The -32 is 0xe0 (implicit conversion to unsigned), that is you're
looking for the extended left key.
In the mapper, there's a block with numbers where its top left
has a NUM. 4 is left, 6 is right (depending on the state of numlock
and the shifts/capslock they act as 4 or left). Thus remap those
numbers to keys that are physically present on your keyboard and
see if it works. If it doesn't switch the state of numlock.

If you don't have numlock try capslock and various combinations
of the two shift keys+capslock on/off.

Reply 11 of 19, by jean

User metadata
Rank Newbie
Rank
Newbie

Hi
i don't understand mapper:
now with userscancodes=yes when i tape <- touch, i have 4 and when i tape -> i have 6.!!!
with userscancodes=no when i tape <- touch, i have KK and when i tape -> i have MM.!!!
numlock or shift doesn't change anything?
i am a poor dosbox user 😢

Reply 12 of 19, by wd

User metadata
Rank DOSBox Author
Rank
DOSBox Author

Hm maybe start over, that is delete the mapper.txt and stick to
usescancodes=true for the moment.
After that test what -> and <- produce (type something in the
dosbox window and hit those keys). Please post what happens
(either nothing, or it moves the cursor).

Reply 13 of 19, by jean

User metadata
Rank Newbie
Rank
Newbie

with mapper.txt delete without numlock or shift
with usescancodes=yes
<- gives K
-> M
^ H
and Down P
regards

Reply 14 of 19, by wd

User metadata
Rank DOSBox Author
Rank
DOSBox Author

And with usescancodes=false?

Reply 15 of 19, by jean

User metadata
Rank Newbie
Rank
Newbie

same things
K P H M

Reply 16 of 19, by wd

User metadata
Rank DOSBox Author
Rank
DOSBox Author

Hm don't know, sounds odd.

Try the following: delete the mapper.txt, start dosbox+the mapper.
Then klick on the "K" and delete all bindings for it (the "DEL" button,
watch the binding, it should be removed).
Then be sure that hitting the "K" key on your keyboard doesn't produce
anything (as the binding was deleted) and see what the <- now does.

Reply 17 of 19, by jean

User metadata
Rank Newbie
Rank
Newbie

K gives nothing 😊
<- gives K 😠

Reply 18 of 19, by wd

User metadata
Rank DOSBox Author
Rank
DOSBox Author

Sorry, no idea, maybe somebody else can give you some helpful advice.

Maybe try some older dosbox versions, and try posting a screenshot
after you pressed the up/down/left/right keys on the dosbox prompt.

Reply 19 of 19, by jean

User metadata
Rank Newbie
Rank
Newbie

Hi
i don't understand but it works fine!!! 😊
Ctrl A gives <-
Ctrl E up
Ctrl D ->
Ctrl X down
(keyb fr and that's all!!!!)
now i try to print with Dosbox
Thanks lot every body