VOGONS


Still can't get right-shift to work!

Topic actions

First post, by synholiday

User metadata
Rank Newbie
Rank
Newbie

I have searched here and other forums for a solution to the right-shift issue (not recognized on DOSBOX DOS prompt or anything run through DOSBOX). In Control Panel/Keyboard/Hardware, I got rid of the Japanese "109" driver and replaced it with the generic HID compliant device. The devices now show as follows:

HID Keyboard Device
Microsoft eHome Remote Control Keyboard keys

I tried different 'keyb' commands in the [autoexec] section of the .conf file. I tried changing the 'usescancodes' setting. Anyone have any other suggestions?

I'm running DOSBOX on a Dell Studio XPS 8000, I7 860, Windows 7 64-bit.

Reply 1 of 26, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

set the environment variable:
sdl_videodriver=windib
and start dosbox
see if that helps

Water flows down the stream
How to ask questions the smart way!

Reply 2 of 26, by robertmo

User metadata
Rank l33t++
Rank
l33t++

remove Microsoft eHome Remote Control Keyboard keys and check whether it helps.

Reply 3 of 26, by synholiday

User metadata
Rank Newbie
Rank
Newbie

Didn't work. Thanks regardless.

Reply 4 of 26, by wd

User metadata
Rank DOSBox Author
Rank
DOSBox Author

Bad luck then. Of course you could have stated WHAT didn't work.
Or posting your dosbox version.

Reply 5 of 26, by synholiday

User metadata
Rank Newbie
Rank
Newbie

robertmo - I was afraid that my be the problem. I'll try it. I'm hoping that isn't it though, because I like the remote keys and use them quite a bit.

Reply 6 of 26, by synholiday

User metadata
Rank Newbie
Rank
Newbie

Sorry, the DOSBOX version is 0.73 (the latest I believe). The right-shift doesn't work. If I type something at the DOSBOX prompt, or if I type something in an application running under DOSBOX, the right-shift doesn't work. The DOSBOX keymapper isn't a solution because the keymapper doesn't even "see" the right-shift key.

Reply 7 of 26, by synholiday

User metadata
Rank Newbie
Rank
Newbie

Bummer, I can't tell if the 'Microsoft eHome Remote Control Keyboard keys' driver is the problem. I uninstalled it and tried DOSBOX but the right-shift still isn't working. I figured maybe I need to re-boot, but then the driver gets re-installed automatically upon re-boot, without any prompt.

Weird thing I noticed though, that driver doesn't have the option to disable it. I can only uninstall. I poked around through some of the other drivers and a few of them also do not have the option to disable. Hmm, I wonder if that's a Windows 7 thing. I don't remember encountering that in XP.

Reply 8 of 26, by robertmo

User metadata
Rank l33t++
Rank
l33t++

try what Qbix said

Reply 9 of 26, by wd

User metadata
Rank DOSBox Author
Rank
DOSBox Author

Bummer, I can't tell if the 'Microsoft eHome Remote Control Keyboard keys' driver is the problem.

I'm quite sure this is the problem (there was even some directx posting
on some other forum/program that the 109-style keyboards change a
subset of the scancodes).

Reply 10 of 26, by robertmo

User metadata
Rank l33t++
Rank
l33t++

This was the solution and it looks "109-keyboard" ≠ "remote control"

hexaae wrote:
I've found a flawlessly solution to solve the problem without drawbacks! :-) […]
Show full quote

I've found a flawlessly solution to solve the problem without drawbacks! 😀

My system had 4 keyboard drivers installed:
- Standard 101/102-Key or Microsoft Natural PS/2 Keyboard with HP QLB
- Tasti di tastiera controllo remoto Microsfot eHome (=remote control)
- Tastiera Microsoft eHome MCIR (?)
- Tastiera Microsoft eHome MCIR 109 (????????????)

Since I noticed WUAE showed 'Tastiera Microsoft eHome MCIR 109' when using -rawkeyboard I had the idea to remove it from Device manager. To be exact I manually changed (=forced installation) the driver for it to be generic 'HID compatible device' (this left just the first 3 keyboards and created another generic HID device in the HID node list) and.... it worked!!
Now all emulators give me back the correct keys, and WUAE also works without -rawkeyboard (now shows 'Tastiera Microsoft eHome MCIR') with all keys available, also <, ì, è, + etc. correctly mapped as I see on the keyboard!

