Keyboard support?

Subforum for discussion and help with ScummVM's Nintendo Wii port

Moderator: ScummVM Team

User avatar
dhewg
ScummVM Porter
Posts: 166
Joined: Wed Jun 04, 2008 8:41 pm

Post by dhewg »

There is at least one library on wiibrew.org that deals with USB keyboards. Still, nobody seems to care about getting a stable version into libogc. From a few reports on IRC it seems those libs do not yet work very well.

On top of that, ScummVM's virtual keyboard GSoC project is just around the corner, and that makes alot of more sense than a physical keyboard on the Wii imho.

ScummVM as well as libogc is open source, so if anyone feels like it: go for it :)

Again: if there is stable support (without new library dependencies), i'll gladly add it to the Wii port. But there are other things on my TODO list with higher priorities
brijohn
Posts: 16
Joined: Sun Jan 25, 2009 5:35 am

Post by brijohn »

Hello all,

I'm posting to let you know I have compiled a version of scummVM for the WII that does in fact offer USB Keyboard support. I've been using it recently to play my old AGI games and it is working pretty well for me.

For USB keyboard support I'm using libwiikeyboard from wiibrew.org that i have patched to properly support using interrupt endpoints. In doing so i found two usb related bugs in libogc that needed to fixed as well. Those two patches have been submitted to the patch tracker for devkitpro.

I'm posting a link that includes the prebuilt version as well as the necessary patches used to compile it.

ScummVM r36060
-USB Keyboard support
-Virtual keyboard mapped to down on the wiimote
User avatar
Bossk
Posts: 101
Joined: Mon Nov 03, 2008 2:15 pm

Post by Bossk »

Nice job brijohn!
I will definitely try your patches. And grab myself a wireless usb keyboard if it works :P
User avatar
MusicallyInspired
Posts: 1136
Joined: Fri Mar 02, 2007 8:03 am
Location: Manitoba, Canada
Contact:

Post by MusicallyInspired »

SWEET!!
ErikBauer
Posts: 4
Joined: Fri Jan 23, 2009 9:13 am

Post by ErikBauer »

Great!
Thanx a lot for the effort!!
User avatar
chojin
Posts: 48
Joined: Tue May 27, 2008 7:51 pm
Location: Berlin, Germany

Post by chojin »

Awesome :D

I just took my cordless desktop over to my Wii and tried some stuff. I could perfectly edit the Game Titles, although my german layout is of course not known. Maybe some setup is possible here later, e.g. together with virtual keyboard layout.
But, most important: I was able to beat the boxing coach up :wink:

It's really nice how things evolve here. USB-Storage and USB-Keyboard work like a charm. Thank you!

PS: USB-Mouse anyone? :wink:
User avatar
MusicallyInspired
Posts: 1136
Joined: Fri Mar 02, 2007 8:03 am
Location: Manitoba, Canada
Contact:

Post by MusicallyInspired »

Just tried out Space Quest 0: Replicated. Works great. The only problems are you can't do any Shift+number keys. ie- I can't type an "!" or "$". Also it's annoying that F7 brings up the virtual keyboard when it's also the restore game shortcut key in AGI games. Other than that it's pretty good.
brijohn
Posts: 16
Joined: Sun Jan 25, 2009 5:35 am

Post by brijohn »

chojin: Yeah libwiikeyboard only really supports standaard US qwerty layout.

MusicallyInspired: Yeah I didn't bother to add code to handle shifting non alpha characters since i didn't think by and large the were that necessary I'll add them later tonight. Also the F7 key is mapped by the main scummvm event loop to the virtual keyboard, but it only brings up the virtual keyboard if no modifiers are pressed so if you hold shift while pressing F7 you should be able to bring up the main restore dialog for AGI games.
User avatar
MusicallyInspired
Posts: 1136
Joined: Fri Mar 02, 2007 8:03 am
Location: Manitoba, Canada
Contact:

Post by MusicallyInspired »

Oh, right on then! Thank you. I'd say it's perfect then. I just noticed that Shift+number keys didn't work when trying to type "Gold Rush!" in the game title label.
brijohn
Posts: 16
Joined: Sun Jan 25, 2009 5:35 am

Post by brijohn »

Alright heres the updated version.

ScummVM r36125
- Non alpha keys are now shiftable
- Changed main ScummVM trigger for Virtual Keyboard to shift+F7 (dpad down still brings up vkeybd as well)
User avatar
Bossk
Posts: 101
Joined: Mon Nov 03, 2008 2:15 pm

Post by Bossk »

Again, nice job!
How robust are your changes brijohn?

I know it works fine without a keyboard plugged in, but what happens when you remove the keyboard while running a game?
And when plugging it back in?
brijohn
Posts: 16
Joined: Sun Jan 25, 2009 5:35 am

Post by brijohn »

Unplugging and replugging in keyboards should work as expected.

I do have one keyboard that sometimes fails to work after being plugged in, but since my others all seem to work i think it might be a flaky usb cable on that one.
User avatar
dhewg
ScummVM Porter
Posts: 166
Joined: Wed Jun 04, 2008 8:41 pm

Post by dhewg »

wow nice, i didn't see that coming :)

thanks alot for working on this, looks like you made some users happy!

i don't much time in this or the next week, but i'll definitely take a look then!
User avatar
MusicallyInspired
Posts: 1136
Joined: Fri Mar 02, 2007 8:03 am
Location: Manitoba, Canada
Contact:

Post by MusicallyInspired »

Awesome! It works great. Thanks again so much! Now I just need a wireless keyboard...
User avatar
Red_Breast
Posts: 773
Joined: Tue Sep 30, 2008 10:33 pm
Location: The Bar Of Gold, Upper Swandam Lane.

Post by Red_Breast »

Oh wow.
Need I say more.
Post Reply