arne-cl / frodo-wii

Automatically exported from code.google.com/p/frodo-wii
GNU General Public License v2.0
0 stars 0 forks source link

Restore Key Doesn't Work (v2.4) #49

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
When using the virtual keyboard or mapping to a controller button, the Restore 
key does not work. Instead it prints a 9. Playing a game like Castle of Dr 
Creep, which uses that key to cancel in game menus, nothing happens.

This was occuring on the wii with version 2.4.

Original issue reported on code.google.com by antam...@gmail.com on 2 Sep 2012 at 10:32

GoogleCodeExporter commented 9 years ago
After examining the source code from SVN, the virtual key mapping is wrong. It 
maps to the C64 key matrix of (4,0) in virtual_keyboard.cpp, which is 9.  There 
isn't an actual key matrix mapping to the Restore key, because it was wired to 
the CPU's NMI line. The frodo source in C64.cpp has the call NMI(void), which 
is what should happen when Restore is pressed.

The display.cpp file also invokes the NMI() call, but only if SDLK_F11 is 
pressed.

Since I'm not familiar enough with SDL or the frodo source, I'm not sure how to 
fix it.

Original comment by antam...@gmail.com on 3 Sep 2012 at 5:42

GoogleCodeExporter commented 9 years ago
Partially fixed in v2.4.1. 
It is possible to press the restore key with the virtual keyboard but it is not 
yet possible to bind the restore key to a joystick button.

The restore key can also be called through F11 in a real keyboard.

Original comment by olimpier...@gmail.com on 27 Dec 2012 at 11:11