All in all it seems it was a wrong driver device detection adding an unexistant keyboard to the list, that merged in the whole virtual keyboard used by DirectInput and caused all the troubles!
Phew... I couldn't find a better solution, and the system runs fine, including the 2 remote controller and HP Quicklaunh buttons so it's all right!

Thank you again Toni for your infinte patience that has driven me in the right direction!
And thank you for WUAE that in this strange case geve me the clue to solve a HW/driver problem as well

PS
Simply uninstalling 'Tastiera Microsoft eHome MCIR 109' was not enough as Vista automatically would have found and reinstalled this keyboard!

BTW is there any way to tell dosbox/sdl which keyboard to use?

Reply 11 of 26, by wd

User metadata
Rank DOSBox Author
Rank
DOSBox Author

Afaik those ehome keyboards have 109 keys (same as japanese or so) and
the drivers swap around scancodes for some reason.

Reply 12 of 26, by synholiday

User metadata
Rank Newbie
Rank
Newbie

Tried the 'sdl_videodriver=windib' thing but it didn't work. The problem was what you said, the remote keyboard driver. I just couldn't get it to stay uninstalled. It kept re-installing the next time I booted up so I couldn't tell if it was the problem. The hexaae post you pointed out was the solution. Rather than trying to uninstall it, I just updated the 'remote keyboard keys' driver and chose the HID compatible driver instead, and it worked! It even fixed some of the other keys that weren't working properly (such as the backslash).

Awesome, thank you all so much!!!

Reply 13 of 26, by wd

User metadata
Rank DOSBox Author
Rank
DOSBox Author

If you have a bit time, maybe you can do 2 things:
a) write in details how the problematic setup looked like, and how you
fixed it (funny screenshots if you dare)
b) try to repdoduce the problem on another PC that currently works fine
(ie. "breaking" dosbox on a system where it formerly was fine, this would
help debugging/finding some in-program solution)

Thanks for reporting back btw.!

Reply 15 of 26, by synholiday

User metadata
Rank Newbie
Rank
Newbie

Hey, I didn't have to give up the remote control buttons on the keyboard. Even though I had to get rid of the 'Microsoft eHome Remote Control Keyboard keys' driver and replace it with HID compatible device, ALL the keyboard remote buttons still work. The only thing left under keyboard hardware is 'HID Keyboard Device' and yet everything seems to be working fine.

🙁 Scratch that. I just tested out my IR remote with Microsoft Media Center and the arrow buttons and 'OK' button don't work. Too good to be true I guess. All the other keys on the remote work, like volume, channel, media shortcuts, play, rewind, back, etc., but I can't navigate any menus since the arrow keys and 'OK' button don't work. Dammit!

Reply 16 of 26, by robertmo

User metadata
Rank l33t++
Rank
l33t++

Just to be sure. When you tried this sdl_videodriver=windib you set it outside dosbox?
For example run cmd.exe while being in dosbox folder, type "set sdl_videodriver=windib" enter, type "dosbox" enter.

When you check your device manager you have to check not only "keyboards" but also "hid devices". Try experimenting with other drivers.

Reply 17 of 26, by synholiday

User metadata
Rank Newbie
Rank
Newbie

I managed to get everything to work.

- Uninstalled all the keyboard drivers
- Uninstalled DOSBOX (had to manually delete the mapper configuration file, which might have been part of the problem)
- Rebooted and allowed Windows to install all the original keyboard drivers again
- Replaced the 109 keyboard driver with HID compatible driver. So the keyboard drivers there now are:
* HID Keyboard Device
* Microsoft eHome MCIR Keyboard
* Microsoft eHome Remote Control Keyboard keys
- Rebooted

And everything works fine now, all keys in DOSBOX, all remote buttons on the keyboard, and all buttons on the IR remote.

Reply 18 of 26, by synholiday

User metadata
Rank Newbie
Rank
Newbie

robertmo - no, I stuck 'sdl_videodriver=windib' in the .conf file. But as it turns out, I didn't need it.

My guess is that all the tweaking I did before changing the 109 driver to HID compatible device might have caused the problem. I had already been messing around with the .conf file and the mapper config file, so possibly if I had gone right to just changing the 109 driver from the start, I would have been done.

Reply 19 of 26, by robertmo

User metadata
Rank l33t++
Rank
l33t++

There is a bug in the mapper - if you save mapper without any key (right-shift in your case) it won't appear again untill you delete the mapper. And mapper is in hidden folder so you are lucky you found it as even windows' "find files" won't find it and uninstalling dosbox won't delete it too 😉