Here is a new version of my BeebEm port, now featuring sound support.
http://beebem-unix.bbcmicro.com/download/beebem3.tar.gz
As before you need to extract the archive to the root of your SD card, and the directory must be called 'beebem'. The keyboard files *.kbd must be in the same directory as the disc image *.ssd.
Changes:
I've added additional mapping to Critical's keyboard code, so now you can type:
BBC_ and then any key/symbol on the bbc keyboard that is a valid ASCII character (so everything except the pound sign £ as that's not ASCII - to map the pound sign type: BBC__ or BBC_POUND or BBC_UNDERSCORE).
here is a picture of a BBC B keyboard:
http://acorn.chriswhy.co.uk/Pics/BBCI4B.JPG that clearly shows the keys.
So to map for MrWiz.ssd, I'd create a file called MrWiz.kbd and add:
Code:
LEFT=BBC_Z
RIGHT=BBC_X
UP=BBC_:
DOWN=BBC_/
A=BBC_SPACE
B=BBC_SPACE
X=BBC_RETURN
Y=BBC_RETURN
SELECT=BBC_ESCAPE
Critical's keyboard mapping names still also work.
We want the volume buttons to work as normal so:
Code:
VOLUP=VOLUME
VOLDOWN=VOLUME
You can only map the volume buttons (VOLUP/VOLDOWN) to control volume, setting other buttons to VOLUME does nothing. (i.e.: L=VOLUME does nothing).
The volume buttons work, but there is no auto repeat so to increase volume by 30%, press the VOL+ button three times. BeebEm loads with the volume set to 0%. But you can set the volume in the kbd file (see below).
Unfortunately Mr Wiz is unplayable with the stick, so I've added a screen 'flip' option so you can play games holding the GP2x upside down and use Y, A, B & X as a D-Pad.
To Activate screen 'flipped' mode add this too MrWiz.kbd:
Now all we need to do is add the reversed key mapping too:
Code:
R_LEFT=BBC_X
R_RIGHT=BBC_Z
R_UP=BBC_/
R_DOWN=BBC_:
R_A=BBC_X
R_B=BBC_Z
R_X=BBC_:
R_Y=BBC_/
R_SELECT=ESCAPE
We don't want the shoulder buttons to do anything in flipped mode, so we clear them:
And we want the volume buttons to work as normal buttons rather than change the volume:
Code:
R_VOLUP=BBC_SPACE
R_VOLDOWN=BBC_RETURN
But now when we start Mr Wiz, we get no sound because the volume is set to 0% at startup, so fix volume at 50% for now (until GUI is finished):
OK, so putting it all together, the MrWiz.kbd file will look like this:
Code:
# Initial state of emulator:
SET ORIENTATION=FLIPPED
SET VOLUME=50
# Normal screen orientation keys (we don't use these):
LEFT=BBC_Z
RIGHT=BBC_X
UP=BBC_:
DOWN=BBC_/
A=BBC_SPACE
B=BBC_SPACE
X=BBC_RETURN
Y=BBC_RETURN
SELECT=BBC_ESCAPE
VOLUP=VOLUME
VOLDOWN=VOLUME
L=NOTHING
R=NOTHING
# The 'flipped' screen orientation keys (we do use these):
R_LEFT=BBC_X
R_RIGHT=BBC_Z
R_UP=BBC_/
R_DOWN=BBC_:
R_A=BBC_X
R_B=BBC_Z
R_X=BBC_:
R_Y=BBC_/
R_SELECT=ESCAPE
R_L=NOTHING
R_R=NOTHING
R_VOLUP=BBC_SPACE
R_VOLDOWN=BBC_RETURN
To run a disc image you need to pass its name to the /mnt/sd/beebem/beebem command. So:
/mnt/sd/beebem/beebem /mnt/sd/beebem/MrWiz.ssd
will run Mr Wiz.
Putting this in a file called MrWiz.gpe works really well with gmenu.
So to run Mr Wiz, create a text file called
MrWiz.gpe with the following contents:
Code:
/mnt/sd/beebem/beebem /mnt/sd/beebem/MrWiz.ssd
Sometimes (well for me anyway) the GP2x doesn't make the file executable when it's transfered to the GP2x, so you may need to reset your GP2x after transfering the .gpe file for it to work.
Sorry that there is only the MrWiz.kbd keyboard mapping in the archive, but I've got to go out now so can't create any more!
If you create new key mappings, please add them to this thread so others can enjoy them!
Thanks to everyone who takes the time out to try this! Hope it works on your GP2x too!
OK, must dash now, have fun!